From f845dd6f4fb72be3ada9f43615edc75cf9b59d20 Mon Sep 17 00:00:00 2001 From: Aramis Date: Sun, 28 Jan 2024 11:46:55 -0500 Subject: [PATCH] add `spec.profile.displayName` to the searched fields Signed-off-by: Aramis --- plugins/catalog-react/src/filters.ts | 2 +- .../catalog-react/src/hooks/useEntityListProvider.test.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/catalog-react/src/filters.ts b/plugins/catalog-react/src/filters.ts index 5f1324f6cf..b024f05a14 100644 --- a/plugins/catalog-react/src/filters.ts +++ b/plugins/catalog-react/src/filters.ts @@ -113,7 +113,7 @@ export class EntityTextFilter implements EntityFilter { fullTextFilter: { term: this.value, // Update this to be more dynamic based on table columns. - fields: ['metadata.name', 'metadata.title'], + fields: ['metadata.name', 'metadata.title', 'spec.profile.displayName'], }, }; } diff --git a/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx b/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx index d5208d4f10..c2328a1aef 100644 --- a/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx +++ b/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx @@ -338,7 +338,11 @@ describe('', () => { orderFields, fullTextFilter: { term: '2', - fields: ['metadata.name', 'metadata.title'], + fields: [ + 'metadata.name', + 'metadata.title', + 'spec.profile.displayName', + ], }, }); });