Merge lp:~sinzui/launchpad/announcement-heading into lp:launchpad
Proposed by
Curtis Hovey
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~sinzui/launchpad/announcement-heading |
Merge into: | lp:launchpad |
Diff against target: |
345 lines 7 files modified
lib/canonical/launchpad/pagetitles.py (+0/-17) lib/lp/registry/browser/announcement.py (+15/-8) lib/lp/registry/browser/configure.zcml (+6/-1) lib/lp/registry/browser/tests/announcement-views.txt (+47/-0) lib/lp/registry/stories/announcements/xx-announcements.txt (+10/-10) lib/lp/registry/templates/announcement-index.pt (+0/-4) lib/lp/testing/views.py (+8/-6) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/announcement-heading |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+12898@code.launchpad.net |
To post a comment you must log in.
This is my branch to fix announcement headings.
lp:~sinzui/launchpad/announcement-heading /bugs.launchpad .net/bugs/ 434851 views|xx- announcements" implementation: barry
Diff size: 346
Launchpad bug: https:/
Test command: ./bin/test -vvt "announcement-
Pre-
Target release: 3.1.10
= Fix announcement headings =
Fix for bug 297877 is not working as expected. None of these urls have the /launchpad. dev/mozilla/ +announcement/ 22/+retarget /launchpad. dev/mozilla/ +announcement/ 22/+publish /launchpad. dev/mozilla/ +announcement/ 22/+delete
announcement name visible anywhere on the page:
- https:/
- https:/
- https:/
== Rules ==
These were not fully converted.
* Register TitleBreadcrumb for IAnnouncement to make the breadcrumbs
render.
* Move pagetitles into the view.
* Update the announcement view mixin to provide a sane label and
add a simple page_title to each view.
== QA ==
* Visit https:/ /edge.launchpad .net/launchpad- project/ +announcement/ 3451 /edge.launchpad .net/+announcem ents
Announcements from all projects hosted in Launchpad
* Verify it had breadcrumbs that list pillar
* Verify the title contains the announcement title
* Choose Modify
* Verify it had breadcrumbs that list pillar
* Verify the title contains the announcement title
* Visit https:/
* Verify its title is
== Lint ==
Linting changed files: /launchpad/ pagetitles. py registry/ browser/ announcement. py registry/ browser/ configure. zcml registry/ browser/ tests/announcem ent-views. txt registry/ stories/ announcements/ xx-announcement s.txt registry/ templates/ announcement- index.pt testing/ views.py
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Test ==
* lib/lp/ registry/ browser/ tests/announcem ent-views. txt registry/ stories/ announcements/ xx-announcement s.txt
* Added a new module to test that the announcement generates
expect breadcrumbs (and titles).
* Added a test for the menus because I wanted to make sure they
worked since I saw errors as I was making changes. They were
fine, my code was not.
* lib/lp/
* Updated the tests to verify the page title changes.
== Implementation ==
* lib/canonical/ launchpad/ pagetitles. py registry/ browser/ announcement. py registry/ browser/ configure. zcml sView view. The Set view extends the
HasAnnouncemen tsView and its page_title broke the tests, I realised registry/ templates/ announcement- index.pt testing/ views.py initialized_ view to allow me to
* Removed the old page titles.
* lib/lp/
* Updated the Announcement mixing to provide consistent heading, added
unique page titles for that last breadcrumb.
* lib/lp/
* Corrected IHasAnnouncements +announcements. It was using the Set view
instead of the HasAnnouncement
the broken tests were only testing IHasAnnouncements objects.
* Registered TitleBreadcrumb as an adapter for IAnnouncement.
* lib/lp/
* Removed the heading because the that is now managed by the header
macros and tales.
* lib/lp/
* Updated create_view and create_
pass a fake request for testing.