You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2019/12/10 00:44:43 UTC
[incubator-superset] 01/01: [fix] Adding time grains to DualLine
This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch john-bodley--fix-dual-line-time-regression
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit 3f6369478d2b0fbf9fccd7b067e61aa752d6de67
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Tue Dec 10 13:44:32 2019 +1300
[fix] Adding time grains to DualLine
---
superset/assets/src/explore/controlPanels/DualLine.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/superset/assets/src/explore/controlPanels/DualLine.js b/superset/assets/src/explore/controlPanels/DualLine.js
index 949f6b3..f4b854f 100644
--- a/superset/assets/src/explore/controlPanels/DualLine.js
+++ b/superset/assets/src/explore/controlPanels/DualLine.js
@@ -58,4 +58,12 @@ export default {
default: 'smart_date',
},
},
+ sectionOverrides: {
+ druidTimeSeries: {
+ controlSetRows: [['granularity', 'druid_time_origin'], ['time_range']],
+ },
+ sqlaTimeSeries: {
+ controlSetRows: [['granularity_sqla', 'time_grain_sqla'], ['time_range']],
+ },
+ },
};