Allow entities to be shown in system diagram to live in different namespaces

Signed-off-by: Kévin Gomez <kevin.gomez@voiapp.io>
This commit is contained in:
Kévin Gomez
2021-04-17 23:33:31 +02:00
parent 2f423757d2
commit 4405be0277
@@ -20,6 +20,7 @@ import {
RELATION_PROVIDES_API,
RELATION_PART_OF,
serializeEntityRef,
ENTITY_DEFAULT_NAMESPACE,
} from '@backstage/catalog-model';
import {
catalogApiRef,
@@ -71,7 +72,10 @@ export function SystemDiagramCard() {
return catalogApi.getEntities({
filter: {
kind: ['Component', 'API', 'Resource', 'System', 'Domain'],
'spec.system': currentSystemName,
'spec.system': [
currentSystemName,
`${ENTITY_DEFAULT_NAMESPACE}/${currentSystemName}`,
],
},
});
}, [catalogApi, currentSystemName]);