betodealmeida commented on a change in pull request #4173:  Using user-defined 
Javascript to customize geospatial visualization
URL: 
https://github.com/apache/incubator-superset/pull/4173#discussion_r161043989
 
 

 ##########
 File path: superset/viz.py
 ##########
 @@ -1949,22 +1959,22 @@ class DeckPathViz(BaseDeckGLViz):
 
     def query_obj(self):
         d = super(DeckPathViz, self).query_obj()
-        d['groupby'] = []
-        d['metrics'] = []
-        d['columns'] = [self.form_data.get('line_column')]
+        line_col = self.form_data.get('line_column')
+        if d['metrics']:
+            d['groupby'] += [line_col]
 
 Review comment:
   No love for `.append()`?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to