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

Prevent violated unique constraints on dimension row creation #1028

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

jjnesbitt
Copy link
Collaborator

The get_or_create calls used to create dimensional rows allowed for IntegrityError to be raised. This PR updates those calls to only query by the primary key, to prevent such an occurrence.

@jjnesbitt jjnesbitt requested a review from mvandenburgh January 9, 2025 17:51
@jjnesbitt jjnesbitt merged commit 18a117a into main Jan 9, 2025
16 checks passed
@jjnesbitt jjnesbitt deleted the fix-dimensions-get-or-create branch January 9, 2025 18:26
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