Wednesday, 2025-06-18

opendevreviewdjp proposed openstack/openstacksdk master: Fix volume attachments limit  https://review.opendev.org/c/openstack/openstacksdk/+/95151704:16
opendevreviewTakashi Kajinami proposed openstack/python-openstackclient master: Replace deprecated datetime.utcfromtimestamp  https://review.opendev.org/c/openstack/python-openstackclient/+/95280809:15
opendevreviewTakashi Kajinami proposed openstack/python-openstackclient master: Replace deprecated datetime.utcfromtimestamp  https://review.opendev.org/c/openstack/python-openstackclient/+/95280809:16
stephenfingtema: If I do `volume list --limit 1`, what do you think that should do?16:39
gtemahehe, I know what you mean16:40
stephenfinand likewise for `volume list --limit 1000`16:40
gtemadue to that sort of "conflict" I added --max-items dedicated param in the rust cli16:41
gtemaand use limit as an API page limit, but still fetch all pages until I reach max-items16:42
stephenfinyeah, I've been looking at https://review.opendev.org/c/openstack/openstacksdk/+/951517. idk if `limit` means "fetch all the resources in batches/pages of size N" or "fetch N resources"16:42
stephenfins/means/should mean/16:42
stephenfingood to hear it's not just me that's confused though :)16:42
gtemawe are passing it to the API as page size fetching all pages16:42
gtemathere are few other things that I explicitly decided to drop this old "convention" to cleanup the UX16:43
stephenfinyup, which probably makes more sense from a library perspective, but not from a CLI perspective16:43
gtemaright. Keeping backward compatibility in lot of things limit us making a good UX16:45
gtemaso time to start switching to the new stuff ;-)16:45
gtemaI think now it would be good to rename limit to page_size in the rust cli explicitly to erase any confusion16:55
stephenfinthat would be a good clal17:02
stephenfin*call17:02
opendevreviewMerged openstack/python-openstackclient master: Replace deprecated datetime.utcfromtimestamp  https://review.opendev.org/c/openstack/python-openstackclient/+/95280818:53

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