chore: reworking some more things

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-03-03 11:38:26 +01:00
parent 8b3678e120
commit 633019509a
4 changed files with 7 additions and 1 deletions
@@ -126,6 +126,7 @@ export class DefaultCatalogCollator {
}),
text: this.getDocumentText(entity),
componentType: entity.spec?.type?.toString() || 'other',
type: entity.spec?.type?.toString() || 'other',
namespace: entity.metadata.namespace || 'default',
kind: entity.kind,
lifecycle: (entity.spec?.lifecycle as string) || '',
@@ -155,6 +155,7 @@ export class DefaultCatalogCollatorFactory implements DocumentCollatorFactory {
}),
text: this.getDocumentText(entity),
componentType: entity.spec?.type?.toString() || 'other',
type: entity.spec?.type?.toString() || 'other',
namespace: entity.metadata.namespace || 'default',
kind: entity.kind,
lifecycle: (entity.spec?.lifecycle as string) || '',
+3 -1
View File
@@ -14,7 +14,7 @@ export const catalogEntityDeletePermission: Permission;
// @public
export interface CatalogEntityDocument extends IndexableDocument {
// (undocumented)
// @deprecated (undocumented)
componentType: string;
// (undocumented)
kind: string;
@@ -24,6 +24,8 @@ export interface CatalogEntityDocument extends IndexableDocument {
namespace: string;
// (undocumented)
owner: string;
// (undocumented)
type: string;
}
// @alpha
@@ -21,7 +21,9 @@ import { IndexableDocument } from '@backstage/search-common';
* @public
*/
export interface CatalogEntityDocument extends IndexableDocument {
/** @deprecated use `type` as well, as `componentType` will be removed after a few releases but we dont want to break indexing */
componentType: string;
type: string;
namespace: string;
kind: string;
lifecycle: string;