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

[BUG] : Foreign Key Constraint fails OCEs syncing process #1139

Open
alinauroz opened this issue Sep 26, 2023 · 0 comments
Open

[BUG] : Foreign Key Constraint fails OCEs syncing process #1139

alinauroz opened this issue Sep 26, 2023 · 0 comments

Comments

@alinauroz
Copy link
Collaborator

Describe the bug
When an OCE is generated via a CoBudget bucket, and subsequently, that bucket is deleted, issue arise during the synchronisation of OCEs for the corresponding round. This issues trigger foreign key constraint violations, because bucket is missing, resulting in synchronisation failures.

To Reproduce
Steps to reproduce the behavior:

  1. Create an OpenCollective Expense (OCE) via the Bucket
  2. Delete the Cobudget Bucket
  3. Sync OCEs for the Round through Round's Integration Settings
  4. See the Foreign Key Constraint Failure

Expected behaviour
Syncing process should not fail. The bucketId in OCE which are missing in Cobudget database should be removed.

@alinauroz alinauroz changed the title [BUG] [BUG] : Foreign Key Constraint fails OCEs syncing process Sep 26, 2023
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

No branches or pull requests

1 participant