You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/05/04 17:19:41 UTC

[GitHub] GabeLoins commented on a change in pull request #4914: [WiP] make MetricsControl the standard across visualizations

GabeLoins commented on a change in pull request #4914: [WiP] make MetricsControl the standard across visualizations
URL: https://github.com/apache/incubator-superset/pull/4914#discussion_r186150357
 
 

 ##########
 File path: superset/viz.py
 ##########
 @@ -90,6 +88,28 @@ def __init__(self, datasource, form_data, force=False):
         self._any_cached_dttm = None
         self._extra_chart_data = None
 
+        self.process_metrics()
+
+    def process_metrics(self):
+        self.metric_dict = {}
+        fd = self.form_data
+        for mkey in METRIC_KEYS:
+            val = fd.get(mkey)
+            if val:
+                print(mkey, val)
 
 Review comment:
   zoops

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org