deprecate EntityName, introduce CompoundEntityRef

deprecate getEntityName, introduce getCompoundEntityRef

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-03-02 21:26:22 +01:00
parent 80d2674a31
commit 36aa63022b
84 changed files with 393 additions and 268 deletions
+5 -2
View File
@@ -17,7 +17,7 @@
import { createDevApp } from '@backstage/dev-utils';
import { NotFoundError } from '@backstage/errors';
import React from 'react';
import { EntityName } from '@backstage/catalog-model';
import { CompoundEntityRef } from '@backstage/catalog-model';
import {
Reader,
SyncResult,
@@ -82,7 +82,10 @@ function createPage({
});
}
async syncEntityDocs(_: EntityName, logHandler?: (line: string) => void) {
async syncEntityDocs(
_: CompoundEntityRef,
logHandler?: (line: string) => void,
) {
if (syncDocsDelay) {
for (let i = 0; i < 10; i++) {
setTimeout(