Merge lp:~cjohnston/launchpad/197793 into lp:launchpad

Proposed by Chris Johnston
Status: Merged
Approved by: Steve Kowalik
Approved revision: no longer in the source branch.
Merged at revision: 13162
Proposed branch: lp:~cjohnston/launchpad/197793
Merge into: lp:launchpad
Diff against target: 33 lines (+6/-6)
1 file modified
lib/lp/bugs/mail/bugnotificationrecipients.py (+6/-6)
To merge this branch: bzr merge lp:~cjohnston/launchpad/197793
Reviewer Review Type Date Requested Status
Henning Eggers (community) Approve
Review via email: mp+61053@code.launchpad.net

Commit message

[r=henninge][bug=197793] Changes the notification of how a user is subscribed to a bug to read better.

To post a comment you must log in.
Revision history for this message
Henning Eggers (henninge) wrote :

Thanks for changing these but they seem inconsistent to me. I may be wrong, though, as I may be missing context.

22 + text = ("are a member of %s, which is subscribed "
23 + "to a duplicate bug" % person.displayname)

"to a duplicate bug report" ... ?

35 - text = ("are a member of %s, which is a direct subscriber"
36 + text = ("are a member of %s, which is subscribed"

"... which is subscribed to the bug report" (See the else branch below it).

Cheers,
Henning

review: Needs Fixing
Revision history for this message
Henning Eggers (henninge) wrote :

Great, thanks. ;)

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/mail/bugnotificationrecipients.py'
2--- lib/lp/bugs/mail/bugnotificationrecipients.py 2011-03-04 16:38:20 +0000
3+++ lib/lp/bugs/mail/bugnotificationrecipients.py 2011-05-17 01:35:48 +0000
4@@ -76,11 +76,11 @@
5 """Registers a subscriber of a duplicate of this bug."""
6 reason = "Subscriber of Duplicate"
7 if person.isTeam():
8- text = ("are a member of %s, which is a subscriber "
9- "of a duplicate bug" % person.displayname)
10+ text = ("are a member of %s, which is subscribed "
11+ "to a duplicate bug report" % person.displayname)
12 reason += " @%s" % person.name
13 else:
14- text = "are a direct subscriber of a duplicate bug"
15+ text = "are subscribed to a duplicate bug report"
16 if duplicate_bug is not None:
17 text += " (%s)" % duplicate_bug.id
18 self._addReason(person, text, reason)
19@@ -89,11 +89,11 @@
20 """Registers a direct subscriber of this bug."""
21 reason = "Subscriber"
22 if person.isTeam():
23- text = ("are a member of %s, which is a direct subscriber"
24- % person.displayname)
25+ text = ("are a member of %s, which is subscribed "
26+ "to the bug report" % person.displayname)
27 reason += " @%s" % person.name
28 else:
29- text = "are a direct subscriber of the bug"
30+ text = "are subscribed to the bug report"
31 self._addReason(person, text, reason)
32
33 def addAssignee(self, person):