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

Fix #117: Only open tds/twb inside archives #118

Merged
merged 1 commit into from
Dec 12, 2016
Merged

Fix #117: Only open tds/twb inside archives #118

merged 1 commit into from
Dec 12, 2016

Conversation

t8y8
Copy link
Contributor

@t8y8 t8y8 commented Dec 8, 2016

Fixes #117 and verified with a test.

Tableau 9.0 added workbooks that can have an external file cache embedded in the archive. Those workbooks have .key and .bin files. .key files are valid XML and there was a bug in the find_file_in_zip method that would return the first valid XML file it found. Now we only iterate over .twb or /tds files and try to open them (we still validate the root element a layer up). This fixes the bug and should be a little bit faster since we won't be opening as many files.

@RussTheAerialist is probably still out but maybe @LGraber can fill in.

(I'm also pretty confidant in the fix, it's small, tested, and I wrote all the original code in this file anyway :) )

@t8y8 t8y8 requested a review from LGraber December 8, 2016 20:52
@t8y8 t8y8 merged commit fb36a3a into tableau:development Dec 12, 2016
@t8y8
Copy link
Contributor Author

t8y8 commented Dec 12, 2016

I'm bad, but I wanted the fix in so #117 can be unblocked. I'll owe @RussTheAerialist a drink :)

@t8y8 t8y8 deleted the 117-fix-cached-twbx branch December 12, 2016 02:47
@graysonarts
Copy link
Contributor

Dang it @t8y8, as long as it's coffee.

graysonarts pushed a commit that referenced this pull request Jan 11, 2017
* Fix #117 by only attempting files with the right extension inside the archive (#118)

* Commenting and Docstring cleanup. A few very small code cleanups (#120)

Add docstrings and remove clutter. I also made some very tiny tweaks to some code for clarity.

* Small cleanups for various editors. Play nice with built in test-runners (#121)

* Add Py36, update travis to use pycodestyle (#124)

* Add `initial sql` and `query band` support (#123)

Addresses #109 and #110

* Prep for release of 0.6 (#125)

* Prep for release of 0.6

* wordsmithing the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants