This looks good to me; I only have a couple comments below.
review approve ui*
On Wed, 2010-10-13 at 18:49 +0000, j.c.sackett wrote:
>
> Preimplementation talk
> ======================
>
> Spoke with Edwin Grubbs. We brought up the possiblity of linking out
> to all the products for the group so someone could configure the
> products, but to do so sanely (i.e. only show the links for products
> the viewer can configure) requires doing database checks for every
> product; this could lead to death by SQL timeouts.
I think that a project group that doesn't have a single project using LP
for hosting code is unlikely to have more than a handful projects, so I
think we could afford these extra SQL queries in the name of a better
user experience.
That said, it's fine if you want to implement that in a separate branch,
as I might be wrong.
I've read somewhere
(<http://en.wikipedia.org/wiki/Apostrophe#cite_note-13>, I think) that
to form the possessive we should add an 's regardless of the final
consonant, and your change is in line with that, but I'm not sure that's
the preferred style in Launchpad (in case we have one), so I'd like to
know what Curtis thinks.
> + projects are using Launchpad to host their code.</strong>
> + </div>
> + </tal:no-branches>
Can you use .is_empty() instead of .count() here? It is faster and we
don't really need the count here.
(I know this was supposed to be a UI review, but I thought it was worth
mentioning)
Hi Jon,
This looks good to me; I only have a couple comments below.
review approve ui*
On Wed, 2010-10-13 at 18:49 +0000, j.c.sackett wrote: ======= ======= =
>
> Preimplementation talk
> =======
>
> Spoke with Edwin Grubbs. We brought up the possiblity of linking out
> to all the products for the group so someone could configure the
> products, but to do so sanely (i.e. only show the links for products
> the viewer can configure) requires doing database checks for every
> product; this could lead to death by SQL timeouts.
I think that a project group that doesn't have a single project using LP
for hosting code is unlikely to have more than a handful projects, so I
think we could afford these extra SQL queries in the name of a better
user experience.
That said, it's fine if you want to implement that in a separate branch,
as I might be wrong.
> === modified file 'lib/lp/ code/templates/ project- branches. pt' code/templates/ project- branches. pt 2009-09-17 00:27:40 +0000 code/templates/ project- branches. pt 2010-10-13 18:43:40 +0000 "link/enabled" "structure link/render" /> @@+branch- listing" /> "not:context/ has_branches" > branchtable" > "context/ displayname" />'s
> --- lib/lp/
> +++ lib/lp/
> @@ -17,8 +17,17 @@
> tal:condition=
> tal:content=
> </div>
> -
> - <tal:branchlisting content="structure branches/
> + <tal:no-branches
> + condition=
> + <div id="no-
> + <strong>None of <tal:project replace=
I've read somewhere en.wikipedia. org/wiki/ Apostrophe# cite_note- 13>, I think) that
(<http://
to form the possessive we should add an 's regardless of the final
consonant, and your change is in line with that, but I'm not sure that's
the preferred style in Launchpad (in case we have one), so I'd like to
know what Curtis thinks.
> + projects are using Launchpad to host their code.</strong>
> + </div>
> + </tal:no-branches>
> === modified file 'lib/lp/ registry/ model/projectgr oup.py' registry/ model/projectgr oup.py 2010-10-07 13:26:53 +0000 registry/ model/projectgr oup.py 2010-10-13 18:43:40 +0000 les().count( ) != 0 s().count( ) != 0
> --- lib/lp/
> +++ lib/lp/
> @@ -222,6 +222,10 @@
> """See `IProjectGroup`."""
> return self.translatab
>
> + def has_branches(self):
> + """ See `IProjectGroup`."""
> + return self.getBranche
Can you use .is_empty() instead of .count() here? It is faster and we
don't really need the count here.
(I know this was supposed to be a UI review, but I thought it was worth
mentioning)
> + dClauseTablesFo rQueryingSprint s(self) :
> def _getBaseQueryAn
> query = """
> Product.project = %s
>
-- /launchpad. net/~salgado>
Guilherme Salgado <https:/