Merge lp:~julian-edwards/launchpad/api-expose-builders into lp:launchpad
Proposed by
Julian Edwards
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Leonard Richardson | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 11952 | ||||
Proposed branch: | lp:~julian-edwards/launchpad/api-expose-builders | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
296 lines (+142/-25) 5 files modified
lib/lp/buildmaster/configure.zcml (+2/-0) lib/lp/buildmaster/interfaces/builder.py (+47/-24) lib/lp/buildmaster/interfaces/webservice.py (+20/-0) lib/lp/buildmaster/model/builder.py (+5/-1) lib/lp/soyuz/stories/webservice/xx-builders.txt (+68/-0) |
||||
To merge this branch: | bzr merge lp:~julian-edwards/launchpad/api-expose-builders | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leonard Richardson (community) | Approve | ||
Review via email: mp+39379@code.launchpad.net |
Description of the change
= Summary =
Expose IBuilder in the webservice
== Implementation details ==
The usual trivial-ish interface changes. /builders is a top-level collection.
== Tests ==
bin/test -cvvt xx-builders.txt
To post a comment you must log in.
This looks good. Just some nitpicky stuff:
On the web service, getByName is a named operation (or "operation"), not a method. Calling it a method makes it look like a local method call.
'Our "bob" builder was retrieved using the no-priv user, and he does not..' The "he" is ambiguous. s/he/no-priv/.
Do you want to iterate over a *sorted* list of attribute names? bob.lp_attributes is ultimately dependent on the order of attributes in the IBuilder definition. Something to think about.
You might want to distinguish between cprov's launchpad and no-priv's in the variable names. 'launchpad' and 'cprov_launchpad' or 'privileged_ launchpad' .