Skip to content

Commit

Permalink
Fix tech docs inline search on Postgres
Browse files Browse the repository at this point in the history
Fix bug where tech docs collator stores search indices with wrong entity ref casing. Make the collator to conform legacyPathCasing configuration option.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
  • Loading branch information
Xantier committed Feb 3, 2022
1 parent f6f3f43 commit 811c710
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-carrots-suffer.md
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs-backend': patch
---

Fix bug where tech docs collator stores search indices with wrong entity ref casing. Make the collator to conform legacyPathCasing configuration option.
Expand Up @@ -145,9 +145,7 @@ export class DefaultTechDocsCollator implements DocumentCollator {
path: doc.location,
}),
path: doc.location,
kind: entity.kind,
namespace: entity.metadata.namespace || 'default',
name: entity.metadata.name,
...entityInfo,
entityTitle: entity.metadata.title,
componentType: entity.spec?.type?.toString() || 'other',
lifecycle: (entity.spec?.lifecycle as string) || '',
Expand Down

0 comments on commit 811c710

Please sign in to comment.