Replies: 1 comment 1 reply
-
Hi @UncleBats We could avoid generating a new model if it's the same one. However, we've also heard a few times that it would be useful to be able to either set the Model ID, or to be able to retrieve it using another identifier (e.g. a model name, commit id, etc). This would simplify continuous deployment scenarios where you actually change the model ID. Do you think that feature would address this issue for you? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a system where we could deploy multiple times a day, there would be a nasty side effect: due to the immutable nature of the model on each deployment, there would be a new version even when there is no change. I created a script in our pipelines that will leverage the openfga/cli to transform our model.fga and transform it into a .json file. Together with a model read on the currently deployed model, this would result in 2 json files that are sorted by fga and could be comparable.
Of course, there are different ways to solve this; however, I prefer keeping everything in a single pipeline (infrastructure, model, anti-corruption API). Is there a way to instruct openFGA to verify if the model was changed instead of me trying to work around this?
Beta Was this translation helpful? Give feedback.
All reactions