Merge lp:~sinzui/launchpad/get-involved-bug-412649 into lp:launchpad
Proposed by
Curtis Hovey
Status: | Merged | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merged at revision: | not available | ||||||||||||||||
Proposed branch: | lp:~sinzui/launchpad/get-involved-bug-412649 | ||||||||||||||||
Merge into: | lp:launchpad | ||||||||||||||||
Diff against target: | None lines | ||||||||||||||||
To merge this branch: | bzr merge lp:~sinzui/launchpad/get-involved-bug-412649 | ||||||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | Approve | ||
Review via email: mp+10201@code.launchpad.net |
To post a comment you must log in.
This is my branch to fix the pillar involvement portlet.
lp:~sinzui/launchpad/get-involved-bug-412649 /bugs.launchpad .net/bugs/ 412649 implementation: no-one
Diff size: 322
Launchpad bug: https:/
Test command: ./bin/test -vvt "pillar-views"
Pre-
Target release: 2.2.8
= Fix the pillar involvement portlet =
Currently, that portlet relies on attributes specific to IDistribution, so we can't use it for IProject.
IProduct/
== Rules ==
* Add rules to use the projectgroups's products to set the link
state.
* Series and sourcepackages need to be supported to since their
pages
are being designed now.
* Project's links are names differently; create a menu to avoid the
problem.
* The links are not always going to the correct app. Set the site in
the link to ensure the host domain is used.
== QA ==
On edge /edge.launchpad .net/launchpad- project
* visit https:/
* Verify that the bugs, answers, translations, and blueprints links
are
visible in the get involved menu.
== Lint ==
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: /launchpad/ icing/style- 3-0.css registry/ browser/ configure. zcml registry/ browser/ pillar. py registry/ browser/ tests/pillar- views.txt registry/ templates/ pillar- involvement- portlet. pt registry/ templates/ project- index.pt
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Test ==
* lib/lp/ registry/ browser/ tests/pillar- views.txt
distributionso urcepackage.
* Updated the test to verify the view's official uses and the
enabled
links
* Added tests for project, product, distroseries, productseries,
and
== Implementation ==
* lib/canonical/ launchpad/ icing/style- 3-0.css registry/ browser/ configure. zcml registry/ browser/ pillar. py rcepackages. registry/ templates/ pillar- involvement- portlet. pt registry/ templates/ project- index.pt
* Fixed broken paths.
* Renamed the class after the applications to be consistent.
* lib/lp/
* Configured the view to work for any object. It may indeed work
for
for many more objects than it is designed for because the code
uses nearest() to get the first IPillar in the the traversals.
* lib/lp/
* Added a menu to support the links independent of the names used
in other menus
* Set the site in the links because
* Added rules to build a set of official uses from an IProject's
IProducts.
* Used nearest() to travers to the nearest pillar to make the view
work for series and distributionsou
* Used the same method to create a list of links as is used by the
old navigation menu view.
* lib/lp/
* Simplified the markup to iterate over the list of links provided
by the view.
* lib/lp/
* Updated the project index to use the portlet