Don't explode grants from the DB (#5104)
This removes the Cartesian product in the DB for GrantsForUser in favor of returning the actual grant scope information and dealing with it in application code. (cherry picked from commit 913cd536823d73994acc4f4d833208c1cc05f91b)
This commit is contained in:
1 parent
2945692bf4
commit
62d4f8453b
38 files changed
+3663
-1645
No files matched your search
@@ -187,7 +187,7 @@ func TestListResolvableAliases(t *testing.T) {
|
||||
tarClient := targets.NewClient(client)
|
||||
resp, err := tarClient.List(tc.Context(), "global", targets.WithRecursive(true))
|
||||
require.NoError(err)
|
||||
assert.Len(resp.Items, 2)
|
||||
require.Len(resp.Items, 2)
|
||||
firstTargetId := resp.Items[0].Id
|
||||
secondTargetId := resp.Items[1].Id
|
||||
|
||||
|
||||
Reference in new issue
Block a user