Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion superset/assets/cypress_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ cd "$(dirname "$0")"
#run all the python steps in a background process
time superset db upgrade
time superset load_test_users
time superset load_examples --load-test-data
time superset init
echo "[completed python build steps]"
flask run -p 8081 --with-threads --reload --debugger &
Expand Down
10 changes: 5 additions & 5 deletions superset/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ def load_examples_run(load_test_data):
print("Loading [Birth names]")
data.load_birth_names()

print("Loading [Unicode test data]")
data.load_unicode_test_data()

if not load_test_data:
print("Loading [Random time series data]")
data.load_random_time_series_data()
Expand Down Expand Up @@ -118,8 +115,11 @@ def load_examples_run(load_test_data):
print("Loading DECK.gl demo")
data.load_deck_dash()

print("Loading [Tabbed dashboard]")
data.load_tabbed_dashboard()
print("Loading [Tabbed dashboard]")
data.load_tabbed_dashboard()

print("Loading [Unicode test data]")
data.load_unicode_test_data()


@app.cli.command()
Expand Down
1 change: 1 addition & 0 deletions superset/data/birth_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ def load_birth_names():

if not dash:
dash = Dash()
dash.published = True
js = textwrap.dedent(
# pylint: disable=line-too-long
"""\
Expand Down
1 change: 1 addition & 0 deletions superset/data/deck.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ def load_deck_dash():

if not dash:
dash = Dash()
dash.published = True
js = POSITION_JSON
pos = json.loads(js)
update_slice_ids(pos, slices)
Expand Down
1 change: 1 addition & 0 deletions superset/data/misc_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def load_misc_dashboard():

if not dash:
dash = Dash()
dash.published = True
js = textwrap.dedent(
"""\
{
Expand Down
1 change: 1 addition & 0 deletions superset/data/world_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ def load_world_bank_health_n_pop():

if not dash:
dash = Dash()
dash.published = True
js = textwrap.dedent(
"""\
{
Expand Down
3 changes: 3 additions & 0 deletions tests/load_examples_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ def test_load_world_bank_health_n_pop(self):
def test_load_birth_names(self):
data.load_birth_names()

def test_load_tabbed_dashboard(self):
data.load_tabbed_dashboard()

def test_load_test_users_run(self):
load_test_users_run()
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ whitelist_externals =
[testenv:black]
commands =
black --check setup.py superset tests
deps =
deps =
-rrequirements-dev.txt

[testenv:cypress-dashboard]
commands =
npm install -g npm@'>=6.5.0'
pip install -e {toxinidir}/
nosetests tests/load_examples_test.py
{toxinidir}/superset/assets/cypress_build.sh dashboard
deps =
-rrequirements.txt
Expand All @@ -75,6 +76,7 @@ setenv =
commands =
npm install -g npm@'>=6.5.0'
pip install -e {toxinidir}/
nosetests tests/load_examples_test.py
{toxinidir}/superset/assets/cypress_build.sh explore
deps =
-rrequirements.txt
Expand All @@ -88,6 +90,7 @@ setenv =
commands =
npm install -g npm@'>=6.5.0'
pip install -e {toxinidir}/
nosetests tests/load_examples_test.py
{toxinidir}/superset/assets/cypress_build.sh sqllab
deps =
-rrequirements.txt
Expand Down