Merge lp:~bac/launchpad/lep-projconfig into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11281 |
Proposed branch: | lp:~bac/launchpad/lep-projconfig |
Merge into: | lp:launchpad |
Diff against target: |
342 lines (+165/-26) 10 files modified
lib/canonical/launchpad/icing/style-3-0.css.in (+7/-0) lib/canonical/launchpad/webapp/menu.py (+2/-1) lib/lp/registry/browser/pillar.py (+8/-0) lib/lp/registry/browser/product.py (+60/-9) lib/lp/registry/browser/productseries.py (+2/-1) lib/lp/registry/browser/tests/pillar-views.txt (+44/-4) lib/lp/registry/stories/product/xx-product-development-focus.txt (+2/-2) lib/lp/registry/templates/pillar-involvement-portlet.pt (+36/-5) lib/lp/registry/templates/product-index.pt (+2/-2) lib/lp/registry/tests/test_product.py (+2/-2) |
To merge this branch: | bzr merge lp:~bac/launchpad/lep-projconfig |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Launchpad code reviewers | Pending | ||
Review via email: mp+30999@code.launchpad.net |
Commit message
Show project maintainers application configuration links and a progress bar showing completion status.
Description of the change
= Summary =
The summary of this work is in a LEP at
https:/
and bug 70613.
In short, show project owners how to finish setting up their project and
allow all users the ability to see the things they could be doing, if
only they were configured.
== Proposed fix ==
Add a progress bar and icons showing the owner remaining configuration
items.
If some one chooses not to use a LP facility there is no way to make
that known and silence the warning.
== Pre-implementation notes ==
Talks with Jono and Curtis.
== Implementation details ==
As above.
== Tests ==
Since changes were made to the menu links, really all tests need to be run.
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/canonical
lib/lp/
lib/lp/
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/canonical
lib/canonical
lib/lp/
./lib/canonical
905: redefinition of unused 'StartRequestEvent' from line 897
300: E301 expected 1 blank line, found 0
302: E202 whitespace before ')'
310: E302 expected 2 blank lines, found 1
331: E202 whitespace before ')'
336: E301 expected 1 blank line, found 0
339: E301 expected 1 blank line, found 0
341: E301 expected 1 blank line, found 0
343: E301 expected 1 blank line, found 0
446: E301 expected 1 blank line, found 0
453: E301 expected 1 blank line, found 0
461: E301 expected 1 blank line, found 0
476: E301 expected 1 blank line, found 0
520: E302 expected 2 blank lines, found 1
626: E202 whitespace before ')'
659: E202 whitespace before ')'
774: E301 expected 1 blank line, found 0
844: E301 expected 1 blank line, found 0
899: E301 expected 1 blank line, found 0
905: E301 expected 1 blank line, found 2
217: Line exceeds 78 characters.
./lib/lp/
2026: E222 multiple spaces after operator
./lib/canonical
1290: Line exceeds 78 characters.
1887: Line exceeds 78 characters.
1903: Line exceeds 78 characters.
1907: Line exceeds 78 characters.
1915: Line exceeds 78 characters.
1919: Line exceeds 78 characters.
1947: Line exceeds 78 characters.
1963: Line exceeds 78 characters.
1971: Line exceeds 78 characters.
1975: Line exceeds 78 characters.
1979: Line exceeds 78 characters.
1983: Line exceeds 78 characters.
1987: Line exceeds 78 characters.
1991: Line exceeds 78 characters.
2004: Line exceeds 78 characters.
2008: Line exceeds 78 characters.
2040: Line exceeds 78 characters.
2052: Line exceeds 78 characters.
2056: Line exceeds 78 characters.
2060: Line exceeds 78 characters.
2068: Line exceeds 78 characters.
2072: Line exceeds 78 characters.
2080: Line exceeds 78 characters.
2108: Line exceeds 78 characters.
2112: Line exceeds 78 characters.
2140: Line exceeds 78 characters.
2148: Line exceeds 78 characters.
2153: Line exceeds 78 characters.
2157: Line exceeds 78 characters.
2162: Line exceeds 78 characters.
2166: Line exceeds 78 characters.
2170: Line exceeds 78 characters.
2174: Line exceeds 78 characters.
2178: Line exceeds 78 characters.
2230: Line exceeds 78 characters.
2238: Line exceeds 78 characters.
2242: Line exceeds 78 characters.
2250: Line exceeds 78 characters.
2262: Line exceeds 78 characters.
2270: Line exceeds 78 characters.
2274: Line exceeds 78 characters.
2278: Line exceeds 78 characters.
2286: Line exceeds 78 characters.
2290: Line exceeds 78 characters.
2294: Line exceeds 78 characters.
2298: Line exceeds 78 characters.
2302: Line exceeds 78 characters.
2311: Line exceeds 78 characters.
2319: Line exceeds 78 characters.
2451: Line exceeds 78 characters.
2452: Line exceeds 78 characters.
2521: Line exceeds 78 characters.
2522: Line exceeds 78 characters.
./lib/lp/
0: narrative uses a moin header.
36: want exceeds 78 characters.
44: narrative uses a moin header.
109: narrative uses a moin header.
158: narrative uses a moin header.
386: narrative uses a moin header.
436: narrative uses a moin header.
475: narrative uses a moin header.
./lib/lp/
133: narrative exceeds 78 characters.
./lib/canonical
85: E222 multiple spaces after operator
133: W602 deprecated form of raising exception
180: E301 expected 1 blank line, found 0
482: E301 expected 1 blank line, found 0
500: E302 expected 2 blank lines, found 3
./lib/lp/
30: E302 expected 2 blank lines, found 1
I'll wade through these and correct as necessary.
Hi Brad.
This change looks great. I see I see extra white space between the download
portlet and announcements.
I think we need a model change to support this :( I an configure Answers to
not be official and my application may not be translatable. So the progress
bar will never be complete. Consider Launchpad. It does not have a po file,
so it cannot be translated, but the UI requires me to set translations to be
official to make the bar be complete. I think we need to None, True, or False
to make this work. I am seeing this same issue my the feature I am working
on. I propose we switch from bool to a vocab or UNKNOWN, LAUNCHPAD, EXTERNAL.
We may only need this some of the apps.
I have a lot of concern about the implementation. I do not think ILink, its
model, and template needed to change. I certainly do not think we should
be making invalid HTML on all Launchpad pages for a single portlet that
appears on one page. I think the fix is easy, but I have not spent a lot
of time looking at the issue.
> === modified file 'lib/canonical/ launchpad/ icing/style- 3-0.css. in' launchpad/ icing/style- 3-0.css. in 2010-07-26 14:48:43 +0000 launchpad/ icing/style- 3-0.css. in 2010-07-26 22:01:07 +0000
> --- lib/canonical/
> +++ lib/canonical/
> @@ -686,6 +686,13 @@
> margin: 0;
> padding: 0;
> }
> +div.centered {
> + text-align: center;
> + }
> +div.centered table {
> + margin: 0 auto;
> + text-align: left;
> + }
We used to have rules like this for the 1.0 layouts. I guess It was naive
of me to remove them.
> === modified file 'lib/canonical/ launchpad/ templates/ launchpad- inline- link.pt' launchpad/ templates/ launchpad- inline- link.pt 2009-08-27 02:22:07 +0000 launchpad/ templates/ launchpad- inline- link.pt 2010-07-26 22:01:07 +0000 xml.zope. org/namespaces/ tal" "context/ enabled" > "context/ linked" ><a "context/ linked" >
> --- lib/canonical/
> +++ lib/canonical/
> @@ -2,8 +2,10 @@
> xmlns:tal="http://
> condition=
> <tal:link-linked
> - condition=
> - href="" class="" title=""
> + condition=
> + <table width="100%"><tr>
> + <td width="90%">
> + <a href="" class="" title=""
This looks scary. I think it is wrong. This file is used to adapt every link,
and most links are inline text.
/me runs lp
This cannot land. It is create tables in paragraphs and inline markup that
cannot contain tables.
Since we are designing a presentation that will appear on exactly one page
and we have not discussed reusing it. I expected to see either a subclass
or some form of delegates so that the portlet's needs did not step on any
other part of launchpad. The Involvement portlet is already a bundle of
exceptions for menus and does its own layout. I think the view and existing
template could be doing all the work.
Maybe we should have looked closer at why the Involvement used CSS to place
a right aligned background image.
...
> === modified file 'lib/canonical/ launchpad/ webapp/ interfaces. py' launchpad/ webapp/ interfaces. py 2010-07-21 08:15:57 +0000 launchpad/ webapp/ interfaces. py 2010-07-26 22:01:07 +0000
> --- lib/canonical/
> +++ lib/canonical/
> @@ -238,6 +238,10 @@
> icon_url = Attribute(
> "The full URL for this link'...