Tweak Collator/Decorator to be classes instead of methods

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Anders Näsman
2021-03-17 10:53:52 +01:00
committed by Eric Peterson
parent 124b93bff4
commit 51fc8de48c
6 changed files with 78 additions and 53 deletions
+2 -2
View File
@@ -19,14 +19,14 @@ import {
// registerCollator,
} from '@backstage/plugin-search-backend-node';
import { PluginEnvironment } from '../types';
// import { SearchCollatorFactory } from '@backstage/plugin-catalog-backend';
// import { DefaultCatalogCollator } from '@backstage/plugin-catalog-backend';
export default async function createPlugin({ logger }: PluginEnvironment) {
// TODO: Within this PR, update to use REST API instead of Catalog Builder.
/* registerCollator({
type: 'software-catalog',
defaultRefreshIntervalSeconds: 600,
collator: SearchCollatorFactory(entitiesCatalog),
collator: new DefaultCatalogCollator(entitiesCatalog),
});*/
// TODO: Make this a more proper refresh loop.