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

Content modelling/735 homepage date filter #9680

Merged
merged 7 commits into from
Dec 10, 2024

Conversation

Harriethw
Copy link
Contributor

https://trello.com/c/auF0TsMT/735-update-homepage-add-last-updated-date-filter

Screenshot 2024-11-29 at 13 00 59


⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@Harriethw Harriethw force-pushed the content-modelling/735-homepage-date-filter branch from b9aec5d to fa60e10 Compare November 29, 2024 15:04
@Harriethw Harriethw marked this pull request as ready for review November 29, 2024 15:09
@Harriethw Harriethw requested a review from pezholio November 29, 2024 15:09
@pezholio pezholio force-pushed the content-modelling/735-homepage-date-filter branch 4 times, most recently from 5a80e07 to 7ea4c00 Compare December 10, 2024 11:34
Copy link
Contributor

@pezholio pezholio left a comment

Choose a reason for hiding this comment

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

I've updated the commit where we introduce the scope - it should work now, and reviewed the rest. Just some suggestions and a bit of confusion around the error handling. I think we're almost there with that though.

@pezholio pezholio force-pushed the content-modelling/735-homepage-date-filter branch 3 times, most recently from f0b0546 to 747c174 Compare December 10, 2024 14:34
Harriethw and others added 7 commits December 10, 2024 14:38
users should be able to filter by 'to' and 'from'
last updated. I've diverged a bit here from the
Whitehall editions filter (they have a free text
input) as I think this is the more accesible form
of inputs.

Errors and default values to be added in future
commits.
Here we join the editions by the latest_edition_id, and search
by the updated date of the joined edition
More error handling to come, but for now if any of
the fields are empty we do not accept it as a
date.
here we use the component and scope to filter by
last updated date. (error handling still to come)
passing the filters to the date component so it
can check what its values should be.
If there are errors, we do the rest of the filters
without the erroring ones, so as to return
something helpful.
I’ve updated the feature specs to ensure each document has multiple
editions to ensure the query works correctly
@pezholio pezholio force-pushed the content-modelling/735-homepage-date-filter branch from 747c174 to 912fed6 Compare December 10, 2024 14:38
@pezholio pezholio merged commit b476c40 into main Dec 10, 2024
19 checks passed
@pezholio pezholio deleted the content-modelling/735-homepage-date-filter branch December 10, 2024 15:22
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