Skip to content

Commit

Permalink
feat: deprecate plugins by their metadata (apache#15882)
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian authored and cccs-RyanS committed Dec 17, 2021
1 parent 93675c6 commit 671b35d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 671b35d

Please sign in to comment.