Merge pull request #9333 from RoadieHQ/fix-inline-docs-search
Fix tech docs inline search on Postgres
This commit is contained in:
@@ -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) || '',
|
||||
|
||||
Reference in New Issue
Block a user