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 2022/12/23 21:13:45 UTC

[superset] branch master updated: feat: update time comparison choices (again) (#22458)

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

johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 9e81c3a119 feat: update time comparison choices (again) (#22458)
9e81c3a119 is described below

commit 9e81c3a1192a18226d505178d16e1e395917a719
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Sat Dec 24 10:13:35 2022 +1300

    feat: update time comparison choices (again) (#22458)
---
 .../superset-ui-chart-controls/src/sections/advancedAnalytics.tsx       | 2 ++
 .../plugins/legacy-plugin-chart-partition/src/controlPanel.tsx          | 2 ++
 superset-frontend/plugins/legacy-plugin-chart-rose/src/controlPanel.tsx | 2 ++
 superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx | 2 ++
 superset-frontend/src/explore/controlPanels/sections.tsx                | 2 ++
 5 files changed, 10 insertions(+)

diff --git a/superset-frontend/packages/superset-ui-chart-controls/src/sections/advancedAnalytics.tsx b/superset-frontend/packages/superset-ui-chart-controls/src/sections/advancedAnalytics.tsx
index c67018f1fe..e1ed5ff76d 100644
--- a/superset-frontend/packages/superset-ui-chart-controls/src/sections/advancedAnalytics.tsx
+++ b/superset-frontend/packages/superset-ui-chart-controls/src/sections/advancedAnalytics.tsx
@@ -119,6 +119,8 @@ export const advancedAnalyticsControls: ControlPanelSectionConfig = {
             '2 years ago',
             '156 weeks ago',
             '3 years ago',
+            '208 weeks ago',
+            '4 years ago',
           ]),
           description: t(
             'Overlay one or more timeseries from a ' +
diff --git a/superset-frontend/plugins/legacy-plugin-chart-partition/src/controlPanel.tsx b/superset-frontend/plugins/legacy-plugin-chart-partition/src/controlPanel.tsx
index ab1f8dfba6..9229373766 100644
--- a/superset-frontend/plugins/legacy-plugin-chart-partition/src/controlPanel.tsx
+++ b/superset-frontend/plugins/legacy-plugin-chart-partition/src/controlPanel.tsx
@@ -314,6 +314,8 @@ const config: ControlPanelConfig = {
                 '2 years',
                 '156 weeks',
                 '3 years',
+                '208 weeks',
+                '4 years',
               ]),
               description: t(
                 'Overlay one or more timeseries from a ' +
diff --git a/superset-frontend/plugins/legacy-plugin-chart-rose/src/controlPanel.tsx b/superset-frontend/plugins/legacy-plugin-chart-rose/src/controlPanel.tsx
index a62febe954..12795385f3 100644
--- a/superset-frontend/plugins/legacy-plugin-chart-rose/src/controlPanel.tsx
+++ b/superset-frontend/plugins/legacy-plugin-chart-rose/src/controlPanel.tsx
@@ -196,6 +196,8 @@ const config: ControlPanelConfig = {
                 '2 years',
                 '156 weeks',
                 '3 years',
+                '208 weeks',
+                '4 years',
               ]),
               description: t(
                 'Overlay one or more timeseries from a ' +
diff --git a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx
index 4532da9574..dc04720b1b 100644
--- a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx
+++ b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx
@@ -443,6 +443,8 @@ export const timeSeriesSection: ControlPanelSectionConfig[] = [
               '2 years',
               '156 weeks',
               '3 years',
+              '208 weeks',
+              '4 years',
             ]),
             description: t(
               'Overlay one or more timeseries from a ' +
diff --git a/superset-frontend/src/explore/controlPanels/sections.tsx b/superset-frontend/src/explore/controlPanels/sections.tsx
index e537dfedf9..4b0d641274 100644
--- a/superset-frontend/src/explore/controlPanels/sections.tsx
+++ b/superset-frontend/src/explore/controlPanels/sections.tsx
@@ -192,6 +192,8 @@ export const NVD3TimeSeries: ControlPanelSectionConfig[] = [
               '2 years',
               '156 weeks',
               '3 years',
+              '208 weeks',
+              '4 years',
             ]),
             description: t(
               'Overlay one or more timeseries from a ' +