Method to Synchronize Schema Versions with Git #346
jakeyheath
started this conversation in
Ideas
Replies: 2 comments 6 replies
-
Hi @jakeyheath What if we let you specify a model Name or ID when writing the model? e.g.
And provide a way to query by name
You'll need to query the model ID based on the name. Would that help? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Thanks @danielloader for the context! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are an organization that has heavily adopted gitops-driven workflows. All our applications use gitops to check in configuration of their deployed applications. Every application can be directly correlated to git commit. Ideally, we'd like a way to synchronize our
authorization_model_id
values with git so that we can use this same development practice to inform applications what version of the schema they are on. If we ever needed to debug a particular schema version, we could go back to that commit and see how the schema was defined.Right now,
authorization_model_id
's are randomly generated after the schema is submitted. It would be nice to have a flag or option to set the value of theauthorization_model_id
(i.e.--set-id <value>
). That way we could pass in the git SHA when submitting schema migrations and we could configure our application to use a git SHA value to use that version of the schema during deployment. We have a very similar approach to Docker build tags.Here are some solutions we've thought of implementing to work around this:
authorization_model_id
to the git repoauthorization_model_id
to git SHA and magically inject this into applicationsauthorization_model_id
's (we would love to have a paved road here, so we aren't keen on this solution as it puts a lot of burden on the development teams to do this properly)Related discussions
Beta Was this translation helpful? Give feedback.
All reactions