Apply suggestions from code review
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -3,4 +3,8 @@
|
||||
'@backstage/plugin-catalog-common': patch
|
||||
---
|
||||
|
||||
Moved the `CatalogEntityDocument` to `@backstage/plugin-catalog-common` and deprecated the export from `@backstage/plugin-catalog-backend`
|
||||
Moved the `CatalogEntityDocument` to `@backstage/plugin-catalog-common` and deprecated the export from `@backstage/plugin-catalog-backend`.
|
||||
|
||||
A new `type` field has also been added to `CatalogEntityDocument` as a replacement for `componentType`, which is now deprecated. Both fields are still present and should be set to the same value in order to avoid issues with indexing.
|
||||
|
||||
Any search customizations need to be updated to use this new `type` field instead, including any custom frontend filters, custom frontend result components, custom search decorators, or non-default Catalog collator implementations.
|
||||
|
||||
@@ -21,7 +21,7 @@ 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 */
|
||||
/** @deprecated `componentType` is being renamed to `type`. During the transition both of these fields should be set to the same value, in order to avoid issues with indexing. */
|
||||
componentType: string;
|
||||
type: string;
|
||||
namespace: string;
|
||||
|
||||
Reference in New Issue
Block a user