mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
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 chartMetadata: VizEntry[] = useMemo(() => {
|
||||||
const result = Object.entries(mountedPluginMetadata)
|
const result = Object.entries(mountedPluginMetadata)
|
||||||
.map(([key, value]) => ({ key, value }))
|
.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));
|
result.sort((a, b) => vizSortFactor(a) - vizSortFactor(b));
|
||||||
return result;
|
return result;
|
||||||
}, [mountedPluginMetadata]);
|
}, [mountedPluginMetadata]);
|
||||||
|
Loading…
Reference in New Issue
Block a user