Merge lp:~wallyworld/launchpad/no-private-bug-rss into lp:launchpad
Status: | Superseded | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~wallyworld/launchpad/no-private-bug-rss | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
234 lines (+108/-8) 4 files modified
lib/canonical/launchpad/browser/feeds.py (+24/-1) lib/canonical/launchpad/pagetests/feeds/xx-links.txt (+52/-0) lib/lp/bugs/feed/bug.py (+13/-4) lib/lp/code/feed/branch.py (+19/-3) |
||||
To merge this branch: | bzr merge lp:~wallyworld/launchpad/no-private-bug-rss | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+61572@code.launchpad.net |
This proposal has been superseded by a proposal from 2011-05-20.
Commit message
[r=allenap][bug=302097] Stop exposing rss feeds for private bugs or branches.
Description of the change
This branch stops exposing rss feeds for private bugs or branches.
== Implementation ==
Add a class method feed_allowed() to FeedLinkBase, default to returning True. However, this is overridden in BranchFeedLink and BugFeedLink to return true only if the branch/bug is not private.
TODO: when a user uses the inline ajax widget to change the privacy status, the rss feed status is not toggled. This will be done in a subsequent branch.
== Tests ==
Extends the xx-links.txt doctest to check that private bugs and branches pages do not render the rss link element.
== Lint ==
Checking for conflicts and issues in changed files.
Linting changed files:
lib/canonical
lib/canonical
./lib/canonical
1: narrative uses a moin header.
9: narrative uses a moin header.
33: narrative uses a moin header.
58: narrative uses a moin header.
88: narrative uses a moin header.
122: narrative uses a moin header.
149: want exceeds 78 characters.
152: want exceeds 78 characters.
155: want exceeds 78 characters.
158: want exceeds 78 characters.
160: narrative uses a moin header.
208: narrative uses a moin header.
235: narrative uses a moin header.
248: narrative uses a moin header.
261: narrative uses a moin header.
270: want exceeds 78 characters.
274: narrative uses a moin header.
290: narrative uses a moin header.
306: narrative uses a moin header.
322: narrative uses a moin header.
332: want exceeds 78 characters.
333: want exceeds 78 characters.