-
Notifications
You must be signed in to change notification settings - Fork 638
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
Implement backend sorting of users data for Facility -> Users table #12234
Comments
This would need to be done using the OrderingFilter defined here: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/api.py#L58 Which is a reimplementation of the DRF OrderingFilter documented here: https://www.django-rest-framework.org/api-guide/filtering/#orderingfilter It should work fairly easily out of the box. |
Also note that I think that as part of this work, "date_created" and "date_added" will need to be added to the facility users response (endpoint |
Overview
To be able to add sorting for Facility -> Users table as designed here
backend needs to be able to return sorted data.
Backend sorting is expected to work for:
Note that sorting in this case can't be done on frontend as here we use paginated data that is loaded lazily.
Outcomes
Out of scope
The text was updated successfully, but these errors were encountered: