Merge lp:~bac/launchpad/bug-436978-pg-index into lp:launchpad

Proposed by Brad Crittenden
Status: Merged
Approved by: Edwin Grubbs
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~bac/launchpad/bug-436978-pg-index
Merge into: lp:launchpad
Diff against target: 73 lines
2 files modified
lib/lp/registry/stories/project/xx-project-index.txt (+1/-10)
lib/lp/registry/templates/project-index.pt (+4/-23)
To merge this branch: bzr merge lp:~bac/launchpad/bug-436978-pg-index
Reviewer Review Type Date Requested Status
Edwin Grubbs (community) code Approve
Martin Albisetti (community) ui Approve
Review via email: mp+13368@code.launchpad.net

Commit message

Remove project series and milestone information from project group index page.

To post a comment you must log in.
Revision history for this message
Brad Crittenden (bac) wrote :

= Summary =

Bug 436978 reports that project group index pages time out.

== Proposed fix ==

The main reason for the time out is collecting information about milestones for
projects that have a lot of them.

Upon review of that page we determined that including series and milestone
information about all projects in a project group does not make sense. That
information is too detailed for that level view.

== Pre-implementation notes ==

Call with Curtis.

== Implementation details ==

Simply remove the series and milestone data from the page template. The list was
then converted from a <dl> to a <ul>.

The menus at the bottom of that section were placed horizontally which caused ugly
wrapping. They have been changed to be vertical and look much better.

== Tests ==

bin/test -vvt xx-project-index.txt

== Demo and Q/A ==

http://launchpad.dev/mozilla
https://edge.launchpad.net/gnome

= Launchpad lint =

Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.

Linting changed files:
  lib/lp/registry/stories/project/xx-project-index.txt
  lib/lp/registry/templates/project-index.pt

Revision history for this message
Brad Crittenden (bac) wrote :
Revision history for this message
Martin Albisetti (beuno) wrote :

Add some vertical spacing between the list of projects and "(+) Register a proj..." and ui=me!

review: Approve (ui)
Revision history for this message
Brad Crittenden (bac) wrote :

> Add some vertical spacing between the list of projects and "(+) Register a
> proj..." and ui=me!

Added 0.5em and it looks better. Thanks for the review.

Revision history for this message
Edwin Grubbs (edwin-grubbs) wrote :

Looks good.

merge-approved

-Edwin

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/registry/stories/project/xx-project-index.txt'
2--- lib/lp/registry/stories/project/xx-project-index.txt 2009-09-18 15:24:30 +0000
3+++ lib/lp/registry/stories/project/xx-project-index.txt 2009-10-14 18:50:26 +0000
4@@ -30,25 +30,16 @@
5 Projects
6 Gnome Applets ...
7 Evolution ...
8- trunk series: 2.1.6,
9 GNOME Terminal ...
10 gnomebaker ...
11- trunk series: 2.1.7, 2.1.7
12 NetApplet ...
13- trunk series: 1.0,
14 ...
15
16-And the projects, milestone, and releases are linked.
17+The projects are linked.
18
19 >>> print anon_browser.getLink('gnomebaker').url
20 http://launchpad.dev/gnomebaker
21
22- >>> print anon_browser.getLink('1.0').url
23- http://launchpad.dev/netapplet/trunk/1.0
24-
25- >>> print anon_browser.getLink('2.1.7').url
26- http://launchpad.dev/gnomebaker/trunk/2.1.7
27-
28 The project overview page contains a link to register new products with the
29 project. It is only available to users which have 'Admin' privileges on the
30 project.
31
32=== modified file 'lib/lp/registry/templates/project-index.pt'
33--- lib/lp/registry/templates/project-index.pt 2009-09-22 17:39:22 +0000
34+++ lib/lp/registry/templates/project-index.pt 2009-10-14 18:50:26 +0000
35@@ -101,29 +101,11 @@
36 There are no projects registered for
37 <span tal:replace="context/displayname">project displayname</span>.
38 </p>
39- <dl tal:condition="context/products"
40+ <ul tal:condition="context/products"
41 tal:repeat="product context/products">
42- <dt><a tal:replace="structure product/fmt:link">product</a></dt>
43- <dd tal:define="dev_focus product/development_focus">
44- <a tal:attributes="href dev_focus/fmt:url"
45- tal:content="dev_focus/name">trunk</a>
46- series:
47- <tal:releases repeat="release dev_focus/releases">
48- <strong>
49- <a tal:attributes="href release/fmt:url"
50- tal:content="release/version">release
51- </a></strong>,
52- </tal:releases>
53- <tal:releases repeat="milestone dev_focus/milestones">
54- <strong>
55- <a tal:attributes="href milestone/fmt:url"
56- tal:content="milestone/name">milestone
57- </a></strong><tal:comma
58- condition="not:repeat/milestone/end">,</tal:comma>
59- </tal:releases>
60- </dd>
61- </dl>
62- <ul class="horizontal">
63+ <li><a tal:replace="structure product/fmt:link">product</a></li>
64+ </ul>
65+ <ul style="margin-top: 0.5em;">
66 <li tal:condition="context/menu:overview/new_product/enabled">
67 <a tal:replace="structure context/menu:overview/new_product/fmt:link" />
68 </li>
69@@ -158,4 +140,3 @@
70
71 </body>
72 </html>
73-