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

fix: CE-1276 1277 stored filter fixes #778

Merged
merged 5 commits into from
Nov 27, 2024

Conversation

mikevespi
Copy link
Contributor

@mikevespi mikevespi commented Nov 27, 2024

Fixed persistence bugs in the search when returning to the complaints page.

Description

Fixed the date filters to get parsed into state in the complaint filters provider. This prevents the app from entering a broken state when loading a fresh complaint filter context with stored start or end date filters in the search params.
Fixed the map search function to now set the complaint search parameters in state. This fixes the bug of filters set in map not setting the complaint search parameters.

Fixes:
https://env-ceds.atlassian.net/jira/software/c/projects/CE/boards/4?selectedIssue=CE-1276
https://env-ceds.atlassian.net/jira/software/c/projects/CE/boards/4?selectedIssue=CE-1277

How Has This Been Tested?

Tested by following the steps to reproduce in the bug cards and ensuring that the site remained in a functional state.

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Further comments


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

@@ -93,6 +92,7 @@ export const ComplaintFilter: FC<Props> = ({ type }) => {
end.setMilliseconds(999);
}

setFilter("startDate", start);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change didn't seem to be affecting the bug but I stumbled across it and it seems like if we're setting the time on start we should do so before setting the startDate filter.

@afwilcox afwilcox merged commit 5545ba2 into release/yellow-boring-sponge Nov 27, 2024
15 checks passed
@afwilcox afwilcox deleted the CE-1276-date-filter-fix branch November 27, 2024 21:38
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