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

Add and Throw Explicit Errors for DB Migration Failure Points #3096

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

aataraxiaa
Copy link
Contributor

@aataraxiaa aataraxiaa commented Aug 12, 2024

Task/Issue URL: https://app.asana.com/0/1206488453854252/1207802624568506/f

Description: The PIR v3 migration can fail at three points:

  1. Orphaned Record Cleanup
  2. Table Recreation
  3. Final Foreign Key Violation Check

Currently, we throw an explicit error for #3, which is observable via Pixels. We should also throw explicit errors for #1 and #2. This PR adds these new errors.

Steps to test this PR:

  1. N/A - This simply throws explicit errors for existing possible error paths

Definition of Done:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

Copy link
Contributor

@THISISDINOSAUR THISISDINOSAUR left a comment

Choose a reason for hiding this comment

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

LGTM!

@aataraxiaa aataraxiaa merged commit 6001f25 into main Aug 13, 2024
24 of 25 checks passed
@aataraxiaa aataraxiaa deleted the pete/pir-db-migration-explicit-errors branch August 13, 2024 18:40
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