You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2022/08/09 16:20:52 UTC

[superset] branch fix-pivot-reports created (now 7ea2a0a86c)

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

hugh pushed a change to branch fix-pivot-reports
in repository https://gitbox.apache.org/repos/asf/superset.git


      at 7ea2a0a86c take form_data reference for form_data

This branch includes the following new commits:

     new 7ea2a0a86c take form_data reference for form_data

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[superset] 01/01: take form_data reference for form_data

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch fix-pivot-reports
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 7ea2a0a86ca6e9f3728e9a74b06ac4483b23d5cf
Author: hughhhh <hu...@gmail.com>
AuthorDate: Tue Aug 9 12:20:32 2022 -0400

    take form_data reference for form_data
---
 superset/charts/post_processing.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/charts/post_processing.py b/superset/charts/post_processing.py
index 81d2a09b04..bd0c31be6d 100644
--- a/superset/charts/post_processing.py
+++ b/superset/charts/post_processing.py
@@ -235,7 +235,7 @@ def pivot_table_v2(
         df,
         rows=get_column_names(form_data.get("groupbyRows"), verbose_map),
         columns=get_column_names(form_data.get("groupbyColumns"), verbose_map),
-        metrics=get_metric_names(form_data["metrics"], verbose_map),
+        metrics=form_data["metrics"],
         aggfunc=form_data.get("aggregateFunction", "Sum"),
         transpose_pivot=bool(form_data.get("transposePivot")),
         combine_metrics=bool(form_data.get("combineMetric")),