cli icon indicating copy to clipboard operation
cli copied to clipboard

Import tuples job

Open poovamraj opened this issue 10 months ago • 1 comments

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

poovamraj avatar Jan 23 '25 16:01 poovamraj

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

ghost avatar Jan 23 '25 16:01 ghost