Is the general prod workflow for authzed something like this?
1. Develop a schema and assertions, commit to repo (authzed_schema.yaml)
2. Run zed validate in CI
3. Bootstrap schema by reading authzed_schema.yaml and write relations (once)
4. Change the schema in repo
5. write code to apply new schema and migrate relations as we change the schema
j
Joey
08/14/2023, 10:24 PM
more or less, yes
b
blitz2145
08/14/2023, 10:39 PM
Great, and in step 5, I'm guessing much like with db migrations we have to try and do zero-downtime schema changes? Like add new relations/data, avoid deleting relations, etc.
j
Joey
08/14/2023, 10:45 PM
the system won't allow you to apply schema updates that are breaking
Joey
08/14/2023, 10:46 PM
if you want to remove a relation, you need to delete all data it references first