Merge lp:~wallyworld/launchpad/improved-broken-link-handling into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Ian Booth | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 11806 | ||||
Proposed branch: | lp:~wallyworld/launchpad/improved-broken-link-handling | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
570 lines (+415/-28) 12 files modified
lib/canonical/launchpad/icing/style-3-0.css.in (+6/-0) lib/lp/app/browser/configure.zcml (+6/-0) lib/lp/app/browser/linkchecker.py (+77/-0) lib/lp/app/browser/stringformatter.py (+3/-1) lib/lp/app/browser/tests/test_linkchecker.py (+83/-0) lib/lp/app/configure.zcml (+0/-14) lib/lp/app/doc/displaying-paragraphs-of-text.txt (+11/-11) lib/lp/app/javascript/lp-links.js (+105/-0) lib/lp/app/templates/base-layout-macros.pt (+9/-0) lib/lp/bugs/windmill/tests/test_bug_commenting.py (+1/-1) lib/lp/code/windmill/tests/test_branch_broken_links.py (+113/-0) lib/lp/code/windmill/tests/test_branchmergeproposal_review.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~wallyworld/launchpad/improved-broken-link-handling | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Launchpad code reviewers | js | Pending | |
Review via email: mp+37095@code.launchpad.net |
Commit message
Add invalid-link style to invalid lp branch short links and prevent click through
Description of the change
Summary
------------
Render lp: shortcuts such that any invalid ones are shown as grey and their onclick() is suppressed.
This branch supports processing +branch links.
Implementation detail
-------
When the links are harvested via the linkify_
Tests
------
New tests:
lp/app/
lp/code/
The windmill test is broken because windmill has an issue making the ajax call. Manual testing shows the functionality works as expected.
Lint
----
Linting changed files:
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
./lib/canonical
144: Line exceeds 78 characters.
1324: Line exceeds 78 characters.
1941: Line exceeds 78 characters.
1957: Line exceeds 78 characters.
1961: Line exceeds 78 characters.
1969: Line exceeds 78 characters.
1973: Line exceeds 78 characters.
2001: Line exceeds 78 characters.
2017: Line exceeds 78 characters.
2025: Line exceeds 78 characters.
2029: Line exceeds 78 characters.
2033: Line exceeds 78 characters.
2037: Line exceeds 78 characters.
2041: Line exceeds 78 characters.
2045: Line exceeds 78 characters.
2058: Line exceeds 78 characters.
2062: Line exceeds 78 characters.
2094: Line exceeds 78 characters.
2106: Line exceeds 78 characters.
2110: Line exceeds 78 characters.
2114: Line exceeds 78 characters.
2122: Line exceeds 78 characters.
2126: Line exceeds 78 characters.
2134: Line exceeds 78 characters.
2162: Line exceeds 78 characters.
2166: Line exceeds 78 characters.
2194: Line exceeds 78 characters.
2202: Line exceeds 78 characters.
2207: Line exceeds 78 characters.
2211: Line exceeds 78 characters.
2216: Line exceeds 78 characters.
2220: Line exceeds 78 characters.
2224: Line exceeds 78 characters.
2228: Line exceeds 78 characters.
2232: Line exceeds 78 characters.
2284: Line exceeds 78 characters.
2292: Line exceeds 78 characters.
2296: Line exceeds 78 characters.
2304: Line exceeds 78 characters.
2316: Line exceeds 78 characters.
2324: Line exceeds 78 characters.
2328: Line exceeds 78 characters.
2332: Line exceeds 78 characters.
2340: Line exceeds 78 characters.
2344: Line exceeds 78 characters.
2348: Line exceeds 78 characters.
2352: Line exceeds 78 characters.
2356: Line exceeds 78 characters.
2365: Line exceeds 78 characters.
2373: Line exceeds 78 characters.
2505: Line exceeds 78 characters.
2506: Line exceeds 78 characters.
2575: Line exceeds 78 characters.
2576: Line exceeds 78 characters.
./lib/lp/
409: E501 line too long (90 characters)
413: E501 line too long (88 characters)
409: Line exceeds 78 characters.
413: Line exceeds 78 characters.
./lib/lp/
1: narrative uses a moin header.
7: narrative uses a moin header.
32: want exceeds 78 characters.
33: want exceeds 78 characters.
43: source exceeds 78 characters.
49: want exceeds 78 characters.
83: want exceeds 78 characters.
84: want exceeds 78 characters.
86: want exceeds 78 characters.
87: want exceeds 78 characters.
102: want exceeds 78 characters.
103: want exceeds 78 characters.
104: want exceeds 78 characters.
105: want exceeds 78 characters.
106: want exceeds 78 characters.
107: want exceeds 78 characters.
110: narrative uses a moin header.
138: source exceeds 78 characters.
155: want exceeds 78 characters.
156: want exceeds 78 characters.
157: want exceeds 78 characters.
158: want exceeds 78 characters.
159: want exceeds 78 characters.
160: want exceeds 78 characters.
161: want exceeds 78 characters.
162: want exceeds 78 characters.
163: want exceeds 78 characters.
164: want exceeds 78 characters.
165: want exceeds 78 characters.
166: want exceeds 78 characters.
167: want exceeds 78 characters.
168: want exceeds 78 characters.
169: want exceeds 78 characters.
170: want exceeds 78 characters.
171: want exceeds 78 characters.
172: want exceeds 78 characters.
173: want exceeds 78 characters.
174: want exceeds 78 characters.
175: want exceeds 78 characters.
176: want exceeds 78 characters.
177: want exceeds 78 characters.
178: want exceeds 78 characters.
179: want exceeds 78 characters.
180: want exceeds 78 characters.
181: want exceeds 78 characters.
182: want exceeds 78 characters.
183: want exceeds 78 characters.
184: want exceeds 78 characters.
185: want exceeds 78 characters.
186: want exceeds 78 characters.
187: want exceeds 78 characters.
188: want exceeds 78 characters.
189: want exceeds 78 characters.
190: want exceeds 78 characters.
191: want exceeds 78 characters.
204: narrative uses a moin header.
314: narrative uses a moin header.
332: want exceeds 78 characters.
343: narrative uses a moin header.
361: want exceeds 78 characters.
363: want exceeds 78 characters.
387: narrative uses a moin header.
424: want exceeds 78 characters.
430: want exceeds 78 characters.
434: want exceeds 78 characters.
438: want exceeds 78 characters.
442: want exceeds 78 characters.
472: narrative uses a moin header.
487: narrative exceeds 78 characters.
./lib/lp/
90: E501 line too long (102 characters)
96: E501 line too long (96 characters)
123: E302 expected 2 blank lines, found 3
90: Line exceeds 78 characters.
96: Line exceeds 78 characters.
Just a note, not a review: why so much 2009 and so little 2010 in the copyright notices? :-)