-
Notifications
You must be signed in to change notification settings - Fork 14k
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
fix: ignore system files on import #12526
fix: ignore system files on import #12526
Conversation
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -87,3 +88,11 @@ def is_valid_config(file_name: str) -> bool: | |||
return False | |||
|
|||
return True | |||
|
|||
|
|||
def get_contents_from_bundle(bundle: ZipFile) -> Dict[str, str]: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
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