This is an automated email from the ASF dual-hosted git repository.
yongjiezhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 7330aef feat: deprecate plugins by their metadata (#15882)
7330aef is described below
commit 7330aefeacae79ab48043b08e2398f24a00acead
Author: David Aaron Suddjian <[email protected]>
AuthorDate: Sat Jul 24 01:52:07 2021 -0700
feat: deprecate plugins by their metadata (#15882)
---
.../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]);