Merge lp:~thekorn/launchpad/affects_in_interleaved_activitylog into lp:launchpad/db-devel

Proposed by Markus Korn
Status: Merged
Merged at revision: not available
Proposed branch: lp:~thekorn/launchpad/affects_in_interleaved_activitylog
Merge into: lp:launchpad/db-devel
Diff against target: 41 lines (+23/-0)
2 files modified
lib/lp/bugs/browser/bugtask.py (+1/-0)
lib/lp/bugs/stories/bugs/xx-bug-activity.txt (+22/-0)
To merge this branch: bzr merge lp:~thekorn/launchpad/affects_in_interleaved_activitylog
Reviewer Review Type Date Requested Status
Paul Hummer (community) code Approve
Review via email: mp+16261@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Markus Korn (thekorn) wrote :

This branch adds changes to the affects field of a task to the interleaved activity log, by showing changes like:
 "affects: mozilla-firefox (Ubuntu) → linux-source-2.6.15 (Ubuntu)"
The related bugreport has a preview as a screenshot.

Revision history for this message
Paul Hummer (rockstar) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/bugs/browser/bugtask.py'
2--- lib/lp/bugs/browser/bugtask.py 2009-12-12 00:27:49 +0000
3+++ lib/lp/bugs/browser/bugtask.py 2009-12-17 00:23:14 +0000
4@@ -866,6 +866,7 @@
5 'summary',
6 'tags',
7 'visibility',
8+ 'affects',
9 bugtask_change_re,
10 ]
11
12
13=== modified file 'lib/lp/bugs/stories/bugs/xx-bug-activity.txt'
14--- lib/lp/bugs/stories/bugs/xx-bug-activity.txt 2009-10-23 18:07:36 +0000
15+++ lib/lp/bugs/stories/bugs/xx-bug-activity.txt 2009-12-17 00:23:14 +0000
16@@ -277,3 +277,25 @@
17 status:
18 Confirmed → New
19 --------
20+
21+If a target of a bug task is changed the old and new value will be shown.
22+
23+ >>> admin_browser.open(
24+ ... 'http://bugs.launchpad.dev/ubuntu/+source/mozilla-firefox/+bug/'
25+ ... '1/+editstatus')
26+ >>> admin_browser.getControl(
27+ ... 'Package').value = 'linux-source-2.6.15'
28+ >>> admin_browser.getControl("Save Changes").click()
29+ >>> print_comments(admin_browser.contents)
30+ Sample Person
31+ ...
32+ Foo Bar
33+ wrote
34+ ...
35+ --------
36+ Foo Bar
37+ ...
38+ affects:
39+ mozilla-firefox (Ubuntu) → linux-source-2.6.15 (Ubuntu)
40+ --------
41+

Subscribers

People subscribed via source and target branches

to status/vote changes: