-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Project 2 Issue #5671 #5705
Project 2 Issue #5671 #5705
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.
Looks good! Minor comments.
assets/constants.js
Outdated
@@ -464,7 +464,7 @@ var constants = { | |||
"\\u001b", "\\u001c", "\\u001d", "\\u001e", "\\u001f" | |||
], | |||
|
|||
"ENABLE_NEW_STRUCTURES": false, | |||
"ENABLE_NEW_STRUCTURES": true, |
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.
Can you disable this?
feconf.py
Outdated
@@ -367,7 +367,7 @@ def get_empty_ratings(): | |||
ENABLE_MAINTENANCE_MODE = False | |||
|
|||
# Disables all the new structures' pages, till they are completed. | |||
ENABLE_NEW_STRUCTURES = False | |||
ENABLE_NEW_STRUCTURES = True |
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.
Can you merge with the most recent version in develop? SInce, this is no longer used.
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.
@arod0214 FYI, the instructions for doing this are at step 5 in this section. Let us know if you need any help!
@@ -121,6 +121,7 @@ | |||
<a ng-click="closeSubmenuIfNotMobile($event)" href="/learner_dashboard" | |||
class="protractor-test-dashboard-link protractor-test-learner-dashboard-link"> | |||
<span translate="I18N_TOPNAV_LEARNER_DASHBOARD"></span> | |||
<span><[isAdmin]> | <[isTopicManager]> | <[newStructuresEnabled]></span> |
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.
I am not sure what this is intended for, was it meant for debugging? In which case, can you remove this?
@@ -58,7 +58,11 @@ oppia.directive('topicEditorNavbar', [ | |||
function() { | |||
$scope.topicRights.markTopicAsPublished(); | |||
TopicEditorStateService.setTopicRights($scope.topicRights); | |||
}); | |||
}).then(function(){ |
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.
Linting nit, here and elsewhere: add space before {
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.
@arod0214 did you see this comment?
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
feconf.py
Outdated
@@ -367,7 +367,7 @@ def get_empty_ratings(): | |||
ENABLE_MAINTENANCE_MODE = False | |||
|
|||
# Disables all the new structures' pages, till they are completed. | |||
ENABLE_NEW_STRUCTURES = False | |||
ENABLE_NEW_STRUCTURES = True |
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.
@arod0214 FYI, the instructions for doing this are at step 5 in this section. Let us know if you need any help!
I'm getting an error that says:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
…On Sun, Sep 30, 2018 at 12:52 AM oppiabot[bot] ***@***.***> wrote:
Hi @arod0214 <https://github.com/arod0214>. Due to recent changes in the
"develop" branch, this PR now has a merge conflict. Please follow this
link
<https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/>
if you need help resolving the conflict, so that the PR can be merged.
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5705 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AjcWT9cbymroF0GFuAJi4p4p9C4gozFKks5ugE4IgaJpZM4W9oyn>
.
|
Hi @arod0214 -- hm, that's a bit odd. Could you please send the following:
Thanks! |
Also, just to check, are you following the instructions here (step 5)? |
output:
origin https://github.com/arod0214/oppia.git (fetch)
origin https://github.com/arod0214/oppia.git (push)
upstream git@github.com:oppia/oppia (fetch)
upstream git@github.com:oppia/oppia (push)
and to push I write git push upstream
…On Thu, Oct 4, 2018 at 5:47 PM Sean Lip ***@***.***> wrote:
Hi @arod0214 <https://github.com/arod0214> -- hm, that's a bit odd. Could
you please send the following:
- the output of git remote -v
- the command you're using for pushing?
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5705 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AjcWT96fHar6P7xe_hpWHDqXRpTISR4gks5uhoHLgaJpZM4W9oyn>
.
|
Ah ok, so your remotes are set up correctly. But you'll need to push to origin, not upstream -- that's how GItHub pull requests work. See the instructions and code snippet in section 5 here -- that should get things sorted. |
I'm sorry. I said the wrong thing. I know I have to push to origin and do
the pull requests. I received the permission denied when I was trying to
git pull upstream to update my repo with whatever changes that have been
made on the oppia repo.
…On Thu, Oct 4, 2018, 5:54 PM Sean Lip ***@***.***> wrote:
Ah ok, so your remotes are set up correctly. But you'll need to push to
origin, not upstream -- that's how GItHub pull requests work.
See the code snippet in section 5 here
<https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#instructions-for-making-a-code-change>
-- that should get things sorted.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5705 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AjcWT0G019ACVlFQB8CaEhyquuDA2qiMks5uhoOdgaJpZM4W9oyn>
.
|
Interesting, your upstream is different from mine. Try
and see if it works after that? (If not, please paste the exact "pull" command you're using.) |
Codecov Report
@@ Coverage Diff @@
## develop #5705 +/- ##
===========================================
- Coverage 45.74% 45.72% -0.02%
===========================================
Files 515 515
Lines 29956 29968 +12
Branches 4522 4522
===========================================
Hits 13702 13702
- Misses 16254 16266 +12
Continue to review full report at Codecov.
|
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.
Hi @arod0214, took another pass!
Also, one request: please could you reply to all comments, following the instructions in step 5 here? In particular, for comments that you've addressed, please reply "Done." -- this helps keep track of which comments have been addressed and which haven't, and also gives the reviewer the signal that they should look again at the PR. Thanks!
@@ -121,6 +121,7 @@ | |||
<a ng-click="closeSubmenuIfNotMobile($event)" href="/learner_dashboard" | |||
class="protractor-test-dashboard-link protractor-test-learner-dashboard-link"> | |||
<span translate="I18N_TOPNAV_LEARNER_DASHBOARD"></span> | |||
<span><[isAdmin]></span> |
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.
Should this be removed?
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
@@ -58,7 +58,11 @@ oppia.directive('topicEditorNavbar', [ | |||
function() { | |||
$scope.topicRights.markTopicAsPublished(); | |||
TopicEditorStateService.setTopicRights($scope.topicRights); | |||
}); | |||
}).then(function(){ |
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.
@arod0214 did you see this comment?
@@ -58,7 +58,11 @@ oppia.directive('topicEditorNavbar', [ | |||
function() { | |||
$scope.topicRights.markTopicAsPublished(); | |||
TopicEditorStateService.setTopicRights($scope.topicRights); | |||
}); | |||
}).then(function(){ | |||
var successToast = ('Topic Published.'); |
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.
Btw, here and elsewhere, you don't need the parentheses surrounding the successs message. Those are only useful when the message spans multiple lines (like line 137 in SkillsListDirective.js).
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
Hi @arod0214, I'm going to mark this PR as stale because it hasn't had any updates for 10 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
I have pushed the requested changes. |
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.
Just one more thing. Otherwise looks great. Thanks!
core/templates/dev/head/pages/topic_editor/TopicEditorNavbarDirective.js
Outdated
Show resolved
Hide resolved
core/templates/dev/head/pages/topic_editor/TopicEditorNavbarDirective.js
Show resolved
Hide resolved
core/templates/dev/head/pages/topic_editor/TopicEditorNavbarDirective.js
Show resolved
Hide resolved
core/templates/dev/head/pages/topic_editor/TopicEditorNavbarDirective.js
Outdated
Show resolved
Hide resolved
core/templates/dev/head/pages/topics_and_skills_dashboard/SkillsListDirective.js
Outdated
Show resolved
Hide resolved
…lsListDirective.js
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.
All good :) Thanks @arod0214 (and congrats on your first PR to Oppia)!
Thank you! |
@arod0214 -- Travis tests show that there's a single lint error left. This is a bit odd, because the linter is supposed to run prior to code submission. Did the linter script pass locally on your machine when you did the last push? Also, @apb7, I cannot tell from the Travis log what the linter error is. It says "1 JavaScript file failed" but I can't find the error message. Do you have any insight here? /cc @dawsoneliasen |
I had no issues with linting when I pushed.
…On Wed, Oct 17, 2018 at 5:46 PM Sean Lip ***@***.***> wrote:
@arod0214 <https://github.com/arod0214> -- Travis tests show that there's
a single lint error left. This is a bit odd, because the linter is supposed
to run prior to code submission. Did the linter script pass locally on your
machine when you did the last push?
Also, @apb7 <https://github.com/apb7>, I cannot tell from the Travis log
what the linter error is. It says "1 JavaScript file failed" but I can't
find the error message. Do you have any insight here? /cc @dawsoneliasen
<https://github.com/dawsoneliasen>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5705 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AjcWT-nYO9hoUlsOBoAAizA7pX64uhbBks5ul6UwgaJpZM4W9oyn>
.
|
Hi @apb7 -- the linter check failed again. Could you please help? Thanks! |
Looking into this. Thanks for the ping, Sean!
…On Thu, Oct 18, 2018, 9:39 PM Sean Lip ***@***.***> wrote:
Hi @apb7 <https://github.com/apb7> -- the test failed again. Could you
please help? Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5705 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AXrQuWI74VaVPKwIYDXniyMa3tBJACwLks5umKe-gaJpZM4W9oyn>
.
|
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.
@arod0214 ptal!
core/templates/dev/head/pages/topic_editor/TopicEditorNavbarDirective.js
Outdated
Show resolved
Hide resolved
core/templates/dev/head/pages/topic_editor/TopicEditorNavbarDirective.js
Outdated
Show resolved
Hide resolved
core/templates/dev/head/pages/topic_editor/TopicEditorNavbarDirective.js
Outdated
Show resolved
Hide resolved
core/templates/dev/head/pages/topic_editor/TopicEditorNavbarDirective.js
Outdated
Show resolved
Hide resolved
Also @apb7 is there a way to figure out this error from looking at the Travis logs? If not could we make this possible? I think that's pretty important. |
@seanlip, @dawsoneliasen is working on this, #5748. I will ping him on that PR's thread once. Thanks! |
All done. Let me know if it is all good now. |
It looks great. Thanks @arod0214! Congrats again on your first PR to Oppia (properly, this time)! |
Explanation
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.