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

refactor(app): Update ignore error route in Error Recovery #16511

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

mjhuff
Copy link
Contributor

@mjhuff mjhuff commented Oct 17, 2024

Partially closes EXEC-776

Overview

As the "ignore error and skip/retry" routing no longer applies only to one recovery option, it's worth revisiting the way we structure routing/copy. More importantly, we probably should avoid sending any sort of "ignore all errors" policy updates to the server until the user exits error recovery, because sending policy changes earlier could provide unexpected behavior if the user selects the "ignore all option" but then clicks "go back".

If the PUT request for the policy updates fail, route the user to our "recovery failed" modal and let the user select a different (or same) option.

Screen.Recording.2024-10-17.at.12.48.56.PM.mov

Test Plan and Hands on Testing

  • See video.
  • Confirmed copy is correct on all routes that use the "ignore and skip" recovery option.
  • Ensured that policy updates only occur when expected (ex, there is no policy update when a user skips only this one error).

Changelog

  • The server ignores all errors of a type only when the user exits error recovery.

Risk assessment

low

@mjhuff mjhuff requested a review from a team October 17, 2024 16:58
@mjhuff mjhuff requested a review from a team as a code owner October 17, 2024 16:58
@mjhuff mjhuff requested review from brenthagen and removed request for a team October 17, 2024 16:58
@mjhuff mjhuff changed the title refactor(app): Update ignore error route refactor(app): Update ignore error route in Error Recovery Oct 17, 2024
@mjhuff mjhuff removed the request for review from brenthagen October 17, 2024 17:02
@mjhuff mjhuff force-pushed the app_refactor-ignore-route-error-recovery branch from a28ddda to 5477f57 Compare October 17, 2024 17:51
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Nice. Always wondered what useCallback is for

@mjhuff mjhuff merged commit 9938d4f into edge Oct 17, 2024
20 checks passed
@mjhuff mjhuff deleted the app_refactor-ignore-route-error-recovery branch October 17, 2024 19:24
TamarZanzouri pushed a commit that referenced this pull request Oct 18, 2024
Partially closes EXEC-776

As the "ignore error and skip/retry" routing no longer applies only to one recovery option, it's worth revisiting the way we structure routing/copy. More importantly, we probably should avoid sending any sort of "ignore all errors" policy updates to the server until the user exits error recovery, because sending policy changes earlier could provide unexpected behavior if the user selects the "ignore all option" but then clicks "go back".

If the PUT request for the policy updates fail, route the user to our "recovery failed" modal and let the user select a different (or same) option.
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