catalog-model: deprecate ENTITY_DEFAULT_NAMESPACE, replace with DEFAULT_NAMESPACE

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-02-15 10:05:57 +01:00
parent 1c9891e3fb
commit 7aeb491394
37 changed files with 108 additions and 91 deletions
@@ -34,10 +34,7 @@ import {
alertApiRef,
identityApiRef,
} from '@backstage/core-plugin-api';
import {
ENTITY_DEFAULT_NAMESPACE,
parseEntityRef,
} from '@backstage/catalog-model';
import { DEFAULT_NAMESPACE, parseEntityRef } from '@backstage/catalog-model';
type Props = {
showDialog: boolean;
@@ -61,7 +58,7 @@ export const TriggerDialog = ({
const { userEntityRef } = await identityApi.getBackstageIdentity();
const { name: userName } = parseEntityRef(userEntityRef, {
defaultKind: 'User',
defaultNamespace: ENTITY_DEFAULT_NAMESPACE,
defaultNamespace: DEFAULT_NAMESPACE,
});
await api.triggerAlarm({
integrationKey: integrationKey as string,