Merge lp:~sinzui/launchpad/team-titles into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 14862 |
Proposed branch: | lp:~sinzui/launchpad/team-titles |
Merge into: | lp:launchpad |
Diff against target: |
1171 lines (+277/-186) 34 files modified
lib/lp/app/browser/tales.py (+17/-8) lib/lp/app/browser/tests/test_base_layout.py (+2/-1) lib/lp/app/browser/tests/test_formatters.py (+77/-5) lib/lp/bugs/browser/bugtask.py (+10/-2) lib/lp/bugs/browser/configure.zcml (+6/-0) lib/lp/bugs/browser/structuralsubscription.py (+2/-6) lib/lp/bugs/browser/tests/test_breadcrumbs.py (+22/-1) lib/lp/bugs/browser/tests/test_expose.py (+26/-17) lib/lp/bugs/stories/bug-also-affects/xx-also-affects-new-upstream.txt (+3/-3) lib/lp/bugs/stories/bugattachments/xx-attachments-to-bug-report.txt (+1/-1) lib/lp/bugs/stories/bugs/xx-bug-comments-truncated.txt (+3/-3) lib/lp/bugs/stories/bugs/xx-bug-create-question.txt (+9/-11) lib/lp/bugs/stories/bugs/xx-bug-obfuscation.txt (+2/-2) lib/lp/bugs/stories/bugtask-searches/xx-advanced-upstream-pending-bugwatch.txt (+1/-1) lib/lp/bugs/stories/bugtask-searches/xx-person-bugs.txt (+6/-6) lib/lp/bugs/stories/bugtracker/xx-bugtracker.txt (+4/-6) lib/lp/bugs/stories/guided-filebug/xx-filebug-attachments.txt (+1/-1) lib/lp/bugs/stories/guided-filebug/xx-product-guided-filebug.txt (+2/-4) lib/lp/bugs/stories/guided-filebug/xx-project-guided-filebug.txt (+2/-4) lib/lp/code/stories/branches/xx-branch-index.txt (+1/-1) lib/lp/hardwaredb/stories/hwdb/xx-hwdb.txt (+1/-1) lib/lp/registry/model/person.py (+7/-1) lib/lp/registry/stories/distroseries/xx-distroseries-index.txt (+1/-1) lib/lp/registry/stories/milestone/object-milestones.txt (+8/-85) lib/lp/registry/stories/milestone/xx-milestone-add-and-edit.txt (+1/-1) lib/lp/registry/stories/person/xx-person-subscriptions.txt (+3/-3) lib/lp/registry/stories/productseries/xx-productseries-add-and-edit.txt (+1/-1) lib/lp/registry/stories/project/xx-project-index.txt (+1/-1) lib/lp/registry/tests/test_person.py (+12/-0) lib/lp/services/webapp/breadcrumb.py (+11/-1) lib/lp/services/webapp/error.py (+0/-6) lib/lp/services/webapp/interfaces.py (+2/-0) lib/lp/services/webapp/tests/test_breadcrumbs.py (+31/-1) lib/lp/translations/stories/standalone/xx-person-activity.txt (+1/-1) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/team-titles |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Kowalik (community) | code | Approve | |
Review via email: mp+93675@code.launchpad.net |
Description of the change
Use standard page titles, bread crumbs, and headings for teams and bugs.
Pre-
the bug reports.
Bugs Bug #244558 Not obvious that teams can't have their own bug reports
Page does not clearly state you are looking at a team. The
page title, heading, and bread crumbs do not conform to Lp rules.
Many users mistake the team for a project :(
Bug #516485 No User Name in the Title of Related Bugs Page Users/team
The bug vhost breadcrumb adapter is not registered for IPerson. The
adaption fails during traversal every time. When a view is careful
to provide page_title, a few crumbs appear.
Bug #928234 Team application pages aren't obviously about a team
Application page headings do not state you are looking at a team.
mpt suggests that we smartquote the team and append 'team' as is
done in the bread crumbs.
-------
RULES
* All four bugs are are caused by developer confusion about how
Lp page titles, bread crumbs and headings work. In some
cases the views intentionally deviate from Lp rules.
* Remove support for override_
* Instead check for an instances SystemErrorView.
* Removing override_
and breadcrumbs to several bug pages and specifically team bug
pages.
* This partially addresses the concern that bug titles can leak
* Every traversed object must have a breadcrumb adapter.
* Register BugsVHostBreadcrumb for IPerson
* The Person bug views must provide:
* A terse page_title to create a proper page title and breadcrumb.
* An informative label that explains the purpose the page as the <h1>
QA
* Visit https:/
* Verify the breascrumbs read
Launchpad itself >> Bugs >> Subscribe
* Verify the page title is
Subscribe : Bugs : Launchpad itself
* Visit https:/
* Verify that the page title is
Bug #533044 <title> : Bugs : Launchpad itself
* Visit https:/
* Verify that the page title is
Error: Page not found
* Visit https:/
* Verify the page title is
Bugs : "Canonical Launchpad Engineering" team
* Verify the breadcrumbs are
"Canonical Launchpad Engineering" team >> Bugs
* Verify the first heading is
"Canonical Launchpad Engineering" team
* Visit https:/
* Verify the page title is
Assigned bugs : Bugs : "Canonical Launchpad Engineering" team
* Verify the breadcrumbs are
"Canonical Launchpad Engineering" team >> Bugs >> Assigned bugs
* Visit https:/
* Verify the heading is "Canonical Launchpad Engineering" team
* Visit https:/
* Verify the first heading is "Canonical Launchpad Engineering" team
* Visit https:/
* Verify the first heading is "Canonical Launchpad Engineering" team
* Visit https:/
* Verify the first heading is "Canonical Launchpad Engineering" team
* Visit https:/
* Verify the first heading is "Canonical Launchpad Engineering" team
LINT
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
^ Lint is not happy with some of the stories. I can fix these after the
review.
TEST
./bin/test -vvc -t xx-also-
-t xx-attachments-
-t xx-bug-
-t xx-advanced-
-t xx-filebug-
-t xx-project-
./bin/test -vvc lp.bugs.
./bin/test -vvc -t test_title lp.registry.
IMPLEMENTATION
I replaced the check for override_
to instead check if the view is an instance of SystemErrorView. I
removed all override_
and the two offending bugs views. I updated many tests, and it is clear
that the ellipsis in the stories was hiding the title insanity.
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
lib/
Bug #516485 is caused by a broken breadcrumb adaption.
BugsVHostBreadcrumb was not registered for IPerson. Adding it made
user/team page titles and breadcrumbs behave like projects and distros.
I added a test to verify the breadcrumb adapter makes the expected crumb.
lib/
lib/
Bug 928234 is solved by ensuring that team.title returns the smartquoted
displayname with team appended to it. I added a test, but I believe there
will be some test failures that I will need to follow up on. I may also
be able to remove numerous calls to smartquote in views now that .title
provides the definitive formatting.
lib/
lib/
On Sun, Feb 19, 2012 at 3:41 AM, Curtis Hovey
<email address hidden> wrote:
> Bug #533044 Resummarizing bug report doesn't change page title
> Changing the bug title does not update the page title...
> but the bug title should not be in the page title.
This bit does not make sense to me. Open a few bugs. Hit ctrl-shift-E
to get a list of tabs; having the title in the page title is extremely
useful.