fix(MyGroupsSidebarItem): Return spec.profile field on getEntities
Signed-off-by: Fabio Valente <8777512+fabiojvalente@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-org': patch
|
||||
---
|
||||
|
||||
Fixed missing spec.profile field on MyGroupsSidebarItem.tsx so the group spec.profile.displayName is shown on the sidebar"
|
||||
@@ -256,7 +256,7 @@ describe('MyGroupsSidebarItem Test', () => {
|
||||
'relations.hasMember': 'user:default/guest',
|
||||
},
|
||||
],
|
||||
fields: ['metadata', 'kind'],
|
||||
fields: ['metadata', 'kind', 'spec.profile'],
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -301,7 +301,7 @@ describe('MyGroupsSidebarItem Test', () => {
|
||||
'spec.type': 'team',
|
||||
},
|
||||
],
|
||||
fields: ['metadata', 'kind'],
|
||||
fields: ['metadata', 'kind', 'spec.profile'],
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -69,7 +69,7 @@ export const MyGroupsSidebarItem = (props: {
|
||||
...(filter ?? {}),
|
||||
},
|
||||
],
|
||||
fields: ['metadata', 'kind'],
|
||||
fields: ['metadata', 'kind', 'spec.profile'],
|
||||
});
|
||||
return response.items;
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user