Merge lp:~brian-murray/launchpad/api-export-bug-linked-branches into lp:launchpad

Proposed by Brian Murray
Status: Merged
Approved by: Curtis Hovey
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~brian-murray/launchpad/api-export-bug-linked-branches
Merge into: lp:launchpad
Diff against target: 31 lines (+7/-3)
2 files modified
lib/lp/bugs/interfaces/bug.py (+6/-3)
lib/lp/bugs/stories/webservice/xx-bug.txt (+1/-0)
To merge this branch: bzr merge lp:~brian-murray/launchpad/api-export-bug-linked-branches
Reviewer Review Type Date Requested Status
Curtis Hovey (community) Approve
Review via email: mp+17821@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

This branch exports linked_branches for a bug report in the API.

Revision history for this message
Curtis Hovey (sinzui) wrote :

Thanks for this addition Brian. I think this is good to land.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/bugs/interfaces/bug.py'
--- lib/lp/bugs/interfaces/bug.py 2009-12-09 20:48:01 +0000
+++ lib/lp/bugs/interfaces/bug.py 2010-01-21 15:45:24 +0000
@@ -251,9 +251,12 @@
251 readonly=True))251 readonly=True))
252 questions = Attribute("List of questions related to this bug.")252 questions = Attribute("List of questions related to this bug.")
253 specifications = Attribute("List of related specifications.")253 specifications = Attribute("List of related specifications.")
254 linked_branches = Attribute(254 linked_branches = exported(
255 "Branches associated with this bug, usually "255 CollectionField(
256 "branches on which this bug is being fixed.")256 title=_("Branches associated with this bug, usually "
257 "branches on which this bug is being fixed."),
258 value_type=Reference(schema=IHasLinkedBranches),
259 readonly=True))
257 tags = exported(260 tags = exported(
258 List(title=_("Tags"), description=_("Separated by whitespace."),261 List(title=_("Tags"), description=_("Separated by whitespace."),
259 value_type=Tag(), required=False))262 value_type=Tag(), required=False))
260263
=== modified file 'lib/lp/bugs/stories/webservice/xx-bug.txt'
--- lib/lp/bugs/stories/webservice/xx-bug.txt 2009-11-20 04:21:24 +0000
+++ lib/lp/bugs/stories/webservice/xx-bug.txt 2010-01-21 15:45:24 +0000
@@ -30,6 +30,7 @@
30 duplicate_of_link: None30 duplicate_of_link: None
31 duplicates_collection_link: u'http://.../bugs/11/duplicates'31 duplicates_collection_link: u'http://.../bugs/11/duplicates'
32 id: 1132 id: 11
33 linked_branches_collection_link: u'http://.../bugs/11/linked_branches'
33 messages_collection_link: u'http://.../bugs/11/messages'34 messages_collection_link: u'http://.../bugs/11/messages'
34 name: None35 name: None
35 owner_link: u'http://.../~name16'36 owner_link: u'http://.../~name16'