Monday, 2022-07-25

tonybprior to opendev the "best" way to get a list of all the OpenStack projects was something like: `ssh review.openstack.org gerrit ls-projects`  That will still work but I'm wondring if there is an https API that will give me the same results.  Making some thing up `curl https://opendev.org/repositories?org=openstack` ?00:21
fungitonyb: i think gitea has a rest api, maybe see if they have docs? but also you can query the projects endpoint of the gerrit rest api01:07
tonybfungi: Thanks.  I'll check both.01:08
fungitonyb: https://review.opendev.org/Documentation/rest-api-projects.html you can filter by prefix or regex01:09
fungikeep in mind that the gerrit rest api responses are prepended with a xss buster sequence, so you need to trim off the first 4 bytes to parse as proper json01:10
tonybfungi: "This is the same as using the ls-projects command over SSH " Aweome!01:12
tonybfungi: reasonably easy to deal with in pythn or bash :)01:12
fungioh, actually it looks like the prepended xss buster may be omitted when i use curl01:12
fungior maybe not01:13
fungianyway, this works on the cli:01:13
fungicurl 'https://review.opendev.org/projects/?p=openstack%2F' | sed "/^)\]}'$/d"01:19
fungislight leaning toothpick syndrome, but the result parses as proper json01:19
tonybfungi: I did curel ... | cut -zb6- | jq .   Mostly because I didn't think of sed01:23
fungitonyb: oh neat. i started with cut before i realized the prepend included a newline, and i didn't remember the -z option01:36
fungibut hey, at least neither of us resorted to awk ;)01:36
tonyb\o/01:37
*** ysandeep is now known as ysandeep|afk07:49
*** ysandeep|afk is now known as ysandeep09:43
*** jpodivin_ is now known as jpodivin11:01
*** dviroel_ is now known as dviroel11:43
*** ysandeep is now known as ysandeep|afk12:13
opendevreviewMerged openstack/ci-log-processing master: Improve performance.json fields  https://review.opendev.org/c/openstack/ci-log-processing/+/84821812:58
*** ysandeep|afk is now known as ysandeep13:30
*** dasm|off is now known as dasm13:51
clarkbthe gitea api requires auth iirc and we don't give out accounts there14:38
clarkbthe gerrit api is where I'd look which is what you found14:38
iurygregoryHey infra team o/ I'm trying to figure out the procedure to close some branches in ironic projects (I know we need to abandon all open patches, after this I just need to send an email to openstack-discuss asking?)14:43
*** ysandeep is now known as ysandeep|dinner15:04
*** dviroel is now known as dviroel|lunch15:08
clarkbiurygregory: the openstack release team has that power delegated to them via the openstack meta acl config in gerrit for openstack projects. But ya abandoning open changes is also required15:10
clarkbin theory this can be delegated to any group as well. We've just got an openstack wide set of rules for the release team to manage branches already15:10
clarkb(also technically closing the open changes is necessary so merging is also a valid solution instead of abandoning)15:10
iurygregoryclarkb, oh ack o/ tks! will talk with the release team =)15:14
*** ysandeep|dinner is now known as ysandeep|out15:45
*** dviroel|lunch is now known as dviroel16:26
*** dviroel is now known as dviroel|afk20:17
*** melwitt_ is now known as melwitt21:10
*** dasm is now known as dasm|off21:25
opendevreviewSlawek Kaplonski proposed openstack/project-config master: Add Grafana dashboard for the Tobiko CI  https://review.opendev.org/c/openstack/project-config/+/85095321:57
*** rlandy is now known as rlandy|out23:57

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