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

output failed tuples to stderr #449

Open
senojj opened this issue Feb 4, 2025 · 0 comments
Open

output failed tuples to stderr #449

senojj opened this issue Feb 4, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@senojj
Copy link

senojj commented Feb 4, 2025

By writing failed tuples to stderr, they can be collected into a file to be run again in a subsequent write command.

The expectation is to be able to call the CLI like:

fga tuple write --store-id=01H0H015178Y2V4CX10C2KGHF4 --file tuples.csv 2> failed_tuples.csv > result.json

Then it is simple to retry all failed tuples like:

fga tuple write --store-id=01H0H015178Y2V4CX10C2KGHF4 --file failed_tuples.csv

It may also be beneficial to allow the specification of an output format (e.g. json, csv, yaml).

@senojj senojj added the enhancement New feature or request label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant