-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove oppia module export. #7259
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @YashJipkate. Just one inline comment. I also think @vojtechjelinek should take a look at the webpack config file, but other than that, we can merge this PR after he and I give approval (you don't need to wait for the other codeowners).
Thanks!
var oppia = require('AppInit.ts').module; | ||
|
||
oppia.factory('ExpressionParserService', ['$log', function($log) { | ||
angular.module('oppia').factory('ExpressionParserService', ['$log', function($log) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a generated file, so make sure that the generator script in this folder is configured to generate this new text properly. See the README in this folder.
It might be nice to also add a comment at the top of the file saying "DO NOT MODIFY THIS FILE DIRECTLY, see XXX instead."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified the create_expression_parser
script.
@@ -187,7 +187,7 @@ oppia.directive('tutorCard', [ | |||
|
|||
$scope.toggleShowPreviousResponses = function() { | |||
$scope.arePreviousResponsesShown = | |||
!$scope.arePreviousResponsesShown; | |||
!$scope.arePreviousResponsesShown; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be indented by 2. Put a '(' ')' around it if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Please note the Travis failures. |
* Half * half * half * Cleanup * Cleanup * Cleanup * Break line * Remove var oppia from App.ts * Removed var oppia * Removed var oppia * Partial lint * FIx FE * Partial lint * Partial lint * Partial lint * Partial lint * Fix learner dashboard * Partial lint * Lint * Address review * Update package.json * Update package.json * Revert "Update package.json" This reverts commit 0530a8c. * Revert "Update package.json" This reverts commit c18ff6a. * Revert "Address review" This reverts commit 333e7fa. * Revert package.json
Explanation
Removes the
var oppia = require('AppInit.ts')
statements. This PR sits on top of #7254Checklist
-These should run automatically, but if not, you can manually trigger them locally using
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.