Merge lp:~deryck/launchpad/enable-tracking-link-perms-512378 into lp:launchpad
Proposed by
Deryck Hodge
Status: | Merged |
---|---|
Approved by: | Deryck Hodge |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~deryck/launchpad/enable-tracking-link-perms-512378 |
Merge into: | lp:launchpad |
Diff against target: |
54 lines (+21/-2) 2 files modified
lib/lp/bugs/stories/bugs/xx-front-page-info.txt (+16/-1) lib/lp/bugs/templates/bugtarget-bugs.pt (+5/-1) |
To merge this branch: | bzr merge lp:~deryck/launchpad/enable-tracking-link-perms-512378 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Abel Deuring (community) | code | Approve | |
Review via email: mp+19600@code.launchpad.net |
Commit message
Check launchpad.Edit permissions for a project before offering a link to enable bug tracking.
To post a comment you must log in.
This is a fix for bug 512378.
For projects that don't use malone for bug tracking, we changed the bugs /bugs.edge. launchpad. net/malone/) to not display
home page (i.e. https:/
anything except a message that "[PROJECT] doesn't use Launchpad for bug
tracking." There was also a link to "Enable bug tracking."
Formerly, this link didn't check to see if the user had permissions to
edit the project, so the link showed for everyone, even if they couldn't
change the setting. My branch fixes this and only shows the link to the
appropriate person.
== Tests ==
The home page info test has been updated to now confirm the link is correct.
./bin/test -cvvt xx-front- page-info. txt
== Demo and Q/A ==
To demo on the dev server, create a new project and don't enable bug
tracking. Ensure that you (the owner) can see the link on the project's
bugs home page. Log out and back in again as another user and confirm
this user doesn't see the link.
To QA on edge or staging, visit a project that doesn't use Launchpad for /bugs.edge. launchpad. net/firefox. Confirm
bug tracking, e.g. https:/
that there is no link to "Enable bug tracking."
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: bugs/browser/ bugtarget. py bugs/stories/ bugs/xx- front-page- info.txt bugs/templates/ bugtarget- bugs.pt
lib/lp/
lib/lp/
lib/lp/