-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add sorting to Studio's Files & Uploads page #2086
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
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.
Doesn't this mean the sort direction will default to ascending if not specified? And don't we want a default of descending?
|
@frrrances Could you give this a quick check too, please. Also, did you see Christina's comment about adding a file when sorting such that the file isn't visible. She suggested always reverting the sort to most recently added when adding a file so that the new file will be at the top. Does that sound reasonable to you? |
|
👍 After clarifying the default value in assets.py and changing the behavior of adding a file (when non-default sort is selected). |
|
@cahrens Thanks for catching those issues. Frances agreed with the idea of changing back to the default sort when adding a new item, so I've implemented that and added unit tests. I've also fixed the default value handling, and submitted a ticket to have 'defaultname' be indexed. I'll wait to squash the commits until the changes are approved. |
|
@frrrances Thanks for the additional styling. Looks good to me. |
|
Here's what I hope to be the final squashed commit. Also, at @frrrances request I've added 'ascending'/'descending' to the name of the sort order. @cahrens @singingwolfboy Please re-review. |
AUTHORS
Outdated
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.
You don't need to modify the AUTHORS file -- doing so will just result in conflicts for other pull requests.
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.
That was an accidental merge conflict (I added myself as an author once with a new line and once without it). I've backed out this change.
|
@cahrens @singingwolfboy addressed DB's issues. |
|
👍 once the tests pass. |
|
@talbs can you review as well since I worked on this feature? |
|
@andy-armstrong Need to rebase. |
|
@cahrens Rebased again :-) |
|
👍 |
Added sorting to the new pagination logic for STUD-995.
|
Everything looks good from a UX and Front End Perspective. Nice work! 👍 |
Add sorting to Studio's Files & Uploads page
Added sorting to the new pagination logic for STUD-995.
This is a rebased version of my original pull request: https://github.com/edx/edx-platform/pull/2066.
@cahrens @singingwolfboy Could you re-review please.