Merge lp:~deryck/launchpad/no-lp-bugs-homepage-439245 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Deryck Hodge on 2010-01-19 |
| Approved revision: | not available |
| Merged at revision: | not available |
| Proposed branch: | lp:~deryck/launchpad/no-lp-bugs-homepage-439245 |
| Merge into: | lp:launchpad |
| Diff against target: |
444 lines (+179/-176) 6 files modified
lib/lp/bugs/stories/bugs/xx-front-page-info.txt (+41/-0) lib/lp/bugs/stories/bugs/xx-portlets-bug-series.txt (+2/-18) lib/lp/bugs/stories/bugs/xx-product-bugs-page.txt (+0/-33) lib/lp/bugs/stories/bugtask-searches/xx-advanced-upstream-pending-bugwatch.txt (+1/-36) lib/lp/bugs/stories/initial-bug-contacts/10-set-upstream-bugcontact.txt (+27/-1) lib/lp/bugs/templates/bugtarget-bugs.pt (+108/-88) |
| To merge this branch: | bzr merge lp:~deryck/launchpad/no-lp-bugs-homepage-439245 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Albisetti (community) | ui | 2010-01-19 | Approve on 2010-01-19 |
| Eleanor Berger (community) | 2010-01-18 | Approve on 2010-01-18 | |
|
Review via email:
|
|||
Commit Message
Don't enable a bugs home page for projects that don't use Launchpad for bug tracking.
| Deryck Hodge (deryck) wrote : | # |
| Eleanor Berger (intellectronica) wrote : | # |
Very nice branch, great to see these bugs fixed at last. As we discussed IRL, a few very minor comments:
1. The text in the doctest reads nicer if its written consistently in present tense.
2. You can use tal:replace instead of tal:content when including the project title to save an unnecessary span element. Just think what it will do for your carbon footprint!
Finally, I'm not sure turning the search box off if no bugs are filed (on a project that does use LP) is better, because one could argue that it helps to have the UI be consistent, so that it's easy to learn. I don't feel deeply about it, but I suggest maybe running it by Martin or Michael.
| Deryck Hodge (deryck) wrote : | # |

= Summary =
This branch started as a fix for Bug #439245, hot bugs listed on project
bugs home when the project doesn't use Launchpad, and in the process we
decided to fix Bug #174473, project home page has search form even when
there are no bugs.
== Proposed fix ==
The fix for the first bug is to check for launchpad_ bugtracker, and if this is the case, show the bugs
view/uses_
home page as it currently is on lp.net. If not, we don't show anything
on the home page and add a note that the project does not use Launchpad
for bug tracking. There is also a link provided to edit the project
details and change to use Launchpad if desired.
The fix for the second bug is to check view/hot_bugtasks as a condition
for showing the search form. If there are no hot_bugtasks, there are no
bugs filed against the project.
== Pre-implementation notes ==
This branch was done with me and Brian Fromme pairing at the bug heat
sprint, and we consulted Tom, Graham, and Gavin as needed.
== Implementation details ==
There were several broken tests to fix. In some cases, we removed the Factory.
failing sections of a test because the workflow was no longer supported.
In other cases, we updated the test to update data or use
LaunchpadObject
== Tests ==
Updated tests to run include:
./bin/test -cvvt xx-advanced- upstream- pending- bugwatch. txt bug-series. txt bugs-page. txt bug-contacts
./bin/test -cvvt xx-portlets-
./bin/test -cvvt xx-product-
./bin/test -cvvt initial-
We added a test to cover new functionality:
./bin/test -cvvt xx-front- page-info. txt
== Demo and Q/A ==
To demo, create a project and confirm that the bugs home page, i.e. /bugs.launchpad .dev/test- project/, does not list any of the
https:/
normal bugs info.
Then change the details to use malone and confirm that the page has bug
info listed.
Then, file bugs to confirm that a "Hot bugs" list appears.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: lp/bugs/ stories/ bugs/xx- front-page- info.txt
lib/
lib/lp/ bugs/stories/ bugtask- searches/ xx-advanced- upstream- pending- bugwatch. txt lp/bugs/ stories/ initial- bug-contacts/ 10-set- upstream- bugcontact. txt lp/bugs/ templates/ bugtarget- bugs.pt lp/bugs/ stories/ bugs/xx- portlets- bug-series. txt lp/bugs/ stories/ bugs/xx- product- bugs-page. txt
lib/
lib/
lib/
lib/