Merge pull request #27277 from backstage/freben/collate-filter

fix search collator filter
This commit is contained in:
Fredrik Adelöw
2024-10-21 15:44:09 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-search-backend-module-catalog': patch
---
Fixed a bug where the `filter` setting of the collator was not permitted to be an array.
@@ -73,7 +73,7 @@ export function readCollatorConfigOptions(configRoot: Config): {
config.getOptionalString('locationTemplate') ??
defaults.collatorOptions.locationTemplate,
filter:
config.getOptionalConfig('filter')?.get<EntityFilterQuery>() ??
config.getOptional<EntityFilterQuery>('filter') ??
defaults.collatorOptions.filter,
batchSize:
config.getOptionalNumber('batchSize') ??