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 2021/08/10 05:01:21 UTC

[superset] 11/25: fix: load tabbed dash only for tests (#16091)

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

villebro pushed a commit to branch 1.3
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 0bacb2780b120ad169cfa79a4e4834b434a0af6d
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Thu Aug 5 10:53:22 2021 -0700

    fix: load tabbed dash only for tests (#16091)
    
    (cherry picked from commit b72fd7b9f404043543bc05f4e401118a5346d142)
---
 superset/cli.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/superset/cli.py b/superset/cli.py
index 334ee02..789402f 100755
--- a/superset/cli.py
+++ b/superset/cli.py
@@ -133,8 +133,9 @@ def load_examples_run(
     print("Loading [Birth names]")
     examples.load_birth_names(only_metadata, force)
 
-    print("Loading [Tabbed dashboard]")
-    examples.load_tabbed_dashboard(only_metadata)
+    if load_test_data:
+        print("Loading [Tabbed dashboard]")
+        examples.load_tabbed_dashboard(only_metadata)
 
     if not load_test_data:
         print("Loading [Random time series data]")