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
1=== modified file 'lib/canonical/launchpad/doc/textformatting.txt'
2--- lib/canonical/launchpad/doc/textformatting.txt 2009-11-05 19:59:52 +0000
3+++ lib/canonical/launchpad/doc/textformatting.txt 2011-02-11 14:59:34 +0000
4@@ -22,10 +22,12 @@
5 So, with textwrap:
6
7 >>> import textwrap
8- >>> description = """\
9- ... 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.
10- ...
11- ... It's also smart enough to preserve whitespace, finally!"""
12+ >>> description = (
13+ ... "A new description that is quite long. But the nice thing is "
14+ ... "that the edit notification email generator knows how to indent "
15+ ... "and wrap descriptions, so this will appear quite nice in the "
16+ ... "actual email that gets sent.\n\n"
17+ ... "It's also smart enough to preserve whitespace, finally!""")
18 >>> wrapped_description = textwrap.fill(description, width=56)
19 >>> print wrapped_description #doctest: -NORMALIZE_WHITESPACE
20 A new description that is quite long. But the nice thing
21@@ -57,9 +59,11 @@
22
23 Let's just make sure that it handles a single paragraph as well.
24
25- >>> single_paragraph = """\
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.
27- ... """
28+ >>> single_paragraph = (
29+ ... "A new description that is quite long. But the nice thing is "
30+ ... "that the edit notification email generator knows how to indent "
31+ ... "and wrap descriptions, so this will appear quite nice in the "
32+ ... "actual email that gets sent.")
33 >>> wrapped_text = mailwrapper.format(single_paragraph)
34 >>> print wrapped_text #doctest: -NORMALIZE_WHITESPACE
35 A new description that is quite long. But the nice thing
36@@ -120,13 +124,15 @@
37 Let's see how it behaves when it contains words that can't fit on a
38 single line, such as URLs.
39
40- >>> long_word = """\
41- ... 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.
42- ... """
43+ >>> long_word = (
44+ ... "This paragraph includes a long URL, "
45+ ... "https://launchpad.net/greenishballoon/+bug/1733/+viewstatus. "
46+ ... "Even though it's longer than 56 characters, it stays on a "
47+ ... "single line.")
48 >>> wrapped_text = mailwrapper.format(long_word)
49 >>> print wrapped_text #doctest: -NORMALIZE_WHITESPACE
50 This paragraph includes a long URL,
51- https://launchpad.net/products/malone/+bug/1733/+viewstatus.
52+ https://launchpad.net/greenishballoon/+bug/1733/+viewstatus.
53 Even though it's longer than 56 characters, it stays on
54 a single line.
55
56@@ -294,7 +300,8 @@
57 >>> print body
58 Hello Scarlett O'Hara,
59 <BLANKLINE>
60- frankly-my-dear-i-dont-give-a-damn has a new message requiring your approval.
61+ frankly-my-dear-i-dont-give-a-damn has a new message requiring your
62+ approval.
63 <BLANKLINE>
64 Subject: Thing
65 Author name: Rhett Butler
66
67=== modified file 'lib/lp/bugs/browser/structuralsubscription.py'
68--- lib/lp/bugs/browser/structuralsubscription.py 2011-02-03 10:35:36 +0000
69+++ lib/lp/bugs/browser/structuralsubscription.py 2011-02-11 14:59:34 +0000
70@@ -279,16 +279,9 @@
71
72 def userIsDriver(self):
73 """Has the current user driver permissions?"""
74- # XXX Tom Berger 2008-01-30 spec=subscription-invitation:
75- # The semantics of this method are actually a bit vague,
76- # since when we talk about driver permissions, we're talking
77- # about something different for each structure. For now,
78- # we only want to look at this if the target is a
79+ # We only want to look at this if the target is a
80 # distribution source package, in order to maintain
81- # compatibility with the bug contacts feature. We want
82- # to enable this for other targets, but probably only
83- # after implementing
84- # https://launchpad.net/malone/+spec/subscription-invitation
85+ # compatibility with the bug contacts feature.
86 if IDistributionSourcePackage.providedBy(self.context):
87 return check_permission(
88 "launchpad.Driver", self.context.distribution)
89
90=== modified file 'lib/lp/bugs/stories/bugtask-management/xx-view-editable-bug-task.txt'
91--- lib/lp/bugs/stories/bugtask-management/xx-view-editable-bug-task.txt 2010-10-11 16:17:45 +0000
92+++ lib/lp/bugs/stories/bugtask-management/xx-view-editable-bug-task.txt 2011-02-11 14:59:34 +0000
93@@ -6,8 +6,7 @@
94 ...
95 Unauthorized: ...
96
97-(Even when the product has a bug supervisor:
98-https://launchpad.net/malone/+bug/49891)
99+Even when the product has a bug supervisor, see bug #49891.
100
101 >>> from zope.component import getUtility
102 >>> from canonical.database.sqlbase import flush_database_updates
103
104=== modified file 'lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt'
105--- lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt 2010-10-25 13:16:10 +0000
106+++ lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt 2011-02-11 14:59:34 +0000
107@@ -71,8 +71,7 @@
108 broken percentage when comparing with bugs marked upstream. Perhaps
109 we'd solve this by separating the watched column into natively watched
110 and remote watched, but I don't know how to fix this right now. See
111-https://bugs.launchpad.net/malone/+bug/188020
112- -- kiko, 2008-02-01
113+bug #188020 -- kiko, 2008-02-01
114
115
116 Useful links
117
118=== modified file 'lib/lp/bugs/templates/bugwatch-error-help.pt'
119--- lib/lp/bugs/templates/bugwatch-error-help.pt 2010-09-29 03:33:24 +0000
120+++ lib/lp/bugs/templates/bugwatch-error-help.pt 2011-02-11 14:59:34 +0000
121@@ -126,7 +126,7 @@
122 </p>
123 <h3>How can I help fix it?</h3>
124 <p>
125- <a href="https://bugs.launchpad.dev/malone/+filebug"
126+ <a href="https://bugs.launchpad.net/launchpad/+filebug"
127 >File a bug</a> requesting that Launchpad support interactions
128 with the remote bug tracker.
129 </p>