Merge lp:~jamalta/launchpad/relatedbugs-118609 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Gavin Panella on 2010-01-28 |
| Approved revision: | not available |
| Merged at revision: | not available |
| Proposed branch: | lp:~jamalta/launchpad/relatedbugs-118609 |
| Merge into: | lp:launchpad |
| Diff against target: |
74 lines (+26/-6) 2 files modified
lib/lp/registry/browser/person.py (+6/-6) lib/lp/registry/stories/person/xx-person-bugs.txt (+20/-0) |
| To merge this branch: | bzr merge lp:~jamalta/launchpad/relatedbugs-118609 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gavin Panella (community) | 2010-01-27 | Approve on 2010-01-27 | |
|
Review via email:
|
|||
Commit Message
Specified 'bugs' as the site for links in the PersonBugsMenu, so that those links will work correctly, even outside the bugs site.
| Jamal Fanaian (jamalta) wrote : | # |
| Gavin Panella (allenap) wrote : | # |
This looks great, thanks for doing it!
I have only one comment. The description in the doctest is a little stylistically off. It should read like documentation. Can I suggest an alternative?
The person bugs page can be accessed without being in the bugs
site, yet all the menu links point to the bugs site.
There's no need to mention the bug number.
| Jamal Fanaian (jamalta) wrote : | # |
Updated the description for the doctest. Thanks so much!
=== modified file 'lib/lp/
--- lib/lp/
+++ lib/lp/
@@ -147,9 +147,8 @@
=== Person bugs menu ===
-The person bugs page can be accessed without being in the bugs site, so
-make sure the person bugs menu is linking to the bugs site correctly
-(https:/
+The person bugs page can be accessed without being in the bugs
+site, yet all the menu links point to the bugs site.
>>> anon_browser.open('http://
>>> print anon_browser.

= Summary =
Link in side menu from person's bug pages is not specifying the bugs site. So when a user clicks "List all related bugs", it will go to the person's overview instead of the related bugs list. (Bug #118609).
== Proposed fix ==
Add site='bugs' to related bugs link in PersonBugsMenu.
== Pre-implementation notes ==
EdwinGrubbs suggested the implementation and noted the correct place for the test.
== Implementation notes ==
To maintain consistency, site='bugs' was added as a parameter for all links in PersonBugsMenu.
== Tests ==
% bin/test -vvct xx-person-bugs
== Demo and Q/A ==
From https:/ /launchpad. dev/~cprov/ +assignedbugs click "List all related bugs"