Merge pull request #9333 from RoadieHQ/fix-inline-docs-search

Fix tech docs inline search on Postgres
This commit is contained in:
Camila Belo
2022-02-14 08:17:31 +01:00
committed by GitHub
3 changed files with 8 additions and 5 deletions
@@ -198,8 +198,8 @@ describe('DefaultTechDocsCollator', () => {
componentType: entity!.spec!.type,
lifecycle: entity!.spec!.lifecycle,
owner: '',
kind: entity.kind,
name: entity.metadata.name,
kind: entity.kind.toLocaleLowerCase('en-US'),
name: entity.metadata.name.toLocaleLowerCase('en-US'),
authorization: {
resourceRef: `component:default/${entity.metadata.name}`,
},
@@ -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) || '',