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 insert on conflict to seeders #1219

Merged
merged 6 commits into from
Aug 2, 2024

Conversation

jonathangoulding
Copy link
Collaborator

@jonathangoulding jonathangoulding commented Jul 31, 2024

https://eaflood.atlassian.net/browse/WATER-4535

As we move to using seeders for tests we can look to add functionality to allow us to seed the actually database.

This change adds ON CONLICT resoultion based on unique constraints that are not the primary id's. This will allow the seeders to seed data and not affect existing data.

This change is part of ongoing work to with the import service and test improvements to allow us to move to parallel test runs.

As we move to using seeders for tests we can look to add functionality to allow us to seed the actually database.

This change adds ON CONLICT resoultion based on unique constraints that are not the primary id's. This will allow the seeders to seed data and not affect existing data.

This change is part of ongoing work to with the import service and test improvements to allow us to move to parallel test runs.
@jonathangoulding jonathangoulding added the testing A change to the tests or CI label Jul 31, 2024
@jonathangoulding jonathangoulding self-assigned this Jul 31, 2024
@jonathangoulding jonathangoulding marked this pull request as ready for review July 31, 2024 15:30
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

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

Let's get these in and look at regions separately.

@jonathangoulding jonathangoulding merged commit 24b3a79 into main Aug 2, 2024
6 checks passed
@jonathangoulding jonathangoulding deleted the seeder-add-on-conflict-for-seeders branch August 2, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing A change to the tests or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants