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

improves the error flow in updateUploadStatusTable #4323

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

andrew-nowak
Copy link
Member

What does this change?

Currently we recover from the uploadAttempt before we continue on the happy path, which means that the future is turned from a failure to a success, but holding the exception from the previous failure, which of course fails the pattern match, leaving us with a very confusing stack trace. Instead handle both success and failure cases by using a transformWith, which provides the bonus that we can handle the table update failure cases together

How should a reviewer test this change?

How can success be measured?

Who should look at this?

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

currently we recover from the uploadAttempt before we continue on the
happy path, which means that the future is turned from a failure to a
success, but holding the exception from the previous failure, which of
course fails the pattern match. Instead handle both success and failure
cases by using a `transformWith`, which provides the bonus that we can
handle the table update failure cases together
@andrew-nowak andrew-nowak requested review from a team as code owners August 29, 2024 10:37
Copy link

github-actions bot commented Aug 29, 2024

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.

1 participant