Merge lp:~sinzui/launchpad/bad-malone-0 into lp:launchpad

Proposed by Curtis Hovey
Status: Merged
Approved by: Robert Collins
Approved revision: no longer in the source branch.
Merged at revision: 12369
Proposed branch: lp:~sinzui/launchpad/bad-malone-0
Merge into: lp:launchpad
Diff against target: 129 lines (+24/-26)
5 files modified
lib/canonical/launchpad/doc/textformatting.txt (+19/-12)
lib/lp/bugs/browser/structuralsubscription.py (+2/-9)
lib/lp/bugs/stories/bugtask-management/xx-view-editable-bug-task.txt (+1/-2)
lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt (+1/-2)
lib/lp/bugs/templates/bugwatch-error-help.pt (+1/-1)
To merge this branch: bzr merge lp:~sinzui/launchpad/bad-malone-0
Reviewer Review Type Date Requested Status
Abel Deuring (community) code Approve
Review via email: mp+49325@code.launchpad.net

Description of the change

Fix a broken link to report a bug, and remove all URLs to /malone.

    Launchpad bug:
        https://bugs.launchpad.net/bugs/709791
    Pre-implementation: no one
    Test command: ./bin/test -vv \
      -t doc/textformatting.txt -t xx-view-editable-bug-task.txt
      -t xx-distribution-upstream-bug-report.txt

--------------------------------------------------------------------

RULES

    * Change the bad link to:
      https://bugs.launchpad.net/launchpad/+filebug
    * Remove all occurrences of /malone from the code.

QA

    * Visit https://bugs.qastaging.launchpad.net/bugs/709277/+watch/85147/+error-help
    * Verify the link to report a bug goes to Lp.

LINT

    lib/canonical/launchpad/doc/textformatting.txt
    lib/lp/bugs/browser/structuralsubscription.py
    lib/lp/bugs/stories/bugtask-management/xx-view-editable-bug-task.txt
    lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt
    lib/lp/bugs/templates/bugwatch-error-help.pt

IMPLEMENTATION

Fixed the bad link:
    lib/lp/bugs/templates/bugwatch-error-help.pt

Removed everything that looked link a link to /malone. Lint really hated
textformatting.txt:
    lib/canonical/launchpad/doc/textformatting.txt
    lib/lp/bugs/browser/structuralsubscription.py
    lib/lp/bugs/stories/bugtask-management/xx-view-editable-bug-task.txt
    lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt

To post a comment you must log in.
Revision history for this message
Abel Deuring (adeuring) wrote :

Thanks for all the additional cleanup!

review: Approve (code)
Revision history for this message
Abel Deuring (adeuring) wrote :

