You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2023/11/09 06:38:05 UTC

(superset) 01/01: chore: removing unused chartMetadata field

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch removing-chartmetadata-show-field
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 72b869fba5b4b971f2781f717b98b97e27883ef4
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Wed Nov 8 23:37:57 2023 -0700

    chore: removing unused chartMetadata field
---
 .../packages/superset-ui-core/src/chart/models/ChartMetadata.ts      | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/superset-frontend/packages/superset-ui-core/src/chart/models/ChartMetadata.ts b/superset-frontend/packages/superset-ui-core/src/chart/models/ChartMetadata.ts
index 34f373f0f4..dcb1de62a5 100644
--- a/superset-frontend/packages/superset-ui-core/src/chart/models/ChartMetadata.ts
+++ b/superset-frontend/packages/superset-ui-core/src/chart/models/ChartMetadata.ts
@@ -36,7 +36,6 @@ export interface ChartMetadataConfig {
   description?: string;
   datasourceCount?: number;
   enableNoResults?: boolean;
-  show?: boolean;
   supportedAnnotationTypes?: string[];
   thumbnail: string;
   useLegacyApi?: boolean;
@@ -64,8 +63,6 @@ export default class ChartMetadata {
 
   description: string;
 
-  show: boolean;
-
   supportedAnnotationTypes: string[];
 
   thumbnail: string;
@@ -100,7 +97,6 @@ export default class ChartMetadata {
       canBeAnnotationTypes = [],
       credits = [],
       description = '',
-      show = true,
       supportedAnnotationTypes = [],
       thumbnail,
       useLegacyApi = false,
@@ -120,7 +116,6 @@ export default class ChartMetadata {
     this.name = name;
     this.credits = credits;
     this.description = description;
-    this.show = show;
     this.canBeAnnotationTypes = canBeAnnotationTypes;
     this.canBeAnnotationTypesLookup = canBeAnnotationTypes.reduce(
       (prev: LookupTable, type: string) => {