remove getBackendParameter from interface

Signed-off-by: Aramis <sennyeyaramis@gmail.com>
This commit is contained in:
Aramis
2024-02-01 15:10:51 -05:00
parent 020f0b71db
commit 19efab7840
2 changed files with 4 additions and 14 deletions
+4 -6
View File
@@ -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'],
};
}
-8
View File
@@ -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<string, JsonObject | JsonValue>;
/**
* 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