Monday, 2020-05-25

*** k4ch0 has quit IRC01:25
*** evrardjp has quit IRC04:33
*** evrardjp has joined #ara04:33
*** TKersten has joined #ara05:35
*** sshnaidm|off is now known as sshnaidm07:37
*** gvincent has joined #ara09:30
*** TKersten has left #ara15:12
*** mgariepy has quit IRC16:49
*** mgariepy has joined #ara17:03
*** redshift2020 has joined #ara17:39
redshift2020hi all, do you have any examples on how to use pagination in an AraOfflineClient?17:40
redshift2020I 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
redshift2020how can I load all results (other than increasing the page size)?17:41
*** mgariepy has quit IRC17:42
*** mgariepy has joined #ara17:43
ara-slackmailbox: @mailbox has joined the channel17:48
*** mgariepy has quit IRC17:58
*** mgariepy has joined #ara18:17
dmsimardredshift2020: 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/playbooks19:08
dmsimardhttps://api.demo.recordsansible.org/api/v1/playbooks?limit=100&offset=10019:08
dmsimardAlso setting limit overrides pagination19:09
dmsimardSo if you have 201 results and use ?limit=300, you'll get everything on one page19:09
redshift2020dmsimard: thank you, I'll give it a try19:43
*** redshift2020 has quit IRC20:24
*** gvincent has quit IRC21:00
*** k4ch0 has joined #ara22:21
*** k4ch0 has quit IRC22:27
*** k4ch0 has joined #ara22:50

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!