From d9bda0fadba6dc438facc399c5b1fb01cb87d65b Mon Sep 17 00:00:00 2001 From: Jesper Vahlstrup Madsen Date: Thu, 23 Jan 2025 22:13:44 +0100 Subject: [PATCH] search-backend-module-catalog: filter can be array in config schema Signed-off-by: Jesper Vahlstrup Madsen --- .changeset/smart-planes-march.md | 5 +++++ plugins/search-backend-module-catalog/config.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/smart-planes-march.md diff --git a/.changeset/smart-planes-march.md b/.changeset/smart-planes-march.md new file mode 100644 index 0000000000..619c37c675 --- /dev/null +++ b/.changeset/smart-planes-march.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-search-backend-module-catalog': patch +--- + +Allow filter to be an array in config schema diff --git a/plugins/search-backend-module-catalog/config.d.ts b/plugins/search-backend-module-catalog/config.d.ts index be9122b907..0c4302a9c4 100644 --- a/plugins/search-backend-module-catalog/config.d.ts +++ b/plugins/search-backend-module-catalog/config.d.ts @@ -36,7 +36,7 @@ export interface Config { * * Defaults to no filter, ie indexing all entities. */ - filter?: object; + filter?: object | object[]; /** * The number of entities to process at a time. Keep this at a * reasonable number to avoid overloading either the catalog or the