-
Notifications
You must be signed in to change notification settings - Fork 436
Include extract #203
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
Include extract #203
Conversation
* adding to ref pages; saving progress so far * Check in to save progress-o * Another chekin' for the cause * Check in more stuff; added api buckets in docs menu * Updated with users, groups; snapshot * Check in more changes to ref pages, minor fix for docs menu * more updates; formatting fixes, etc. * um updates, workbooks in prog, etc. * getting there, mostly done. * sorted, added filters, requests, etc. * ready for review.... * update to the left nav for new classes * Added sites.get_by_name; added quotes to sever.version number example * updates from tech review; added no_extract to downloads (workbook, data sources) * Added workbooks.update_connections (the cause of merge conflict); fixed some connectionitem info * tech review fixes, removed groups.get_by_id from examples, fixed datasource update example * Ran spellcheck, fixed misc errors
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.
Some minor nits, then 🚀
warnings.warn('no_extract is deprecated, use include_extract instead.', DeprecationWarning) | ||
include_extract = not no_extract | ||
|
||
if no_extract or not include_extract: |
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 can also be if not include_extract
@@ -87,13 +87,19 @@ def update_conn(self, workbook_item, connection_item): | |||
# Download workbook contents with option of passing in filepath | |||
@api(version="2.0") | |||
@parameter_added_in(no_extract='2.5') | |||
def download(self, workbook_id, filepath=None, no_extract=False): | |||
@parameter_added_in(include_extract='2.5') | |||
def download(self, workbook_id, filepath=None, no_extract=None, include_extract=True): |
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.
For some reason I want to move include_extract
to before no_extract
so we just trim the end param, but this isn't mandatory, and others may disagree.
Ugh except there are conflicts with the base branch. Can you give me write access to your fork and I can try and take a look? |
I added you, @t8y8. Also made the formatting changes suggested and you can pull those in as well. |
Good news, I confirmed that it works manually and with tests. Bad news, the git-fu is beyond me, I think it's because d45's checkin originated from master, then was merged into development, and you're branched properly from development. @RussTheAerialist is the better git-fuer. But the code looks good to me. We should: 1) review tests and make sure no_extract isn't used anywhere and 2) update the docs, but given the merge conflicts, I say that can be a 2nd checkin |
…r-client-python into include_extract
Renames `no_extract` to `include_extract` for a clearer intent on what the parameter does. `no_extract` is kept but the default changes to `None` and we detect if it's used and throw a DeprecationWarning.
Renames `no_extract` to `include_extract` for a clearer intent on what the parameter does. `no_extract` is kept but the default changes to `None` and we detect if it's used and throw a DeprecationWarning.
## 08 (October 2021) * See dashboards in a workbook * Add shapes property * Add custom sql * Drop python 2, add up through 3.9 Co-authored-by: Tyler Doyle <t8y8@users.noreply.github.com> Co-authored-by: r-richmond <rrichmond.gh@gmail.com> Co-authored-by: Russell Hay <RussTheAerialist@users.noreply.github.com> Co-authored-by: Jared Dominguez <jdomingu@users.noreply.github.com> Co-authored-by: Kernpunkt Analytics <F.Eggert@kernpunkt.de> Co-authored-by: doulam <doulam@netflix.com> Co-authored-by: Kevin Glinski <kevin.glinski@Inin.com> Co-authored-by: Russell Hay <russell.hay@gmail.com> Co-authored-by: Dave Hagen <d45@users.noreply.github.com> Co-authored-by: martin dertz <martydertz@gmail.com> Co-authored-by: dev-mkc19 <mr.mkc19@hotmail.com> Co-authored-by: Jared Dominguez <jred51@gmail.com> Co-authored-by: Ben Lower <github@benlower.us> Co-authored-by: Patrick Carlson <carlson2442@gmail.com> Co-authored-by: Graeme Britz <gbritz@tableau.com> Co-authored-by: Jac Fitzgerald <jac.fitzgerald@salesforce.com>
This is a PR to change the parameter to include the extract from no_extract to include_extract. The logic changes from the default
no_extract=False
toinclude_extract=True
. There is logic to convert the no_extract into the include_extract parameter and warn the user if it is used.