This is an automated email from the ASF dual-hosted git repository. suddjian pushed a commit to branch deprecated-chart-types in repository https://gitbox.apache.org/repos/asf/superset.git
commit 81ee8d2fa842f2d35c482f1fad0beb6a7911b262 Author: David Aaron Suddjian <[email protected]> AuthorDate: Fri Jul 23 16:39:33 2021 -0700 feat: deprecate plugins by their metadata --- .../explore/components/controls/VizTypeControl/VizTypeGallery.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/explore/components/controls/VizTypeControl/VizTypeGallery.tsx b/superset-frontend/src/explore/components/controls/VizTypeControl/VizTypeGallery.tsx index 50fd3b6..746bda8 100644 --- a/superset-frontend/src/explore/components/controls/VizTypeControl/VizTypeGallery.tsx +++ b/superset-frontend/src/explore/components/controls/VizTypeControl/VizTypeGallery.tsx @@ -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]);
