mistercrunch closed pull request #3880: [table] show 'Time' column header 
instead of '__timestamp'
URL: https://github.com/apache/incubator-superset/pull/3880
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/superset/connectors/base/models.py 
b/superset/connectors/base/models.py
index 8042ac9c1e..7ce1914543 100644
--- a/superset/connectors/base/models.py
+++ b/superset/connectors/base/models.py
@@ -145,10 +145,11 @@ def data(self):
             order_by_choices.append((json.dumps([s, True]), s + ' [asc]'))
             order_by_choices.append((json.dumps([s, False]), s + ' [desc]'))
 
-        verbose_map = {
+        verbose_map = {'__timestamp': 'Time'}
+        verbose_map.update({
             o.metric_name: o.verbose_name or o.metric_name
             for o in self.metrics
-        }
+        })
         verbose_map.update({
             o.column_name: o.verbose_name or o.column_name
             for o in self.columns


 

----------------------------------------------------------------
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