nice work!

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/canonical/launchpad/doc/textformatting.txt'
--- lib/canonical/launchpad/doc/textformatting.txt 2009-11-05 19:59:52 +0000
+++ lib/canonical/launchpad/doc/textformatting.txt 2011-02-11 14:59:34 +0000
@@ -22,10 +22,12 @@
22So, with textwrap:22So, with textwrap:
2323
24 >>> import textwrap24 >>> import textwrap
25 >>> description = """\25 >>> description = (
26 ... A new description that is quite long. But the nice thing is that the edit notification email generator knows how to indent and wrap descriptions, so this will appear quite nice in the actual email that gets sent.26 ... "A new description that is quite long. But the nice thing is "
27 ...27 ... "that the edit notification email generator knows how to indent "
28 ... It's also smart enough to preserve whitespace, finally!"""28 ... "and wrap descriptions, so this will appear quite nice in the "
29 ... "actual email that gets sent.\n\n"
30 ... "It's also smart enough to preserve whitespace, finally!""")
29 >>> wrapped_description = textwrap.fill(description, width=56)31 >>> wrapped_description = textwrap.fill(description, width=56)
30 >>> print wrapped_description #doctest: -NORMALIZE_WHITESPACE32 >>> print wrapped_description #doctest: -NORMALIZE_WHITESPACE
31 A new description that is quite long. But the nice thing33 A new description that is quite long. But the nice thing
@@ -57,9 +59,11 @@
5759
58Let's just make sure that it handles a single paragraph as well.60Let's just make sure that it handles a single paragraph as well.
5961
60 >>> single_paragraph = """\62 >>> single_paragraph = (
61 ... A new description that is quite long. But the nice thing is that the edit notification email generator knows how to indent and wrap descriptions, so this will appear quite nice in the actual email that gets sent.63 ... "A new description that is quite long. But the nice thing is "
62 ... """64 ... "that the edit notification email generator knows how to indent "
65 ... "and wrap descriptions, so this will appear quite nice in the "
66 ... "actual email that gets sent.")
63 >>> wrapped_text = mailwrapper.format(single_paragraph)67 >>> wrapped_text = mailwrapper.format(single_paragraph)
64 >>> print wrapped_text #doctest: -NORMALIZE_WHITESPACE68 >>> print wrapped_text #doctest: -NORMALIZE_WHITESPACE
65 A new description that is quite long. But the nice thing69 A new description that is quite long. But the nice thing
@@ -120,13 +124,15 @@
120Let's see how it behaves when it contains words that can't fit on a124Let's see how it behaves when it contains words that can't fit on a
121single line, such as URLs.125single line, such as URLs.
122126
123 >>> long_word = """\127 >>> long_word = (
124 ... This paragraph includes a long URL, https://launchpad.net/products/malone/+bug/1733/+viewstatus. Even though it's longer than 56 characters, it stays on a single line.128 ... "This paragraph includes a long URL, "
125 ... """129 ... "https://launchpad.net/greenishballoon/+bug/1733/+viewstatus. "
130 ... "Even though it's longer than 56 characters, it stays on a "
131 ... "single line.")
126 >>> wrapped_text = mailwrapper.format(long_word)132 >>> wrapped_text = mailwrapper.format(long_word)
127 >>> print wrapped_text #doctest: -NORMALIZE_WHITESPACE133 >>> print wrapped_text #doctest: -NORMALIZE_WHITESPACE
128 This paragraph includes a long URL,134 This paragraph includes a long URL,
129 https://launchpad.net/products/malone/+bug/1733/+viewstatus.135 https://launchpad.net/greenishballoon/+bug/1733/+viewstatus.
130 Even though it's longer than 56 characters, it stays on136 Even though it's longer than 56 characters, it stays on
131 a single line.137 a single line.
132138
@@ -294,7 +300,8 @@
294 >>> print body300 >>> print body
295 Hello Scarlett O'Hara,301 Hello Scarlett O'Hara,
296 <BLANKLINE>302 <BLANKLINE>
297 frankly-my-dear-i-dont-give-a-damn has a new message requiring your approval.303 frankly-my-dear-i-dont-give-a-damn has a new message requiring your
304 approval.
298 <BLANKLINE>305 <BLANKLINE>
299 Subject: Thing306 Subject: Thing
300 Author name: Rhett Butler307 Author name: Rhett Butler
301308
=== modified file 'lib/lp/bugs/browser/structuralsubscription.py'
--- lib/lp/bugs/browser/structuralsubscription.py 2011-02-03 10:35:36 +0000
+++ lib/lp/bugs/browser/structuralsubscription.py 2011-02-11 14:59:34 +0000
@@ -279,16 +279,9 @@
279279
280 def userIsDriver(self):280 def userIsDriver(self):
281 """Has the current user driver permissions?"""281 """Has the current user driver permissions?"""
282 # XXX Tom Berger 2008-01-30 spec=subscription-invitation:282 # We only want to look at this if the target is a
283 # The semantics of this method are actually a bit vague,
284 # since when we talk about driver permissions, we're talking
285 # about something different for each structure. For now,
286 # we only want to look at this if the target is a
287 # distribution source package, in order to maintain283 # distribution source package, in order to maintain
288 # compatibility with the bug contacts feature. We want284 # compatibility with the bug contacts feature.
289 # to enable this for other targets, but probably only
290 # after implementing
291 # https://launchpad.net/malone/+spec/subscription-invitation
292 if IDistributionSourcePackage.providedBy(self.context):285 if IDistributionSourcePackage.providedBy(self.context):
293 return check_permission(286 return check_permission(
294 "launchpad.Driver", self.context.distribution)287 "launchpad.Driver", self.context.distribution)
295288
=== modified file 'lib/lp/bugs/stories/bugtask-management/xx-view-editable-bug-task.txt'
--- lib/lp/bugs/stories/bugtask-management/xx-view-editable-bug-task.txt 2010-10-11 16:17:45 +0000
+++ lib/lp/bugs/stories/bugtask-management/xx-view-editable-bug-task.txt 2011-02-11 14:59:34 +0000
@@ -6,8 +6,7 @@
6 ...6 ...
7 Unauthorized: ...7 Unauthorized: ...
88
9(Even when the product has a bug supervisor:9Even when the product has a bug supervisor, see bug #49891.
10https://launchpad.net/malone/+bug/49891)
1110
12 >>> from zope.component import getUtility11 >>> from zope.component import getUtility
13 >>> from canonical.database.sqlbase import flush_database_updates12 >>> from canonical.database.sqlbase import flush_database_updates
1413
=== modified file 'lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt'
--- lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt 2010-10-25 13:16:10 +0000
+++ lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt 2011-02-11 14:59:34 +0000
@@ -71,8 +71,7 @@
71broken percentage when comparing with bugs marked upstream. Perhaps71broken percentage when comparing with bugs marked upstream. Perhaps
72we'd solve this by separating the watched column into natively watched72we'd solve this by separating the watched column into natively watched
73and remote watched, but I don't know how to fix this right now. See73and remote watched, but I don't know how to fix this right now. See
74https://bugs.launchpad.net/malone/+bug/18802074bug #188020 -- kiko, 2008-02-01
75 -- kiko, 2008-02-01
7675
7776
78Useful links77Useful links
7978
=== modified file 'lib/lp/bugs/templates/bugwatch-error-help.pt'
--- lib/lp/bugs/templates/bugwatch-error-help.pt 2010-09-29 03:33:24 +0000
+++ lib/lp/bugs/templates/bugwatch-error-help.pt 2011-02-11 14:59:34 +0000
@@ -126,7 +126,7 @@
126 </p>126 </p>
127 <h3>How can I help fix it?</h3>127 <h3>How can I help fix it?</h3>
128 <p>128 <p>
129 <a href="https://bugs.launchpad.dev/malone/+filebug"129 <a href="https://bugs.launchpad.net/launchpad/+filebug"
130 >File a bug</a> requesting that Launchpad support interactions130 >File a bug</a> requesting that Launchpad support interactions
131 with the remote bug tracker.131 with the remote bug tracker.
132 </p>132 </p>