[Buildbot] #3104: Index the builders per name in the URL
Buildbot trac
trac at buildbot.net
Tue Dec 9 21:03:20 UTC 2014
#3104: Index the builders per name in the URL
------------------------+--------------------
Reporter: Ben | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: 0.9.0
Version: master | Resolution:
Keywords: web |
------------------------+--------------------
Comment (by tardyp):
This is something I also wanted, its a bit of work on the data api, not
very difficult.
Need to use findBuilderId()
https://github.com/buildbot/buildbot/blob/master/master/buildbot/db/builders.py#L24
In this function from base.py:
https://github.com/buildbot/buildbot/blob/master/master/buildbot/data/base.py#L100
add the case for 'buildername' in kwargs instead of builderid.
Then, add a bunch of data routes, so that all the builder based data api
are accessible by buildername on top of by builderid.
/builders/n:builderid/builds/n:number
+ /builders/i:buildername/builds/n:number
and make sure the route matching code knows how to differenciate n: and i:
(n: starts with digit, while i: dont)
--
Ticket URL: <http://trac.buildbot.net/ticket/3104#comment:1>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the bugs
mailing list