fix(MyGroupsSidebarItem): Return spec.profile field on getEntities

Signed-off-by: Fabio Valente <8777512+fabiojvalente@users.noreply.github.com>
This commit is contained in:
Fabio Valente
2025-02-19 15:18:45 +00:00
parent d3bb357040
commit 18e84c9822
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -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;
}, []);