Skip to content

Conversation

@betodealmeida
Copy link
Member

SUMMARY

#12425 fixed importing ZIP files that contained system files (from unzipping and zipping again on Mac OS), but only for charts. This PR fixes it for all imports.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TEST PLAN

Unit tests for imports pass.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov-io
Copy link

codecov-io commented Jan 14, 2021

Codecov Report

Merging #12526 (756a660) into master (78baf46) will decrease coverage by 3.55%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12526      +/-   ##
==========================================
- Coverage   66.71%   63.16%   -3.56%     
==========================================
  Files        1014      485     -529     
  Lines       49576    29949   -19627     
  Branches     4960        0    -4960     
==========================================
- Hits        33076    18917   -14159     
+ Misses      16377    11032    -5345     
+ Partials      123        0     -123     
Flag Coverage Δ
cypress ?
javascript ?
python 63.16% <100.00%> (-0.76%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/charts/api.py 81.51% <100.00%> (ø)
superset/commands/importers/v1/utils.py 86.95% <100.00%> (+0.91%) ⬆️
superset/dashboards/api.py 86.63% <100.00%> (ø)
superset/databases/api.py 90.33% <100.00%> (-1.69%) ⬇️
superset/datasets/api.py 89.49% <100.00%> (-1.83%) ⬇️
superset/sql_validators/postgres.py 50.00% <0.00%> (-50.00%) ⬇️
superset/views/database/views.py 62.69% <0.00%> (-24.88%) ⬇️
superset/db_engine_specs/mysql.py 79.59% <0.00%> (-12.25%) ⬇️
superset/db_engine_specs/sqlite.py 65.62% <0.00%> (-9.38%) ⬇️
superset/db_engine_specs/presto.py 73.37% <0.00%> (-8.66%) ⬇️
... and 545 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 78baf46...756a660. Read the comment docs.

return True


def get_contents_from_bundle(bundle: ZipFile) -> Dict[str, str]:
Copy link
Member

@hughhhh hughhhh Jan 15, 2021

Choose a reason for hiding this comment

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

write small unit test to cover this

Copy link
Member Author

Choose a reason for hiding this comment

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

This is covered in the API tests

Copy link
Member

@hughhhh hughhhh left a comment

Choose a reason for hiding this comment

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

🚢

@betodealmeida betodealmeida merged commit 7bef5ab into apache:master Jan 15, 2021
dpgaspar pushed a commit to preset-io/superset that referenced this pull request Jan 20, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 First shipped in 1.2.0 labels Mar 12, 2024
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 preset-io size/M 🚢 1.2.0 First shipped in 1.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants