does the new delete api in keto 0.10 not support e...
# talk-keto
s
does the new delete api in keto 0.10 not support empty/wildcard arguments? this used to work in 0.8:
Copy code
_, 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
Copy code
req := &acl.TransactRelationTuplesRequest{
		RelationTupleDeltas: []*acl.RelationTupleDelta{
			{
				Action: acl.RelationTupleDelta_DELETE,
				RelationTuple: &acl.RelationTuple{
					Namespace: "",
					Object:    "",
					Relation:  "",
					Subject:   "bob",
				},
			},
		},
	}
_, err = client.TransactRelationTuples(context.Background(), req)
if this isnt supported anymore, should we just
Copy code
tuples, err := client.ListRelationTuples(Query{"", "", "", "bob"})

and then pass in all the tuples to the delete api?
s
Transact and delete are not the same APIs and have different behavior
s
in 0.10, looks like the delete api was removed and replaced with transact, is that correct?
this is what i see:
Copy code
type WriteServiceClient interface {
	// Writes one or more relation tuples in a single transaction.
	TransactRelationTuples(ctx context.Context, in *TransactRelationTuplesRequest, opts ...grpc.CallOption) (*TransactRelationTuplesResponse, error)
}
nvm turns out my gomod paths were messed up, and i was using v1alpha1 whenever i tried to install 0.10.0-alpha.0