Skip to content

Commit 123afcc

Browse files
authored
release: v0.6.3 (#441)
2 parents ce8af82 + 32a8c4b commit 123afcc

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
#### [0.6.3](https://github.com/openfga/cli/compare/v0.6.2...v0.6.3) (2025-01-22)
4+
5+
Added:
6+
- Introduced `--hide-imported-tuples` flag to `fga tuple write` to suppress logging of successfully imported tuples (#437) - thanks @Siddhant-K-code
7+
38
### [0.6.2](https://github.com/openfga/cli/compare/v0.6.1...v0.6.2) (2024-12-02)
49

510
Fixed:

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ fga tuple **write** <user> <relation> <object> --store-id=<store-id>
674674
* `--file`: Specifies the file name, `json`, `yaml` and `csv` files are supported
675675
* `--max-tuples-per-write`: Max tuples to send in a single write (optional, default=1)
676676
* `--max-parallel-requests`: Max requests to send in parallel (optional, default=4)
677+
* `--hide-imported-tuples`: When importing from a file, do not output successfully imported tuples in the command output (optional, default=false)
677678

678679
###### Example (with arguments)
679680
- `fga tuple write --store-id=01H0H015178Y2V4CX10C2KGHF4 user:anne can_view document:roadmap`
@@ -755,7 +756,29 @@ If using a `json` file, the format should be:
755756
},
756757
"reason":"Write validation error ..."
757758
}
758-
]
759+
],
760+
"failed_count": 1,
761+
"successful_count": 1,
762+
"total_count": 2
763+
}
764+
```
765+
766+
###### Response with `--hide-imported-tuples`
767+
```json5
768+
{
769+
"failed": [
770+
{
771+
"tuple_key": {
772+
"object":"document:roadmap",
773+
"relation":"writer",
774+
"user":"carl"
775+
},
776+
"reason":"Write validation error ..."
777+
}
778+
],
779+
"failed_count": 1,
780+
"successful_count": 1,
781+
"total_count": 2
759782
}
760783
```
761784

0 commit comments

Comments
 (0)