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
| 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.
This can also be if not include_extract
| @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.
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=Falsetoinclude_extract=True. There is logic to convert the no_extract into the include_extract parameter and warn the user if it is used.