-
Notifications
You must be signed in to change notification settings - Fork 36
feat(import): allow to use tuples and tuple_file together #369
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
feat(import): allow to use tuples and tuple_file together #369
Conversation
32cdebc
to
5110b2f
Compare
5110b2f
to
1e6fda5
Compare
@DanielBertocci thanks for this and apologies it took us so long to get to this - we'll be taking a closer look at this and adding tests. Thanks for your patience |
Thanks @DanielBertocci - it does make sense to do this change, thank you for the suggestion and the PR. So as not to delay it, will merge it and we can update the docs after |
We don't have great docs on the store file - we should create a The README should link to this file whenever it is discussing the format. Our VS Code and IntelliJ plugins should reference it in their own docs and our docs in openfga.dev should bundle it |
Description
The current implementation on
fga store import
supports a configuration file with tuples and tuple_file fields.When tuple_file field is defined, all the tuples defined are ignored.
In this PR, I propose to join the tuples defined in the configuration file with the ones stored in the file set in tuple_file.
Allowing this, enables composition scenarios in which it is possible to share tuples between different store definitions.
Example
store_environment_a.yaml
store_environment_b.yaml
Review Checklist
main