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/16 05:49:05 UTC

[superset] 15/34: feat: CLI cleanup (#16178)

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 61a6795961b09e2e90ca24d0d6c40376eeeb9c23
Author: AAfghahi <48...@users.noreply.github.com>
AuthorDate: Tue Aug 10 21:00:34 2021 -0400

    feat: CLI cleanup  (#16178)
    
    * added google alert
    
    * removing datasets from cli
    
    (cherry picked from commit 6df16c4b1f4b1fcfe23cf1bca41ea39e9d28240f)
---
 superset/cli.py | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/superset/cli.py b/superset/cli.py
index 789402f..0382054 100755
--- a/superset/cli.py
+++ b/superset/cli.py
@@ -124,8 +124,9 @@ def load_examples_run(
 
     examples.load_css_templates()
 
-    print("Loading energy related dataset")
-    examples.load_energy(only_metadata, force)
+    if load_test_data:
+        print("Loading energy related dataset")
+        examples.load_energy(only_metadata, force)
 
     print("Loading [World Bank's Health Nutrition and Population Stats]")
     examples.load_world_bank_health_n_pop(only_metadata, force)
@@ -138,21 +139,12 @@ def load_examples_run(
         examples.load_tabbed_dashboard(only_metadata)
 
     if not load_test_data:
-        print("Loading [Random time series data]")
-        examples.load_random_time_series_data(only_metadata, force)
-
         print("Loading [Random long/lat data]")
         examples.load_long_lat_data(only_metadata, force)
 
         print("Loading [Country Map data]")
         examples.load_country_map_data(only_metadata, force)
 
-        print("Loading [Multiformat time series]")
-        examples.load_multiformat_time_series(only_metadata, force)
-
-        print("Loading [Paris GeoJson]")
-        examples.load_paris_iris_geojson(only_metadata, force)
-
         print("Loading [San Francisco population polygons]")
         examples.load_sf_population_polygons(only_metadata, force)