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
1=== modified file 'lib/lp/bugs/interfaces/bug.py'
2--- lib/lp/bugs/interfaces/bug.py 2009-12-09 20:48:01 +0000
3+++ lib/lp/bugs/interfaces/bug.py 2010-01-21 15:45:24 +0000
4@@ -251,9 +251,12 @@
5 readonly=True))
6 questions = Attribute("List of questions related to this bug.")
7 specifications = Attribute("List of related specifications.")
8- linked_branches = Attribute(
9- "Branches associated with this bug, usually "
10- "branches on which this bug is being fixed.")
11+ linked_branches = exported(
12+ CollectionField(
13+ title=_("Branches associated with this bug, usually "
14+ "branches on which this bug is being fixed."),
15+ value_type=Reference(schema=IHasLinkedBranches),
16+ readonly=True))
17 tags = exported(
18 List(title=_("Tags"), description=_("Separated by whitespace."),
19 value_type=Tag(), required=False))
20
21=== modified file 'lib/lp/bugs/stories/webservice/xx-bug.txt'
22--- lib/lp/bugs/stories/webservice/xx-bug.txt 2009-11-20 04:21:24 +0000
23+++ lib/lp/bugs/stories/webservice/xx-bug.txt 2010-01-21 15:45:24 +0000
24@@ -30,6 +30,7 @@
25 duplicate_of_link: None
26 duplicates_collection_link: u'http://.../bugs/11/duplicates'
27 id: 11
28+ linked_branches_collection_link: u'http://.../bugs/11/linked_branches'
29 messages_collection_link: u'http://.../bugs/11/messages'
30 name: None
31 owner_link: u'http://.../~name16'