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

Allow to specify flow ID when inserting new rows #125

Merged
merged 2 commits into from
Sep 22, 2023
Merged

Conversation

Pl217
Copy link
Contributor

@Pl217 Pl217 commented Sep 13, 2023

DB table flow is the only table we have where its id column is part of a composite key, alongside versionID column. Since we weren't allowing for specifying IDs during new row insertion, it wasn't possible to create a new version of already-existing flow with the database models library.

We don't want to allow all tables to specify IDs when inserting new flows, thus we introduce a new field definition group called generatedCompositeKey, which is among the least intrusive and least hacky ways of achieving the desired outcome.

@Pl217 Pl217 added the ready for review All comments have been addressed, and the Pull Request is ready for review label Sep 13, 2023
@Pl217 Pl217 requested a review from a team as a code owner September 13, 2023 15:44
@Delgee Delgee assigned Pl217 and unassigned Delgee Sep 22, 2023
@Delgee Delgee added ready for merge Review and testing is complete. It is ready for merging as soon as CI has finished. and removed ready for review All comments have been addressed, and the Pull Request is ready for review labels Sep 22, 2023
DB table `flow` is the only table we have where its
`id` column is part of a composite key, alongside
`versionID` column. Since we weren't allowing for
specifying IDs during new row insertion, it wasn't
possible to create a new version of already-existing
flow with the database models library.

We don't want to allow all tables to specify IDs
when inserting new flows, thus we introduce a new
field definition group called `generatedCompositeKey`,
which is among the least intrusive and least hacky
ways of achieving the desired outcome.
@Pl217 Pl217 merged commit 843cef5 into develop Sep 22, 2023
1 check passed
@Pl217 Pl217 deleted the flow-insert-id branch September 22, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge Review and testing is complete. It is ready for merging as soon as CI has finished.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants