Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[load_examples] download data at runtime #7314

Merged
merged 2 commits into from
Apr 17, 2019

Conversation

mistercrunch
Copy link
Member

CATEGORY

Choose one

  • Build / Development Environment

SUMMARY

This PR will help us push our first Apache release.

When running superset load_examples to load example data sets,
Superset used to load from the local package. This created a few issues
notably around licensing (what are these datasets licensed as?) and
around package size.

For now, I moved the data sets here https://github.com/apache-superset/examples-data
and altered the logic to download the data from where it is stored (another Github repo).

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TEST PLAN

Ran superset load_examples and validated examples look ok

REVIEWERS

@kristw

When running `superset load_examples` to load example data sets,
Superset used to load from the local package. This created a few issues
notably around licensing (what are these datasets licensed as?) and
around package size.

For now, I moved the data sets here:
https://github.com/apache-superset/examples-data

Altered the logic to download the data from where it is stored.
@codecov-io
Copy link

Codecov Report

Merging #7314 into master will decrease coverage by 0.01%.
The diff coverage is 51.06%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7314      +/-   ##
==========================================
- Coverage   64.93%   64.91%   -0.02%     
==========================================
  Files         424      424              
  Lines       20589    20580       -9     
  Branches     2281     2281              
==========================================
- Hits        13369    13360       -9     
  Misses       7097     7097              
  Partials      123      123
Impacted Files Coverage Δ
superset/data/long_lat.py 25.71% <0%> (-4.02%) ⬇️
superset/data/country_map.py 25.8% <0%> (-2.32%) ⬇️
superset/data/multiformat_time_series.py 17.14% <0%> (-4.48%) ⬇️
superset/data/random_time_series.py 23.07% <0%> (-5.5%) ⬇️
superset/data/birth_names.py 100% <100%> (ø) ⬆️
superset/data/energy.py 100% <100%> (ø) ⬆️
superset/data/unicode_test_data.py 100% <100%> (ø) ⬆️
superset/data/world_bank.py 100% <100%> (ø) ⬆️
superset/data/helpers.py 97.5% <100%> (+0.94%) ⬆️
superset/data/bart_lines.py 33.33% <16.66%> (-5.13%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 154f6ab...2a50665. Read the comment docs.

Copy link
Contributor

@kristw kristw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mistercrunch mistercrunch merged commit 3d08266 into apache:master Apr 17, 2019
@mistercrunch mistercrunch deleted the remote_data branch April 17, 2019 20:19
mistercrunch added a commit that referenced this pull request Apr 19, 2019
* [load_examples] download data at runtime

When running `superset load_examples` to load example data sets,
Superset used to load from the local package. This created a few issues
notably around licensing (what are these datasets licensed as?) and
around package size.

For now, I moved the data sets here:
https://github.com/apache-superset/examples-data

Altered the logic to download the data from where it is stored.

* flakes

(cherry picked from commit 3d08266)
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 labels Feb 28, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* [load_examples] download data at runtime

When running `superset load_examples` to load example data sets,
Superset used to load from the local package. This created a few issues
notably around licensing (what are these datasets licensed as?) and
around package size.

For now, I moved the data sets here:
https://github.com/apache-superset/examples-data

Altered the logic to download the data from where it is stored.

* flakes

(cherry picked from commit 0088895)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants