Added EntityOrderFilter to sort entities by different fields

Signed-off-by: Mahendra Patel <mahendramp197@gmail.com>
This commit is contained in:
Mahendra Patel
2025-03-20 10:18:15 +05:30
parent d47aaa3250
commit 711798d6d9
+13
View File
@@ -11,6 +11,7 @@ import { ComponentEntity } from '@backstage/catalog-model';
import { ComponentProps } from 'react';
import { CompoundEntityRef } from '@backstage/catalog-model';
import { Entity } from '@backstage/catalog-model';
import { EntityOrderQuery } from '@backstage/catalog-client';
import IconButton from '@material-ui/core/IconButton';
import { IconComponent } from '@backstage/core-plugin-api';
import { InfoCardVariants } from '@backstage/core-components';
@@ -196,6 +197,7 @@ export type DefaultEntityFilters = {
orphan?: EntityOrphanFilter;
error?: EntityErrorFilter;
namespace?: EntityNamespaceFilter;
order?: EntityOrderFilter;
};
// @public
@@ -407,6 +409,17 @@ export interface EntityNamespacePickerProps {
initiallySelectedNamespaces?: string[];
}
// @public
export class EntityOrderFilter implements EntityFilter {
constructor(value: EntityOrderQuery);
// (undocumented)
filterEntity(_: Entity): boolean;
// (undocumented)
getOrderFilters(): EntityOrderQuery;
// (undocumented)
readonly value: EntityOrderQuery;
}
// @public
export class EntityOrphanFilter implements EntityFilter {
constructor(value: boolean);