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

Correctly reverse failed save search / revamp dim-api tests #10811

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Conversation

bhollis
Copy link
Contributor

@bhollis bhollis commented Nov 25, 2024

In investigating #10809 I found that there were a number of bugs related to reversing DIM Sync actions if they fail. The one that was causing this user to get stuck was a failed "save search" for a search that was too long - because it threw an error every time, it just kept trying the update. I both fixed the logic and put a protective try/catch around the reverse logic, as it isn't critical.

I then overhauled the tests for the dim-api reducer and added in assertions that reversing actions after a failure would return the state to the initial version, and fixed a handful of related bugs.

Fixes #10809

@bhollis bhollis merged commit ef6149d into master Nov 27, 2024
7 checks passed
@bhollis bhollis deleted the reverse-it branch November 27, 2024 03:00
Copy link

sentry-io bot commented Dec 6, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Cannot read properties of undefined (reading 'id') /4611686018504618057/d2/inventory View Issue

Did you find this useful? React with a 👍 or 👎

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.

I broke something trying to delete a saved search
1 participant