-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Filter skills #5635
Filter skills #5635
Conversation
…g merged skills in the untriaged section
Note this builds over the previous merge skills commits so please check only the latest commit i.e. commit number: 11706bf "Filterable skill list" |
Codecov Report
@@ Coverage Diff @@
## develop #5635 +/- ##
========================================
Coverage 45.74% 45.74%
========================================
Files 515 515
Lines 29954 29954
Branches 4522 4522
========================================
Hits 13702 13702
Misses 16252 16252 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.
Thanks Vinita, LGTM!
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!
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 @vinitamurthi! LGTM. Just a couple of notes.
|
||
self.render_json({ | ||
'merged_into_skill': new_skill_id | ||
}) |
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.
Deindent by 4 to match open braces.
/cc @apb7
] | ||
skill_services.update_skill( | ||
self.user_id, old_skill['id'], changelist, | ||
'Setting merge complete for skill.') |
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.
Perhaps: 'Marking the skill as having being merged successfully.'
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.
@vinitamurthi 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.
Made the change
Once the UI and controller stuff is in, then this one can get merged |
Hi @vinitamurthi. 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! |
Hi @vinitamurthi, 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. |
Hi @vinitamurthi, do mind the bot, since it will close the PR in 7 days. My comment will reset the timer, so please do provide updates on this PR periodically. |
Sorry I was waiting on another PR to submit and thats why this was on hold, it has been merged now and this PR is also ready. @seanlip PTAL ! |
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 @vinitamurthi -- could you please double-check the diff for this PR and see whether it contains exactly what you want it to? There are a bunch of things which I thought we decided not to do in the last PR, so maybe it's better to redo this one afresh on top of the develop branch.
Thanks!
] | ||
skill_services.update_skill( | ||
self.user_id, old_skill['id'], changelist, | ||
'Setting merge complete for skill.') |
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.
@vinitamurthi did you see this comment?
@@ -119,6 +119,22 @@ oppia.factory('SkillObjectFactory', [ | |||
return this._description; | |||
}; | |||
|
|||
Skill.prototype.setSupersedingSkillId = function(skillId) { |
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 thought we removed the setters?
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.
Sorry, looks like the merge conflicts were not all removed. It should be clean now
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!
Explanation
Made the skills list scrollable with a fixed height and added a filter for it. This will work for all the skills-list directives.
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.