mirror of https://github.com/apache/superset.git
feat: deprecate plugins by their metadata (#15882)
This commit is contained in:
parent
65728ea049
commit
7330aefeac
|
@ -398,7 +398,10 @@ export default function VizTypeGallery(props: VizTypeGalleryProps) {
|
|||
const chartMetadata: VizEntry[] = useMemo(() => {
|
||||
const result = Object.entries(mountedPluginMetadata)
|
||||
.map(([key, value]) => ({ key, value }))
|
||||
.filter(({ value }) => nativeFilterGate(value.behaviors || []));
|
||||
.filter(
|
||||
({ value }) =>
|
||||
nativeFilterGate(value.behaviors || []) && !value.deprecated,
|
||||
);
|
||||
result.sort((a, b) => vizSortFactor(a) - vizSortFactor(b));
|
||||
return result;
|
||||
}, [mountedPluginMetadata]);
|
||||
|
|
Loading…
Reference in New Issue