After discussing the issue with Martin and Barry, it was decided that we
want to show the association between the version and the commonly used code
name, and we want to fix all the callsites.
== Rules ==
* The code name should be shown with the version. Since both they are
interchangable, they should be show together and shown consistently
in this format: Codename (n.nn)
* Add named_version to the Distroseries object to ensure consistent
presentation.
* Update all places that show just the version to also show the codename
* Update places that use quotes or place the codename in parentheses to
use named_version
* lib/lp/registry/browser/tests/test_breadcrumbs.py
* Added a test to verify that the breadcrumb text is a named_version.
* lib/lp/registry/doc/distroseries.txt
* Added a test to verify all the identifying names for a distroseries.
* Yes, the many names are insane. There are several related bugs dating
to 2005 about the need to sanitise pillar and series attributes.
* lib/lp/registry/stories/product/xx-product-package-pages.txt
* Updated test to verify that the named version is in the correct order.
* lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt
* Updated test to verify that the named version used.
* lib/lp/translations/stories/standalone/xx-rosetta-homepage.txt
* Updated test to verify that the named version used.
* lib/lp/translations/stories/distribution/xx-distribution-translations.txt
* Updated test to verify that the named version used.
Mechanical updates to page titles which include the breadcrumb:
This is my branch to switch the distroseries breadcrumb and all displays
of version to display as Lucid (10.04).
lp:~sinzui/launchpad/distroseries-breadcrumb-bug-400643 /bugs.launchpad .net/bugs/ 400643 doc/distroserie s|test_ breadcrumbs) " package- pages" homepage| xx-distribution -translations" implementation: beuno, barry
Diff size: 842 (500 lines are mechanical changes)
Launchpad bug: https:/
Test command: ./bin/test -vv
-t "reg.*(
-t "xx-product-
-t "xx-rosetta-
Pre-
Target release: 3.1.11
= Switch the distroseries breadcrumb from a version or a code name =
When browsing Debian packaging branches Launchpad shows a numeric identifier
in the quick menu at the top of the page.
E.g. <https:/ /launchpad. net/debian/ sid/+source/ bzr> shows
Launchpad > Debian > 98 > “bzr” package
After discussing the issue with Martin and Barry, it was decided that we
want to show the association between the version and the commonly used code
name, and we want to fix all the callsites.
== Rules ==
* The code name should be shown with the version. Since both they are gable, they should be show together and shown consistently
interchan
in this format: Codename (n.nn)
* Add named_version to the Distroseries object to ensure consistent
presentation.
* Update all places that show just the version to also show the codename
* Update places that use quotes or place the codename in parentheses to
use named_version
== QA ==
Breadcrumbs and title: /edge.launchpad .net/ubuntu/ lucid/+ source/ bzr
* Visit https:/
* Verify the breadcrumbs are:
Ubuntu >> Lucid (10.04) >> "bzr" source package
Product packaging version: /edge.launchpad .net/bzr/ +packages
* Visit https:/
* Verify the distroseries is listed as Lucid (10.04)
Translations version: edge.translatio ns.launchpad. net/ edge.translatio ns.launchpad. net/ubuntu/ lucid/+ lang/pt_ BR
* Visit http://
* Verify the distroseries is listed as Lucid (10.04)
* Visit http://
* Verify the distroseries is listed as Lucid (10.04)
Soyuz PPA version: /edge.launchpad .net/ubuntu/ +ppas
* Visit https:/
* Verify the distroseries is listed as Lucid (10.04)
== Lint ==
Linting changed files: answers/ stories/ question- answers- vhost.txt answers/ stories/ question- overview. txt registry/ browser/ configure. zcml registry/ browser/ distroseries. py registry/ browser/ tests/test_ breadcrumbs. py registry/ doc/distroserie s.txt registry/ interfaces/ distroseries. py registry/ model/distroser ies.py registry/ stories/ distribution/ xx-distribution -packages. txt registry/ stories/ distroseries/ xx-distroseries -index. txt registry/ stories/ packaging/ xx-sourcepackag e-packaging. txt registry/ stories/ product/ xx-product- package- pages.txt registry/ templates/ distribution- series. pt registry/ templates/ distroseries- details. pt registry/ templates/ product- distros. pt registry/ templates/ product- packages. pt soyuz/stories/ distroseries/ add-architectur e.txt soyuz/stories/ packaging/ package- pages-navigatio n.txt soyuz/stories/ ppa/xx- ubuntu- ppas.txt soyuz/stories/ soyuz/xx- distroarchserie s-binpackages. txt soyuz/stories/ soyuz/xx- distroarchserie s.txt soyuz/stories/ soyuz/xx- distroseries- binary- packages. txt soyuz/stories/ soyuz/xx- person- packages. txt soyuz/stories/ soyuz/xx- sourcepackage- changelog. txt soyuz/templates /distribution- portlet- ppa-architectur es.pt translations/ browser/ tests/test_ breadcrumbs. py translations/ stories/ distribution/ xx-distribution -translations. txt translations/ stories/ standalone/ xx-pofile- translate- message- filtering. txt translations/ stories/ standalone/ xx-rosetta- homepage. txt translations/ stories/ standalone/ xx-rosetta- pofile- export. txt translations/ stories/ standalone/ xx-rosetta- potemplate- index.txt translations/ stories/ standalone/ xx-rosetta- sourcepackage- list.txt translations/ templates/ distribution- translations. pt translations/ templates/ rosetta- index.pt
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Test ==
Changes to verify new behaviour:
* lib/lp/ registry/ browser/ tests/test_ breadcrumbs. py registry/ doc/distroserie s.txt registry/ stories/ product/ xx-product- package- pages.txt soyuz/stories/ ppa/xx- ubuntu- ppas.txt translations/ stories/ standalone/ xx-rosetta- homepage. txt translations/ stories/ distribution/ xx-distribution -translations. txt
* Added a test to verify that the breadcrumb text is a named_version.
* lib/lp/
* Added a test to verify all the identifying names for a distroseries.
* Yes, the many names are insane. There are several related bugs dating
to 2005 about the need to sanitise pillar and series attributes.
* lib/lp/
* Updated test to verify that the named version is in the correct order.
* lib/lp/
* Updated test to verify that the named version used.
* lib/lp/
* Updated test to verify that the named version used.
* lib/lp/
* Updated test to verify that the named version used.
Mechanical updates to page titles which include the breadcrumb:
* lib/lp/ answers/ stories/ question- answers- vhost.txt answers/ stories/ question- overview. txt registry/ stories/ distroseries/ xx-distroseries -index. txt registry/ stories/ distribution/ xx-distribution -packages. txt registry/ stories/ packaging/ xx-sourcepackag e-packaging. txt soyuz/stories/ distroseries/ add-architectur e.txt soyuz/stories/ packaging/ package- pages-navigatio n.txt soyuz/stories/ soyuz/xx- distroarchserie s-binpackages. txt soyuz/stories/ soyuz/xx- distroarchserie s.txt soyuz/stories/ soyuz/xx- distroseries- binary- packages. txt soyuz/stories/ soyuz/xx- person- packages. txt soyuz/stories/ soyuz/xx- sourcepackage- changelog. txt translations/ stories/ standalone/ xx-pofile- translate- message- filtering. txt translations/ stories/ standalone/ xx-rosetta- pofile- export. txt translations/ stories/ standalone/ xx-rosetta- potemplate- index.txt translations/ stories/ standalone/ xx-rosetta- sourcepackage- list.txt translations/ browser/ tests/test_ breadcrumbs. py
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
== Implementation ==
* lib/lp/ registry/ browser/ configure. zcml registry/ browser/ distroseries. py named_version. registry/ interfaces/ distroseries. py registry/ model/distroser ies.py registry/ templates/ distribution- portlet- series. pt
* Removed unused portlet.
* lib/lp/
* Updated the breadcrumb rule to use distroseries.
* lib/lp/
* Added named_version.
* lib/lp/
* Defined named_version.
* lib/lp/
* Removed unused portlet.
Updated the following templates to use named_version instead of version.
* lib/lp/ registry/ templates/ distribution- series. pt registry/ templates/ distroseries- details. pt registry/ templates/ product- distros. pt registry/ templates/ product- packages. pt soyuz/templates /distribution- portlet- ppa-architectur es.pt translations/ templates/ distribution- translations. pt translations/ templates/ rosetta- index.pt
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/
* lib/lp/