remove getBackendParameter from interface
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
This commit is contained in:
@@ -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'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user