-
Notifications
You must be signed in to change notification settings - Fork 436
Jorwoods/query endpoint paging #881
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
Jorwoods/query endpoint paging #881
Conversation
0b1f281
to
af99866
Compare
Yes - this looks good. Thanks for the improvement. |
28e76a8
to
2c54a16
Compare
@bcantoni Seems the slack notifier is failing when I push on this PR. The error message is empty so I am not sure what is needed to resolve it. |
afd30e4
to
dabe2cf
Compare
Thanks for the contribution! Unfortunately we can't verify the commit author(s): Jordan Woods <J***@m***.com>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce.com Contributor License Agreement and this Pull Request will be revalidated. |
2b40824
to
a19588d
Compare
This to me is a pretty important PR that should definitely be merged before the next release. Any use of the |
commit ad57851 Author: jorwoods <jorwoods@users.noreply.github.com> Date: Thu Nov 11 15:55:01 2021 -0600 Jorwoods/type hint revisions (tableau#956) Add type hints and tests for workbook and data source revisions commit bb0feb8 Author: elsherif <selsherif@tableau.com> Date: Wed Nov 10 01:21:16 2021 +0100 Add support to datasource and workbook revisions (tableau#931) * add support to datasource and workbook revisions (get all item revisions / downlad item by revision number) * add type hints * remove wrong type hints commit 31d420f Author: Stephen Mitchell <scum@mac.com> Date: Tue Nov 9 01:02:14 2021 -0500 Clean up hidden_views by making it an attribute of WorkbookItem (tableau#617) * Clean up hidden views and make it an attribute of workbookitem * Pycodestyle error fix for one letter variable Co-authored-by: Jac <jacalata@users.noreply.github.com> Co-authored by: Stephen Mitchell https://github.com/scuml commit 7443f68 Author: jorwoods <jorwoods@users.noreply.github.com> Date: Sun Nov 7 05:57:42 2021 -0600 Add type hints to `Job` (tableau#939) commit c8170ae Author: Tyler Doyle <doyle.tyler@gmail.com> Date: Mon Nov 1 20:36:17 2021 -0400 Fix slack once and for all (tableau#946) The red X keeps coming back so I'd like to mark this as allowably fail-able -- that way the innards of Slack/OAuth/Tableau credentials don't keep polluting test run reports :)
a19588d
to
a5b1542
Compare
I think I'm missing something here - what does this add to the existing Pager/Pagination functionality? In the sample list.py, I can retrieve over 100 views already. |
Mostly it’s syntactic sugar. This corrects an issue with the QuerySet introduced in #615 . It makes filtering easier than building a
|
* Automatically paginate in QuerySet endpoints * Enable queryset operations for flows, groups, jobs, projects * Keep only page_size in memory * NULL result cache to ensure restarting from the first page * Use modulus to simplify idx calculation * Add support for slicing * Minimum page number is 1 * Properly support negative steps
Tweaks the
QuerySet
added by @scuml to enable automatic pagination through all results. @scuml - Was the original intent to have users explicitly paginate through results? Would handling the pagination implicitly within the__iter__
break anything?Also adds the ability to use
QuerySet
operations on Groups and Flows.