| *** k4ch0 has quit IRC | 01:25 | |
| *** evrardjp has quit IRC | 04:33 | |
| *** evrardjp has joined #ara | 04:33 | |
| *** TKersten has joined #ara | 05:35 | |
| *** sshnaidm|off is now known as sshnaidm | 07:37 | |
| *** gvincent has joined #ara | 09:30 | |
| *** TKersten has left #ara | 15:12 | |
| *** mgariepy has quit IRC | 16:49 | |
| *** mgariepy has joined #ara | 17:03 | |
| *** redshift2020 has joined #ara | 17:39 | |
| redshift2020 | hi all, do you have any examples on how to use pagination in an AraOfflineClient? | 17:40 |
|---|---|---|
| redshift2020 | I am using "latest_playbook = max(playbooks["results"], key=lambda p: p.get("started"))" but it is limited to the default page (100 elements) | 17:40 |
| redshift2020 | how can I load all results (other than increasing the page size)? | 17:41 |
| *** mgariepy has quit IRC | 17:42 | |
| *** mgariepy has joined #ara | 17:43 | |
| ara-slack | mailbox: @mailbox has joined the channel | 17:48 |
| *** mgariepy has quit IRC | 17:58 | |
| *** mgariepy has joined #ara | 18:17 | |
| dmsimard | redshift2020: there is no built-in pagination in the client (yet), would be a nice addition. In the meantime you can use the limit/offset links that are suggested in next/previous, for example: https://api.demo.recordsansible.org/api/v1/playbooks | 19:08 |
| dmsimard | https://api.demo.recordsansible.org/api/v1/playbooks?limit=100&offset=100 | 19:08 |
| dmsimard | Also setting limit overrides pagination | 19:09 |
| dmsimard | So if you have 201 results and use ?limit=300, you'll get everything on one page | 19:09 |
| redshift2020 | dmsimard: thank you, I'll give it a try | 19:43 |
| *** redshift2020 has quit IRC | 20:24 | |
| *** gvincent has quit IRC | 21:00 | |
| *** k4ch0 has joined #ara | 22:21 | |
| *** k4ch0 has quit IRC | 22:27 | |
| *** k4ch0 has joined #ara | 22:50 | |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!