Merge lp:~sinzui/launchpad/export-private-bugs-0 into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | 14715 | ||||
| Proposed branch: | lp:~sinzui/launchpad/export-private-bugs-0 | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
44 lines (+4/-3) 2 files modified
lib/lp/registry/interfaces/product.py (+2/-2) lib/lp/registry/stories/webservice/xx-project-registry.txt (+2/-1) |
||||
| To merge this branch: | bzr merge lp:~sinzui/launchpad/export-private-bugs-0 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Benji York (community) | code | 2012-01-23 | Approve on 2012-01-23 |
|
Review via email:
|
|||
Description of the Change
Export private_bugs to the API.
Launchpad bug: https:/
Pre-
It is not possible to setup a project using a script so that it has private
bugs by default.
-------
RULES
* Export the private_bugs attr.
QA
As a Registry Administrator or Commercial Admin
* Using an API script, verify you can set the private_bugs flag.
from launchpadlib.
lp = Launchpad.
'testing', service_root='https:/
project = lp.projects[
print "private_bugs is %s" % project.
project.
project.
print "set private_bugs to %s" % project.
LINT
lib/
lib/
TEST
./bin/test -vv -t xx-project-registry lp.registry.
IMPLEMENTATION
Updated the doctest to verify private_bugs was exported and then exported
the attr.
lib/
lib/
| Curtis Hovey (sinzui) wrote : | # |
I thought the same. I trust that zope.schema and lazr.restful are well tested and that Lp has proper integrations tests. So I then wonders if there was something arcane about the field that needs testing over the API, but I could not find any issues reviewing Lp's code or my same script.

The paranoid part of me wonders if we should have a test to show that
mutating the private_bugs attribute actually works, but the pragmatic
and lazy parts say that we should just assume that the lazr.restful
machinery does what it is supposed to do and it's tested and QA
will show if it works or not, so it isn't much of a concern.
In conclusion: this branch looks good to us.