File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
8
### [ 0.6.2] ( https://github.com/openfga/cli/compare/v0.6.1...v0.6.2 ) (2024-12-02)
4
9
5
10
Fixed:
Original file line number Diff line number Diff line change @@ -674,6 +674,7 @@ fga tuple **write** <user> <relation> <object> --store-id=<store-id>
674
674
* `--file`: Specifies the file name, `json`, `yaml` and `csv` files are supported
675
675
* `--max-tuples-per-write`: Max tuples to send in a single write (optional, default=1)
676
676
* `--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)
677
678
678
679
# ##### Example (with arguments)
679
680
- ` 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:
755
756
},
756
757
"reason":"Write validation error ..."
757
758
}
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
759
782
}
760
783
` ` `
761
784
You can’t perform that action at this time.
0 commit comments