@@ -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) || '',
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user