revert buildFilterFn relocation af0ab1cb78
Signed-off-by: Mark Dunphy <markd@spotify.com>
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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 =
|
||||
|
||||
+3
-7
@@ -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,
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user