diff --git a/superset/examples/birth_names.py b/superset/examples/birth_names.py index 2332370690de6..3f5f3beb06a77 100644 --- a/superset/examples/birth_names.py +++ b/superset/examples/birth_names.py @@ -143,6 +143,7 @@ def create_slices(tbl: BaseDatasource) -> Tuple[List[Slice], List[Slice]]: "compare_suffix": "o10Y", "limit": "25", "time_range": "No filter", + "time_range_endpoints": ["inclusive", "exclusive"], "granularity_sqla": "ds", "groupby": [], "row_limit": config["ROW_LIMIT"], diff --git a/superset/examples/deck.py b/superset/examples/deck.py index 8fee2c5039ab3..c2cecde96e236 100644 --- a/superset/examples/deck.py +++ b/superset/examples/deck.py @@ -185,6 +185,7 @@ def load_deck_dash() -> None: "max_radius": 250, "row_limit": 5000, "time_range": " : ", + "time_range_endpoints": ["inclusive", "exclusive"], "size": "count", "time_grain_sqla": None, "viewport": { diff --git a/superset/examples/world_bank.py b/superset/examples/world_bank.py index 3f7509bb824b2..0596142e85cb2 100644 --- a/superset/examples/world_bank.py +++ b/superset/examples/world_bank.py @@ -129,6 +129,7 @@ def load_world_bank_health_n_pop( # pylint: disable=too-many-locals, too-many-s "since": "2014-01-01", "until": "2014-01-02", "time_range": "2014-01-01 : 2014-01-02", + "time_range_endpoints": ["inclusive", "exclusive"], "markup_type": "markdown", "country_fieldtype": "cca3", "entity": "country_code", @@ -273,7 +274,7 @@ def load_world_bank_health_n_pop( # pylint: disable=too-many-locals, too-many-s viz_type="sunburst", groupby=["region", "country_name"], since="2011-01-01", - until="2011-01-01", + until="2011-01-02", metric=metric, secondary_metric=secondary_metric, ), @@ -330,7 +331,7 @@ def load_world_bank_health_n_pop( # pylint: disable=too-many-locals, too-many-s params=get_slice_json( defaults, since="2011-01-01", - until="2011-01-01", + until="2012-01-01", viz_type="para", limit=100, metrics=["sum__SP_POP_TOTL", "sum__SP_RUR_TOTL_ZS", "sum__SH_DYN_AIDS"],