From 16f7b2b5257fac9fe1d67a1ab6ff946c2b9a427f Mon Sep 17 00:00:00 2001 From: Erik Ritter Date: Tue, 13 Oct 2020 16:00:39 -0700 Subject: [PATCH] fix: improve time compare range error (#11252) --- superset/viz.py | 4 ++-- superset/viz_sip38.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/superset/viz.py b/superset/viz.py index 8dabed663b..1e67596bf2 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1405,8 +1405,8 @@ class NVD3TimeSeriesViz(NVD3Viz): if not query_object["from_dttm"] or not query_object["to_dttm"]: raise QueryObjectValidationError( _( - "`Since` and `Until` time bounds should be specified " - "when using the `Time Shift` feature." + "An enclosed time range (both start and end) must be specified " + "when using a Time Comparison." ) ) query_object["from_dttm"] -= delta diff --git a/superset/viz_sip38.py b/superset/viz_sip38.py index 5c9b6fb0bf..d9f6f72dfc 100644 --- a/superset/viz_sip38.py +++ b/superset/viz_sip38.py @@ -1275,8 +1275,8 @@ class NVD3TimeSeriesViz(NVD3Viz): if not query_object["from_dttm"] or not query_object["to_dttm"]: raise QueryObjectValidationError( _( - "`Since` and `Until` time bounds should be specified " - "when using the `Time Shift` feature." + "An enclosed time range (both start and end) must be specified " + "when using a Time Comparison." ) ) query_object["from_dttm"] -= delta