You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2023/01/03 07:46:48 UTC

[superset] branch master updated: fix(cypress): make test chart time range deterministic (#22567)

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

villebro 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 38d02a10b5 fix(cypress): make test chart time range deterministic (#22567)
38d02a10b5 is described below

commit 38d02a10b5abbe325dfac4ecc227d6a2b5db5aaa
Author: Ville Brofeldt <33...@users.noreply.github.com>
AuthorDate: Tue Jan 3 07:46:40 2023 +0000

    fix(cypress): make test chart time range deterministic (#22567)
---
 superset/examples/birth_names.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/superset/examples/birth_names.py b/superset/examples/birth_names.py
index e8832462aa..daea2d6b0e 100644
--- a/superset/examples/birth_names.py
+++ b/superset/examples/birth_names.py
@@ -168,12 +168,10 @@ def create_slices(tbl: SqlaTable) -> Tuple[List[Slice], List[Slice]]:
         "compare_lag": "10",
         "compare_suffix": "o10Y",
         "limit": "25",
-        "time_range": "No filter",
         "granularity_sqla": "ds",
         "groupby": [],
         "row_limit": app.config["ROW_LIMIT"],
-        "since": "100 years ago",
-        "until": "now",
+        "time_range": "100 years ago : now",
         "viz_type": "table",
         "markup_type": "markdown",
     }
@@ -419,8 +417,7 @@ def create_slices(tbl: SqlaTable) -> Tuple[List[Slice], List[Slice]]:
             params=get_slice_json(
                 defaults,
                 groupby=["ds"],
-                since="40 years ago",
-                until="now",
+                time_range="1983 : 2023",
                 viz_type="table",
                 metrics=metrics,
             ),