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: handle filter not found #1340

Merged
merged 2 commits into from
Apr 21, 2020
Merged

Fix: handle filter not found #1340

merged 2 commits into from
Apr 21, 2020

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Apr 21, 2020

The not-found scenario was broken, as the server returns status code 400 instead of 404. This was not triggered before, but since #1332 it did, because the deep comparison failed because limit is now set on the filter. This caused "undefined" to be stored in the store, triggering the not-found scenario on reload.

While at it I rewrote getOrCreateFilter to use await rather than chaining then(...).

Please also review release PR at #1341

This made getFilter in sync retrying continuously
I also refactored getOrCreateFilter to use await
this way we don't attempt to fetch filters when validating them
with filterId==="undefined"
@bwindels bwindels requested a review from a team April 21, 2020 14:00
@bwindels bwindels merged commit 4a699fe into develop Apr 21, 2020
@t3chguy t3chguy deleted the bwindels/fixfilterlookup branch May 10, 2022 14:31
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