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

[#5371] Update admin timeline event filtering #7680

Merged

Conversation

HelenWDTK
Copy link
Contributor

@HelenWDTK HelenWDTK commented Apr 5, 2023

Relevant issue(s)

Fixes #5371

What does this do?

Adds the ability to filter the timeline by time for all event types

Why was this needed?

Previously, request events and authority change events could only be displayed for the last two days unless the URL was manually manipulated, which was annoying.

Screenshots

image
image

@HelenWDTK HelenWDTK linked an issue Apr 5, 2023 that may be closed by this pull request
@gbp gbp force-pushed the 5371-cant-change-timeframe-on-admin-timeline-when-filtering branch from 94ad875 to 8b7b9a8 Compare October 19, 2023 13:02
@gbp gbp changed the title 5371 cant change timeframe on admin timeline when filtering [#5371] Update admin timeline event filtering Oct 19, 2023
Copy link
Member

@gbp gbp left a comment

Choose a reason for hiding this comment

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

@HelenWDTK thanks for this - it was a great start. I have continued this work and refactored some more. I think this is now in a state which can be merged.

@gbp gbp force-pushed the 5371-cant-change-timeframe-on-admin-timeline-when-filtering branch from d31e18c to ec7e691 Compare October 19, 2023 13:36
Allow the timeline filters by time and event types at the same time.

Improves parameters by using a single `start_date` param rather than
separate ones for day/hour/week/...

Refactors the loading of events to use `ActiveRecord` query where
possible and where isn't possible use the query builder and call
`#to_sql` in order to get query sanitization.
@gbp gbp force-pushed the 5371-cant-change-timeframe-on-admin-timeline-when-filtering branch from 6a6d53a to 9b10526 Compare October 20, 2023 07:04
@gbp gbp merged commit fd0b121 into develop Oct 20, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't change timeframe on admin timeline when filtering
2 participants