fix: Removing the logic to add timeseries_limit_metric to the data for table (#9832)
* Removing the logic to add timeseries_limit_metric to the data for table viz * Also make the change in viz_sip_38 * Fix tests Co-authored-by: michelle_thomas <michelle.thomas@airbnb.com>
This commit is contained in:
parent
c691a07948
commit
368c85de1b
|
|
@ -637,12 +637,6 @@ class TableViz(BaseViz):
|
|||
utils.get_metric_names(self.form_data.get("metrics") or [])
|
||||
)
|
||||
|
||||
timeseries_limit_metric = utils.get_metric_name(
|
||||
self.form_data.get("timeseries_limit_metric")
|
||||
)
|
||||
if timeseries_limit_metric:
|
||||
non_percent_metric_columns.append(timeseries_limit_metric)
|
||||
|
||||
percent_metric_columns = utils.get_metric_names(
|
||||
self.form_data.get("percent_metrics") or []
|
||||
)
|
||||
|
|
|
|||
|
|
@ -676,12 +676,6 @@ class TableViz(BaseViz):
|
|||
utils.get_metric_names(self.form_data.get("metrics") or [])
|
||||
)
|
||||
|
||||
timeseries_limit_metric = utils.get_metric_name(
|
||||
self.form_data.get("timeseries_limit_metric")
|
||||
)
|
||||
if timeseries_limit_metric:
|
||||
non_percent_metric_columns.append(timeseries_limit_metric)
|
||||
|
||||
percent_metric_columns = utils.get_metric_names(
|
||||
self.form_data.get("percent_metrics") or []
|
||||
)
|
||||
|
|
|
|||
|
|
@ -431,7 +431,7 @@ class TableVizTestCase(SupersetTestCase):
|
|||
datasource = self.get_datasource_mock()
|
||||
test_viz = viz.TableViz(datasource, form_data)
|
||||
data = test_viz.get_data(df)
|
||||
self.assertEqual(["sum_value", "SUM(value1)"], data["columns"])
|
||||
self.assertEqual(["sum_value"], data["columns"])
|
||||
|
||||
|
||||
class DistBarVizTestCase(SupersetTestCase):
|
||||
|
|
|
|||
Loading…
Reference in New Issue