straight-pharmacist-68416
10/30/2022, 4:15 AM_, err = client.DeleteRelationTuples(context.Background(), &acl.DeleteRelationTuplesRequest{
Query: &acl.DeleteRelationTuplesRequest_Query{
Namespace: "",
Object: "",
Relation: "",
Subject: "bob",
},
})
but the below in 0.10 fails with a rpc error: code = NotFound desc = The requested resource could not be found
error
req := &acl.TransactRelationTuplesRequest{
RelationTupleDeltas: []*acl.RelationTupleDelta{
{
Action: acl.RelationTupleDelta_DELETE,
RelationTuple: &acl.RelationTuple{
Namespace: "",
Object: "",
Relation: "",
Subject: "bob",
},
},
},
}
_, err = client.TransactRelationTuples(context.Background(), req)
straight-pharmacist-68416
10/30/2022, 4:22 AMtuples, err := client.ListRelationTuples(Query{"", "", "", "bob"})
and then pass in all the tuples to the delete api?
steep-lamp-91158
straight-pharmacist-68416
10/31/2022, 8:17 PMstraight-pharmacist-68416
10/31/2022, 8:26 PMtype WriteServiceClient interface {
// Writes one or more relation tuples in a single transaction.
TransactRelationTuples(ctx context.Context, in *TransactRelationTuplesRequest, opts ...grpc.CallOption) (*TransactRelationTuplesResponse, error)
}
straight-pharmacist-68416
10/31/2022, 8:52 PM