Skip to content
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

Import tuples job #442

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Import tuples job #442

wants to merge 4 commits into from

Conversation

poovamraj
Copy link
Contributor

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

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant