revert buildFilterFn relocation af0ab1cb78

Signed-off-by: Mark Dunphy <markd@spotify.com>
This commit is contained in:
Mark Dunphy
2025-05-14 13:39:01 -04:00
parent c2545d5828
commit bd18254818
15 changed files with 5 additions and 10 deletions
-1
View File
@@ -20,4 +20,3 @@ export * from './predicates';
export { catalogReactTranslationRef } from '../translation';
export { isOwnerOf } from '../utils/isOwnerOf';
export { useEntityPermission } from '../hooks/useEntityPermission';
export { buildFilterFn } from './filter/FilterWrapper';
+1 -1
View File
@@ -26,7 +26,7 @@ import {
EntityContentLayoutBlueprint,
EntityContentLayoutProps,
} from '@backstage/plugin-catalog-react/alpha';
import { buildFilterFn } from '@backstage/plugin-catalog-react/alpha';
import { buildFilterFn } from './filter/FilterWrapper';
import { useEntity } from '@backstage/plugin-catalog-react';
export const catalogOverviewEntityContent =
@@ -24,13 +24,9 @@ import { parseFilterExpression } from './parseFilterExpression';
const seenParseErrorExpressionStrings = new Set<string>();
const seenDuplicateExpressionStrings = new Set<string>();
/**
* Given an optional filter function and an optional filter expression, make
* sure that at most one of them was given, and return a filter function that
* does the right thing.
*
* @alpha
*/
// Given an optional filter function and an optional filter expression, make
// sure that at most one of them was given, and return a filter function that
// does the right thing.
export function buildFilterFn(
filterFunction?: (entity: Entity) => boolean,
filterExpression?: string,
+1 -1
View File
@@ -31,11 +31,11 @@ import {
EntityHeaderBlueprint,
EntityContentBlueprint,
defaultEntityContentGroups,
buildFilterFn,
EntityContextMenuItemBlueprint,
} from '@backstage/plugin-catalog-react/alpha';
import { rootRouteRef } from '../routes';
import { useEntityFromUrl } from '../components/CatalogEntityPage/useEntityFromUrl';
import { buildFilterFn } from './filter/FilterWrapper';
export const catalogPage = PageBlueprint.makeWithOverrides({
inputs: {