cli
cli copied to clipboard
Import tuples job
This PR introduces a import command that can track the status of the import job and can slowly ramp up the import job.
Description
~> fga import create --file ./tuples.json --store-id 01JJ9YKNTN3BYDSNMDKQGX5TND
Job created successfully - 01JJ9YNEYCHW7DBMRVTVH7NGDN
Completed 3/3. Requests Per Second - 20
The status for Job ID - 01JJ9YNEYCHW7DBMRVTVH7NGDN: Success - 3, Failed - 0%
~> ./main import list
01JJ9YNEYCHW7DBMRVTVH7NGDN
~> ./main import status 01JJ9YNEYCHW7DBMRVTVH7NGDN
The status for Job ID - : Success - 3, Failed - 0
~> ./main import retry 01JJ9YNEYCHW7DBMRVTVH7NGDN
The status for Job ID - : Success - 3, Failed - 0
References
Review Checklist
- [ ] I have clicked on "allow edits by maintainers".
- [ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
- [ ] The correct base branch is being used, if not
main - [ ] I have added tests to validate that the change in functionality is working as expected
Minder Vulnerability Report ✅
Minder analyzed this PR and found it does not add any new vulnerable dependencies.
Vulnerability scan of
ec100eb2:
- 🐞 vulnerable packages:
0- 🛠 fixes available for:
0