Merge lp:~adiroiban/launchpad/bug-146178 into lp:launchpad/db-devel
| Status: | Merged |
|---|---|
| Merged at revision: | not available |
| Proposed branch: | lp:~adiroiban/launchpad/bug-146178 |
| Merge into: | lp:launchpad/db-devel |
| Diff against target: |
469 lines (+204/-71) 5 files modified
lib/lp/registry/interfaces/distroseries.py (+12/-13) lib/lp/translations/browser/distroseries.py (+40/-4) lib/lp/translations/stories/distroseries/xx-distroseries-language-packs.txt (+87/-24) lib/lp/translations/templates/distroseries-language-packs.pt (+59/-22) lib/lp/translations/templates/distroseries-translations.pt (+6/-8) |
| To merge this branch: | bzr merge lp:~adiroiban/launchpad/bug-146178 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2010-04-27 | Approve on 2010-04-27 |
| Curtis Hovey (community) | ui | 2010-04-26 | Approve on 2010-04-26 |
| Eleanor Berger (community) | ui* | Approve on 2010-04-26 | |
| Abel Deuring (community) | code | 2010-04-20 | Abstain on 2010-04-23 |
|
Review via email:
|
|||
Commit Message
Add in the UI +latest-
Description of the Change
= Bug 146178 =
With the move of language pack exports to production servers we added +latest-
We don't link to them from Launchpad so they are only available to people that knows about it.
We should add them to the +language-packs page.
== Proposed fix ==
Create translation navigation menu entries for distroseries and add them on distroseries@
== Pre-implementation notes ==
The links are of interest only for a few users and this is why they are added only on the +langauge-packs page.
Danilo hinted that when latest and current language packs are the same we should not show the latest language pack and rather use „no updates”
Danilo also mentioned that instead of „none yet” we can use „no updates” (or something similar) and that maybe we can find a better terminology for base / full / update / delta language packs.
== Implementation details ==
Screenshots:
distribution page: http://
language-packs page: http://
I have removed the inline css for "adminlabel" as portlet titles were not aligned.
I have changed the links to use sprites.
Regarding the terminology issue, I used "base" for the base language pack and "update" for the delta language pack that must be applied over the base pack.
I used "language pack" and not "language package" since they are just translation archive and not fully functional distribution packages.
When updating a delta language pack two notification messages were generated, once saying that the changes were applied and another that no changes were submitted. I have fix that issue in this bug and since this page is only used by Ubuntu developers/
== Tests ==
lp-tt distroseries-
== Demo and Q/A ==
Go to: https:/
You should see link to the "Base back" and "Update pack" if they are available, or "none yet" and "no update".
Languages packs can be changes from here:
https:/
On the language packs you should see links to both active, in testing, latest and unused languages packs.
| Данило Шеган (danilo) wrote : | # |
| Данило Шеган (danilo) wrote : | # |
And please, do not use tables on this page.
| Abel Deuring (adeuring) wrote : | # |
This is my branch to fix from trivial issues while my brain is stuck in
first gear.
lp:~sinzui/launchpad/oil-and-pigment
Diff size: 489
Launchpad bug: https:/
https:/
https:/
https:/
Test command: ./bin/test -vv lp.registry.
./bin/test -t site-search -t xx-team-home -t xx-private-
-t person-karma
Pre-
Target release: 10.04
Fix from trivial issues while my brain is stuck in first gear
-------
Bug #436299 [Search results give wrong "Registered by" information]
The maintainer is listed as the registrant. This is wrong. The
problem is that distributions do not have a registrant.
Bug #568336 [Typo on profile workload page]
There is a double 'or'
Bug #130285 [Disregard deleted projects from Most active in]
Deactivated projects are listed in "Most active in" in the profile page
and the links are a 404.
Bug #557544 [Bad plural on team page ("1 active members")]
What: "1 active members" can appear on team page. This is incorrect use
of a plural.
Rules
-----
Bug #436299 [Search results give wrong "Registered by" information]
Verify there is a registrant using tales before appending the clause.
tal:
tal:
Bug #568336 [Typo on profile workload page]
Remove the second 'or'.
Bug #130285 [Disregard deleted projects from lists]
This issue in on the cusp of *not* trivial because a good understanding
of pillar name behaviour and karma testing is needed. The fix can be
easily placed into an existing doc test, but that is not the correct
location.
* pillar names (used by karma cache) have no concept of active/inactive.
The method must filter deactivate pillars /after/ the query to get the
names. The callsite must request more than is needed because of the
filtering.
* Generate the karma for a unit test of the method *and* the private
methods that were never directly tested.
* Test that deactivated pillars are not included.
* ADDENDUM: While I knew how to generate the karma, the reason why
the karma looks like it is inserted twice was not obvious from existing
tests. I took an extra hour learning this and adding comments for
future developers.
Bug #557544 [Bad plural on team page ("1 active members")]
* Use the plural-message macro to switch between member and members
QA
--
Bug #436299 [Search results give wrong "Registered by" information]
* Visit https:/
* Verify that Karianne Fog Heen is listed as the registrant
* Visit https:/
* Verify that no registrant is listed:
Registered on <date>
Bug #568336 [Typo on profile workload page]
* Visit https:/
* Verif...
| Abel Deuring (adeuring) wrote : | # |
I am an idiot -- that was meant for another branch. Sorry for the noise...
| Brad Crittenden (bac) wrote : | # |
Hi Adi,
Thanks for submitting this change. The work looks really good.
Please fix the small items below and then I'll (try) to land it for you, if ec2 will let me. :(
> === modified file 'lib/lp/
> --- lib/lp/
+++ lib/lp/
> @@ -250,33 +250,33 @@
> language_pack_base = Choice(
> title=_('Language pack base'), required=False,
> description=_('''
> - Language pack export with the export of all translations available
> - for this `IDistroSeries` when it was generated. Next delta exports
> - will be generated based on this one.
> + Language pack with the export of all translations
> + available for this distribution series when it was generated. The
> + subsequent update exports will be generated based on this one.
> '''), vocabulary=
>
> language_pack_delta = Choice(
> - title=_('Language pack delta'), required=False,
> + title=_('Language pack update'), required=False,
> description=_('''
> - Language pack export with the export of all translation updates
> - available for this `IDistroSeries` since language_pack_base was
> - generated.
> + Language pack with the export of all translation updates
> + available for this distribution series since the language pack
> + base was generated.
> '''), vocabulary=
>
> language_
> title=_('Proposed language pack update'), required=False,
> description=_('''
> - Base or delta language pack export that is being tested and
> - proposed to be used as the new language_pack_base or
> - language_pack_delta for this `IDistroSeries`.
> + Base or update language pack export that is being tested and
> + proposed to be used as the new language pack base or
> + language pack update for this distribution series.
> '''), vocabulary=
>
> language_
> title=_('Request a full language pack export'), required=True,
> description=_('''
> Whether next language pack generation will be a full export. This
> - is useful when delta packages are too big and want to merge all
> - those changes in the base package.
> + is useful when update packs are too big and want to merge all
> + those changes in the base pack.
s/This is/This information is/
> '''))
>
> last_full_
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -122,6 +122,28 @@
>
> return unused_
>
> + @property
> + def have_latest_full...
| Brad Crittenden (bac) wrote : | # |
Also, I see this MP is targeted to db-devel not devel which seems to be in error.
| Adi Roiban (adiroiban) wrote : | # |
Hi Brad and many thanks for your review.
I have create a new MP targeted to devel and added my diff there:
https:/

Looking at the screenshots: any reason to still add 'Current' to the titles on distroseries: +translations page? And don't forget to decapitalize "Base" in "Current Base" on the +language-packs page (not to mention that it'd be nice to find better terminology for these, but I am letting you take care of that with the UI reviewer)