Tuesday, 2023-11-28

lajoskatonagtema: Hi , I would like to ask about your OpenAPI work (https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.org/thread/BU5JH7FJ5VPS75QWPW47IYSZOFDI5R2W/ )09:07
lajoskatonagtema: I added this topic to today's Neutron meeting09:08
lajoskatonato have some more attention.09:08
lajoskatonagtema: do you think that as Neutron team can somehow help this effort? Or perhaps from the other perspective: how users can benefit from it and how we can make this experience better and more visible?09:09
gtemalajoskatona: I could participate probably in the meeting to answer all questions. When is it?09:15
gtemagenerally yes, there is both how Neutron team can help me and how users can benefit from it09:16
lajoskatonagtema: the meeting is from 1400UTC, I added the topic to the ondemand agenda, as that is at the end of the meeting usually I can ping you09:24
lajoskatonagtema: thanks for your time09:24
gtemaperfect, thanks09:24
opendevreviewStephen Finucane proposed openstack/openstacksdk master: RFC: Statically typed resources  https://review.opendev.org/c/openstack/openstacksdk/+/90208714:49
stephenfingtema: Think you might be interested in ^. It could work quite nicely with your OpenAPI stuff, either as a source or (more likely now) as an output of the OpenAPI schemas14:51
stephenfinsuper WIP!14:51
gtemastephenfin - if you end up in a better design of individual resources we can definitely generate it new style from openapi14:59
gtemathat is what I was roughly thinking of14:59
gtemaI actually thought of starting using pydantic for resources and generate as a code all the parameter mapping (for every api call, since the dynamics of attributes_iterator are too expensive15:00
stephenfinYeah, I think we'd be able to do that with the above example, since the base class only describes the resource while the nested classes describe the various request parameters (CRUD)15:01
stephenfinIt's just a case of figuring out a way to (a) implement it and (b) have a gradual transition that doesn't necessitate us rewriting everything at once15:02
stephenfinunless I can learn how to use codepilot and train it to do that for me15:02
stephenfin:)15:02
gtema:)15:02
gtemaI think it should not be a big deal even having multiple iterations of the regeneration (step-by-step)15:03
gtemaI now already have experience (lol) of using inspect.getcode/obj) and looking at the code15:04
gtemaso generally we could gradually regenerate code by slowly adding bits into the existing code15:04
opendevreviewMerged openstack/keystoneauth master: Fix "dictionary changed size during iteration"  https://review.opendev.org/c/openstack/keystoneauth/+/90053015:27
opendevreviewMridula Joshi proposed openstack/python-openstackclient master: Adding CLI support for ``glance image-create-via-import``  https://review.opendev.org/c/openstack/python-openstackclient/+/89302215:52
opendevreviewStephen Finucane proposed openstack/cliff master: Use importlib.metadata on Python 3.10+  https://review.opendev.org/c/openstack/cliff/+/85957916:54
opendevreviewBenjamin Alan Beasley proposed openstack/cliff master: Use importlib.metadata on Python 3.10+  https://review.opendev.org/c/openstack/cliff/+/85957917:00
opendevreviewBenjamin Alan Beasley proposed openstack/cliff master: Use importlib.metadata on Python 3.10+  https://review.opendev.org/c/openstack/cliff/+/85957917:08

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