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

Add a config option for top story sorting or default sorting #976

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

thecalcc
Copy link
Contributor

@thecalcc thecalcc commented Jun 26, 2024

NHUB-514

Checklist

  • This pull request is not adding new forms that use redux
  • This pull request is adding missing TypeScript types to modified code segments where it's easy to do so with confidence
  • This pull request is replacing lodash.get with optional chaining for modified code segments

@thecalcc thecalcc requested a review from petrjasek June 26, 2024 09:50
@petrjasek petrjasek added this to the v2.8 milestone Jun 26, 2024
@petrjasek
Copy link
Member

I think the idea was to have the events with coverages on top being configurable, in theory it should be possible to use top story sorting without the coverages being on top

@thecalcc
Copy link
Contributor Author

I think the idea was to have the events with coverages on top being configurable, in theory it should be possible to use top story sorting without the coverages being on top

Ok pushed some changes, making coverages sorting based on config and top story sorting is unconditional. In practice if we don't have top stories items would fall back to the default order, if we do top story ones will be on top.

@@ -396,7 +396,7 @@
"button_label": lazy_gettext("Completed"),
},
},
"agenda_top_story_sorting": False,
"agenda_top_story_sorting_only": True,
Copy link
Member

Choose a reason for hiding this comment

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

would call it probably agenda_sort_events_with_coverage_on_top or something to be more descriptive

@thecalcc thecalcc requested a review from petrjasek June 26, 2024 11:50
@thecalcc thecalcc merged commit b190858 into superdesk:develop Jun 26, 2024
7 checks passed
@petrjasek petrjasek modified the milestones: v2.8, v2.7.1 Jul 1, 2024
@petrjasek petrjasek modified the milestones: v2.7.1, v2.7 Jul 8, 2024
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