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

Feature/default sort #1501

Merged
merged 8 commits into from
Mar 12, 2024
Merged

Feature/default sort #1501

merged 8 commits into from
Mar 12, 2024

Conversation

lukavdplas
Copy link
Contributor

Changes the way that the default sort setting is represented. This is now a default_sort attribute of the corpus, rather than an attribute of each field.

This is a small preparation for importing the JSON definition in #1497 . It's not strictly necessary to import the JSON, but the frontend also stores the default sort configuration on the corpus rather than the field, so this update means there will be less conversion overall.

The field is provided as a string (in execution order, default_sort may be defined before fields). There is no validation whether the field exists and is sortable - that depends on #1333

Copy link
Contributor

@JeltevanBoheemen JeltevanBoheemen left a comment

Choose a reason for hiding this comment

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

This makes total sense. Clean code.

@lukavdplas lukavdplas merged commit c7a228d into develop Mar 12, 2024
2 checks passed
@lukavdplas lukavdplas deleted the feature/default-sort branch March 12, 2024 10:14
@lukavdplas lukavdplas added frontend changes to the angular frontend backend changes to the django backend code quality code & performance improvements that do not affect user functionality labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend changes to the django backend code quality code & performance improvements that do not affect user functionality frontend changes to the angular frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants