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

Remove summary.Visual.sort_order #1052

Merged
merged 7 commits into from
Jul 2, 2024
Merged

Remove summary.Visual.sort_order #1052

merged 7 commits into from
Jul 2, 2024

Conversation

shapiromatron
Copy link
Owner

@shapiromatron shapiromatron commented Jun 21, 2024

Remove the summary.Visual.sort_order database model field. This is a configuration for a single visualization type (the risk of bias heatmap), and therefore it was migrated to the settings JSON for that case. This simplifies the logic elsewhere in the app, since it shouldn't be defined globally on all Visuals.

In addition, the field didn't actually work :(. We fixed the implementation so now if you choose to sort by overall study judgment, it actually sorts as intended. It defaults to alphabetical.

Sort by name alphabetically:
image

Sort by overall study judgment:
image

@shapiromatron shapiromatron changed the title Remove sort order Remove summary.Visual.sort_order Jun 21, 2024
@shapiromatron shapiromatron changed the title Remove summary.Visual.sort_order Remove summary.Visual.sort_order Jun 21, 2024
@shapiromatron shapiromatron requested a review from rabstejnek June 24, 2024 14:52
@shapiromatron shapiromatron marked this pull request as ready for review June 24, 2024 15:11
Copy link
Collaborator

@rabstejnek rabstejnek 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!

@shapiromatron shapiromatron merged commit 0057e19 into main Jul 2, 2024
6 checks passed
@shapiromatron shapiromatron deleted the remove-sort-order branch July 2, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants