Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildrequests API doesn't provide properties data #3929

Closed
aj062 opened this issue Jan 29, 2018 · 1 comment

Comments

@aj062
Copy link

@aj062 aj062 commented Jan 29, 2018

http://nine.buildbot.net/api/v2/builders/1/builds?limit=2&property=* includes all the build properties.

However http://nine.buildbot.net/api/v2/builders/1/buildrequests?limit=2&property=* does not include the build properties.

"property=*" filter seems to work only for builds, but not for buildrequests.

Also, there doesn't seems to be any way to fetch the buildrequest properties through the API.

Following buildrequests API also doesn't provide properties information:
http://nine.buildbot.net/api/v2/buildrequests?limit=2&property=*
http://nine.buildbot.net/api/v2/buildrequests/1?property=*

@tardyp

This comment has been minimized.

Copy link
Member

@tardyp tardyp commented Jan 29, 2018

Hi, in the data model, there is no such thing as buildrequest properties actually.

Properties are attached to buildsets, and available via rest api like this:

http://nine.buildbot.net/api/v2/buildsets/1/properties
so you first need to get the buildsetid from the buildrequest data.

I can understand that adding 'property=' to the buildrequests has certainly good usecases, please don't hesitate to contribute it if you need it. The build version was also contributed by non-regular dev:
f10a290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.