Skip to content

Commit

Permalink
fix(examples): specify 'time_range_endpoints' to prevent toast warning (
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Oct 26, 2020
1 parent 2e6afdf commit 10a54b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions superset/examples/birth_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
1 change: 1 addition & 0 deletions superset/examples/deck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
5 changes: 3 additions & 2 deletions superset/examples/world_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
),
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit 10a54b5

Please sign in to comment.