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

Proposed by Chris Johnston
Status: Merged
Approved by: Henning Eggers
Approved revision: no longer in the source branch.
Merged at revision: 13162
Proposed branch: lp:~cjohnston/launchpad/187013
Merge into: lp:launchpad
Diff against target: 96 lines (+8/-8)
7 files modified
lib/lp/bugs/browser/bugsubscription.py (+2/-2)
lib/lp/bugs/browser/bugtarget.py (+1/-1)
lib/lp/bugs/browser/bugtask.py (+1/-1)
lib/lp/bugs/stories/bugs/xx-bug-personal-subscriptions-advanced-features.txt (+1/-1)
lib/lp/bugs/stories/bugs/xx-bug-personal-subscriptions.txt (+1/-1)
lib/lp/bugs/stories/bugtask-management/xx-subscribe-while-editing.txt (+1/-1)
lib/lp/bugs/stories/guided-filebug/xx-product-guided-filebug.txt (+1/-1)
To merge this branch: bzr merge lp:~cjohnston/launchpad/187013
Reviewer Review Type Date Requested Status
Henning Eggers (community) Approve
Review via email: mp+61052@code.launchpad.net

Commit message

Fixes some confusing text about bug subscriptions.

To post a comment you must log in.
Revision history for this message
Martin Pool (mbp) wrote :

Thank you so much for all these patches, Chris.

I wonder if <https://bugs.launchpad.net/launchpad/+bug/487893> would
be easy to do a similar fix for? I would love to see that link added.

Martin

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

Hi Chris,
thanks for these fixes.
In bugsubscription.py I found this:
"Your subscription to this bug has been updated."
That should probably read "bug report subscription" for consistency? Are there other cases that should be adapted?
Sorry if I seem nit-picky here but I want to avoid more of these little bugs being filed in the future if we can do it right right now.

Thanks again!
Henning

review: Approve
Revision history for this message
Chris Johnston (cjohnston) wrote :

I am not seeing any more, but that's not to say there aren't.. I updated it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/bugs/browser/bugsubscription.py'
2--- lib/lp/bugs/browser/bugsubscription.py 2011-05-12 14:59:21 +0000
3+++ lib/lp/bugs/browser/bugsubscription.py 2011-05-16 19:56:26 +0000
4@@ -402,7 +402,7 @@
5 """Handle a subscribe request."""
6 self.context.bug.subscribe(self.user, self.user, level=level)
7 self.request.response.addNotification(
8- "You have been subscribed to this bug.")
9+ "You have subscribed to this bug report.")
10
11 def _handleUnsubscribe(self, user):
12 """Handle an unsubscribe request."""
13@@ -456,7 +456,7 @@
14 subscription = self.current_user_subscription
15 subscription.bug_notification_level = level
16 self.request.response.addNotification(
17- "Your subscription to this bug has been updated.")
18+ "Your bug report subscription has been updated.")
19
20 def _getUnsubscribeNotification(self, user, unsubed_dupes):
21 """Construct and return the unsubscribe-from-bug feedback message.
22
23=== modified file 'lib/lp/bugs/browser/bugtarget.py'
24--- lib/lp/bugs/browser/bugtarget.py 2011-05-04 16:46:43 +0000
25+++ lib/lp/bugs/browser/bugtarget.py 2011-05-16 19:56:26 +0000
26@@ -747,7 +747,7 @@
27 else:
28 bug.subscribe(self.user, self.user)
29 self.request.response.addNotification(
30- "You have been subscribed to this bug.")
31+ "You have subscribed to this bug report.")
32
33 self.next_url = canonical_url(bug.bugtasks[0])
34
35
36=== modified file 'lib/lp/bugs/browser/bugtask.py'
37--- lib/lp/bugs/browser/bugtask.py 2011-05-13 17:23:27 +0000
38+++ lib/lp/bugs/browser/bugtask.py 2011-05-16 19:56:26 +0000
39@@ -1452,7 +1452,7 @@
40 if self.request.form.get('subscribe', False):
41 bugtask.bug.subscribe(self.user, self.user)
42 self.request.response.addNotification(
43- "You have been subscribed to this bug.")
44+ "You have subscribed to this bug report.")
45
46 # Save the field names we extract from the form in a separate
47 # list, because we modify this list of names later if the
48
49=== modified file 'lib/lp/bugs/stories/bugs/xx-bug-personal-subscriptions-advanced-features.txt'
50--- lib/lp/bugs/stories/bugs/xx-bug-personal-subscriptions-advanced-features.txt 2011-04-15 11:02:24 +0000
51+++ lib/lp/bugs/stories/bugs/xx-bug-personal-subscriptions-advanced-features.txt 2011-05-16 19:56:26 +0000
52@@ -40,4 +40,4 @@
53
54 >>> for message in find_tags_by_class(user_browser.contents, 'message'):
55 ... print extract_text(message)
56- You have been subscribed to this bug.
57+ You have subscribed to this bug report.
58
59=== modified file 'lib/lp/bugs/stories/bugs/xx-bug-personal-subscriptions.txt'
60--- lib/lp/bugs/stories/bugs/xx-bug-personal-subscriptions.txt 2010-12-23 12:55:53 +0000
61+++ lib/lp/bugs/stories/bugs/xx-bug-personal-subscriptions.txt 2011-05-16 19:56:26 +0000
62@@ -32,7 +32,7 @@
63
64 >>> for tag in find_tags_by_class(browser.contents, "informational message"):
65 ... print tag.renderContents()
66- You have been subscribed to this bug.
67+ You have subscribed to this bug report.
68
69 There's also now a link to unsubscribe the user next to the name. It's a
70 relative URL to +subscribe, so it will only work when the portlet is
71
72=== modified file 'lib/lp/bugs/stories/bugtask-management/xx-subscribe-while-editing.txt'
73--- lib/lp/bugs/stories/bugtask-management/xx-subscribe-while-editing.txt 2009-06-12 16:36:02 +0000
74+++ lib/lp/bugs/stories/bugtask-management/xx-subscribe-while-editing.txt 2011-05-16 19:56:26 +0000
75@@ -14,7 +14,7 @@
76
77 >>> print browser.contents
78 <!DOCTYPE...
79- ...You have been subscribed to this bug...
80+ ...You have subscribed to this bug report...
81
82 If you're already subscribed, the checkbox is not shown.
83
84
85=== modified file 'lib/lp/bugs/stories/guided-filebug/xx-product-guided-filebug.txt'
86--- lib/lp/bugs/stories/guided-filebug/xx-product-guided-filebug.txt 2011-04-20 14:56:23 +0000
87+++ lib/lp/bugs/stories/guided-filebug/xx-product-guided-filebug.txt 2011-05-16 19:56:26 +0000
88@@ -131,7 +131,7 @@
89 >>> for message in get_feedback_messages(user_browser.contents):
90 ... print message
91 This bug is already marked as affecting you.
92- You have been subscribed to this bug.
93+ You have subscribed to this bug report.
94
95
96 Filing a bug when there are none similar