From 19efab7840ae928d9661fbcce955bc96730dc33b Mon Sep 17 00:00:00 2001 From: Aramis Date: Thu, 1 Feb 2024 15:10:51 -0500 Subject: [PATCH] remove getBackendParameter from interface Signed-off-by: Aramis --- plugins/catalog-react/src/filters.ts | 10 ++++------ plugins/catalog-react/src/types.ts | 8 -------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/plugins/catalog-react/src/filters.ts b/plugins/catalog-react/src/filters.ts index b024f05a14..cf94272280 100644 --- a/plugins/catalog-react/src/filters.ts +++ b/plugins/catalog-react/src/filters.ts @@ -108,13 +108,11 @@ export class EntityTextFilter implements EntityFilter { return true; } - getBackendRequestParameter() { + getFullTextFilter() { return { - fullTextFilter: { - term: this.value, - // Update this to be more dynamic based on table columns. - fields: ['metadata.name', 'metadata.title', 'spec.profile.displayName'], - }, + term: this.value, + // Update this to be more dynamic based on table columns. + fields: ['metadata.name', 'metadata.title', 'spec.profile.displayName'], }; } diff --git a/plugins/catalog-react/src/types.ts b/plugins/catalog-react/src/types.ts index 161398609d..41c7d75f0d 100644 --- a/plugins/catalog-react/src/types.ts +++ b/plugins/catalog-react/src/types.ts @@ -15,7 +15,6 @@ */ import { Entity } from '@backstage/catalog-model'; -import { JsonObject, JsonValue } from '@backstage/types'; /** @public */ export type EntityFilter = { @@ -30,13 +29,6 @@ export type EntityFilter = { string | symbol | (string | symbol)[] >; - /** - * A superset of `getCatalogFilters` that supports filtering based on parameters outside of the - * catalog filter system. Examples include `fullTextFilter` or `orderFields`. - * @returns - */ - getBackendRequestParameter?: () => Record; - /** * Filter entities on the frontend after a catalog-backend request. This function will be called * with each backend-resolved entity. This is used when frontend information is required for