stitch targetRef and backwards compat inject it on read

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-02-18 13:57:58 +01:00
parent 4cca190797
commit d0582b2d0f
64 changed files with 388 additions and 143 deletions
@@ -57,6 +57,7 @@ const defaultEntityListResponse: GetEntitiesResponse = {
relations: [
{
type: RELATION_OWNED_BY,
targetRef: 'group:default/my-team',
target: { name: 'team-a', kind: 'group', namespace: 'default' },
},
],
@@ -57,6 +57,7 @@ const defaultEntityListResponse: GetEntitiesResponse = {
relations: [
{
type: RELATION_OWNED_BY,
targetRef: 'group:default/team-a',
target: { name: 'team-a', kind: 'group', namespace: 'default' },
},
],
@@ -57,6 +57,7 @@ const defaultEntityListResponse: GetEntitiesResponse = {
relations: [
{
type: RELATION_OWNED_BY,
targetRef: 'group:default/team-a',
target: { name: 'team-a', kind: 'group', namespace: 'default' },
},
],