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

Update Geolocation to remove all location fields #344

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

nmanu1
Copy link
Contributor

@nmanu1 nmanu1 commented Dec 5, 2022

Update useGeolocationHandler so that it replaces all location filters with the new filter. In other words, filters on the builtin.location, builtin.region, and address.countryCode fields are all removed when a new filter is selected via the Geolocation component. This matches the behavior of FilterSearch and ensures the State doesn't end up with multiple location filters applied at the same time, which can have unpredictable results from the backend.

J=SLAP-2495
TEST=auto

See that the Jest tests still pass even when the mocked state includes other kinds of location filters besides those on builtin.location.

@nmanu1 nmanu1 requested a review from a team as a code owner December 5, 2022 21:02
@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 85.836% when pulling 893b7b1 on dev/update-geolocation-fields into ff5293e on develop.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2022

Current unit coverage is 89.04795991410164%
Current visual coverage is 77.63289869608826%
Current combined coverage is 89.69219756621331%

@nmanu1 nmanu1 merged commit 2ce727e into develop Dec 6, 2022
@nmanu1 nmanu1 deleted the dev/update-geolocation-fields branch December 6, 2022 14:52
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.

3 participants