Skip to content
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

Merged
merged 21 commits into from
Oct 19, 2018
Merged

Project 2 Issue #5671 #5705

merged 21 commits into from
Oct 19, 2018

Conversation

arod0214
Copy link
Contributor

@arod0214 arod0214 commented Sep 27, 2018

Explanation

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes.
  • The PR explanation includes the words "Fixes #bugnum: ...".
  • The linter/Karma presubmit checks have passed.
    • These should run automatically, but if not, you can manually trigger them locally using python scripts/pre_commit_linter.py and bash scripts/run_frontend_tests.sh.
  • The PR is made from a branch that's not called "develop".
  • The PR follows the style guide.
  • The PR is assigned to an appropriate reviewer.
    • If you're a new contributor, please ask on Gitter for someone to assign a reviewer.
    • If you're not sure who the appropriate reviewer is, please assign to the issue's "owner" -- see the "talk-to" label on the issue.

Copy link
Contributor

@aks681 aks681 left a 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.

@@ -464,7 +464,7 @@ var constants = {
"\\u001b", "\\u001c", "\\u001d", "\\u001e", "\\u001f"
],

"ENABLE_NEW_STRUCTURES": false,
"ENABLE_NEW_STRUCTURES": true,
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Member

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>
Copy link
Contributor

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(){
Copy link
Member

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 {

Copy link
Member

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?

Copy link
Contributor Author

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
Copy link
Member

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!

@oppiabot
Copy link

oppiabot bot commented Sep 30, 2018

Hi @arod0214. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks!

@kevinlee12 kevinlee12 assigned arod0214 and unassigned aks681 Oct 2, 2018
@arod0214
Copy link
Contributor Author

arod0214 commented Oct 4, 2018 via email

@seanlip
Copy link
Member

seanlip commented Oct 4, 2018

Hi @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!

@seanlip
Copy link
Member

seanlip commented Oct 4, 2018

Also, just to check, are you following the instructions here (step 5)?

@arod0214
Copy link
Contributor Author

arod0214 commented Oct 4, 2018 via email

@seanlip
Copy link
Member

seanlip commented Oct 4, 2018

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.

@arod0214
Copy link
Contributor Author

arod0214 commented Oct 4, 2018 via email

@seanlip
Copy link
Member

seanlip commented Oct 4, 2018

Interesting, your upstream is different from mine. Try

    git remote set-url upstream https://github.com/oppia/oppia

and see if it works after that? (If not, please paste the exact "pull" command you're using.)

@codecov-io
Copy link

codecov-io commented Oct 5, 2018

Codecov Report

Merging #5705 into develop will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ
...topics_and_skills_dashboard/SkillsListDirective.js 2.77% <0%> (-0.26%) ⬇️
...d/pages/topic_editor/TopicEditorNavbarDirective.js 1.66% <0%> (-0.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f1dca5...3253839. Read the comment docs.

Copy link
Member

@seanlip seanlip left a 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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be removed?

Copy link
Contributor Author

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(){
Copy link
Member

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.');
Copy link
Member

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).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@oppiabot
Copy link

oppiabot bot commented Oct 15, 2018

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.
If you are still working on this PR, please make a follow-up commit within 7 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale label Oct 15, 2018
@arod0214
Copy link
Contributor Author

I have pushed the requested changes.

Copy link
Member

@seanlip seanlip left a 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!

Copy link
Member

@seanlip seanlip left a 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)!

@arod0214
Copy link
Contributor Author

Thank you!

@seanlip
Copy link
Member

seanlip commented Oct 17, 2018

@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

@arod0214
Copy link
Contributor Author

arod0214 commented Oct 17, 2018 via email

@seanlip
Copy link
Member

seanlip commented Oct 17, 2018

Weird. Thanks for confirming, @arod0214. I'll restart that test; if it fails again, let's see what @apb7 has to say about it (since he looks after the team's dev workflow process).

@seanlip
Copy link
Member

seanlip commented Oct 18, 2018

Hi @apb7 -- the linter check failed again. Could you please help? Thanks!

@apb7
Copy link
Contributor

apb7 commented Oct 18, 2018 via email

Copy link
Contributor

@apb7 apb7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arod0214 ptal!

@seanlip
Copy link
Member

seanlip commented Oct 18, 2018

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.

@apb7
Copy link
Contributor

apb7 commented Oct 18, 2018

@seanlip, @dawsoneliasen is working on this, #5748. I will ping him on that PR's thread once. Thanks!

@arod0214
Copy link
Contributor Author

All done. Let me know if it is all good now.

@seanlip
Copy link
Member

seanlip commented Oct 19, 2018

It looks great. Thanks @arod0214! Congrats again on your first PR to Oppia (properly, this time)!

@seanlip seanlip merged commit b0880a8 into oppia:develop Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants