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

Filter skills #5635

Merged
merged 19 commits into from
Oct 5, 2018
Merged

Filter skills #5635

merged 19 commits into from
Oct 5, 2018

Conversation

vinitamurthi
Copy link
Contributor

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

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

@vinitamurthi
Copy link
Contributor Author

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

codecov-io commented Sep 9, 2018

Codecov Report

Merging #5635 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

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

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

Copy link
Contributor

@tjiang11 tjiang11 left a comment

Choose a reason for hiding this comment

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

Thanks Vinita, LGTM!

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!

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.

Thanks @vinitamurthi! LGTM. Just a couple of notes.


self.render_json({
'merged_into_skill': new_skill_id
})
Copy link
Member

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

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

Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the change

@vinitamurthi
Copy link
Contributor Author

Once the UI and controller stuff is in, then this one can get merged

@oppiabot
Copy link

oppiabot bot commented Sep 20, 2018

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!

@oppiabot
Copy link

oppiabot bot commented Sep 30, 2018

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.
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 Sep 30, 2018
@kevinlee12
Copy link
Contributor

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.

@oppiabot oppiabot bot removed the stale label Oct 2, 2018
@vinitamurthi
Copy link
Contributor Author

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 !

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

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

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?

Copy link
Contributor Author

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

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.

Thanks!

@kevinlee12 kevinlee12 merged commit 2768a1c into oppia:develop Oct 5, 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.

6 participants