fix(examples): specify 'time_range_endpoints' to prevent toast warning (#11417)

This commit is contained in:
Maxime Beauchemin 2020-10-26 08:42:57 -07:00 committed by GitHub
parent 2e6afdf7e7
commit 10a54b52ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -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"],

View File

@ -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": {

View File

@ -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"],