-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: CE-1276 1277 stored filter fixes #778
Conversation
@@ -93,6 +92,7 @@ export const ComplaintFilter: FC<Props> = ({ type }) => { | |||
end.setMilliseconds(999); | |||
} | |||
|
|||
setFilter("startDate", start); |
There was a problem hiding this comment.
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.
Quality Gate passedIssues Measures |
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
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: