Merge lp:~sinzui/launchpad/unlinkable-packages-0 into lp:launchpad
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Eleanor Berger | ||||||||||||
Approved revision: | no longer in the source branch. | ||||||||||||
Merged at revision: | 10883 | ||||||||||||
Proposed branch: | lp:~sinzui/launchpad/unlinkable-packages-0 | ||||||||||||
Merge into: | lp:launchpad | ||||||||||||
Diff against target: |
293 lines (+84/-28) 6 files modified
lib/lp/registry/browser/sourcepackage.py (+14/-1) lib/lp/registry/browser/tests/sourcepackage-views.txt (+35/-6) lib/lp/registry/model/distroseries.py (+4/-1) lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt (+6/-2) lib/lp/registry/templates/sourcepackage-portlet-associations.pt (+7/-13) lib/lp/registry/tests/test_distroseries.py (+18/-5) |
||||||||||||
To merge this branch: | bzr merge lp:~sinzui/launchpad/unlinkable-packages-0 | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | code | Approve | |
Review via email: mp+25260@code.launchpad.net |
Description of the change
This is my branch to improve the quality of package listings and linking.
lp:~sinzui/launchpad/unlinkable-packages-0
Diff size: 269
Launchpad bug: https:/
https:/
https:/
Test command: ./bin/test -vv \
-t lp/.*/sourcepac
-t TestDistroSeriesSet -t TestDistroSerie
Pre-
Target release: 10.05
Improve the quality of package listings and linking
-------
Bug 577492 [+needs-packaging lists duplicates]
I viewed the first 200 items listed in
https:/
I saw several duplicates. The duplication is not obvious since Ubuntu has
so many packages.
Bug 577497 [+needs-packaging lists packages that cannot be linked]
Many metapackages and language packs cannot be linked to upstream
projects.
Bug 580124 [sourcepackage upstream connections portlet is inconsistent]
The Upstream connection portlet look different that the project Ubuntu
packaging portlet. The form is ambiguous because there is a link and and
button to link to an upstream project. The project version of the form
solved this by moving the option to choose a different package into the
form options. Also, the SP form will shown too many matches, which breaks
the layout. The form will also steal focus, and with a lot of matches, the
page will scroll.
Rules
-----
Bug 577492 [+needs-packaging lists duplicates]
* +needs-packaging duplicate is actually random ordering for packages
with the same score. Add a second sort on spn.name to ensure reloading
a listing does not get a different listing.
* This is Ubuntu fix. Another branch is needed to fix the Debian problem
where many packages can be in the published state.
Bug 577497 [+needs-packaging lists packages that cannot be linked]
* Lp does not store information regarding metapackage. Some meta packages
can have code (because of rules). The most visible problem is language
packs and they are all in the 'translations' section. Exclude that
section
Bug 580124 [sourcepackage upstream connections portlet is inconsistent]
* Steal from the product Ubuntu packaging form:
* Limit the number of items to 10
* Include an option to choose an alternate upstream project
* Remove the link that looks redundant
* Set initial_
UI
--
* http://
A long list with similarly named button and link
* http://
A shorter list (okay, sample data sucks, the tests show that the list
cannot be more than 10). A single button to set the upstream project
and the user can choose an option to chose another unlisted project.
QA
--
Bug 577492 [+needs-packaging lists duplicates]
* Visit https:/
* Reload and verify the listing is the same.
Bug 577497 [+needs-packaging lists packages that cannot be linked]
* Visit https:/
and page though 4 pages.
* Verify that Language packs are not included.
Bug 580124 [sourcepackage upstream connections portlet is inconsistent]
* Visit https:/
* Verify the page does not scroll down to the show the form.
* Verify 10 items are listed
* Verify the last item is "Chose another upstream project"
* Submit the last items
* Verify you are seeing the page to enter an upstream project.
Lint
----
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Test
----
* lib/lp/
Updated the test to verify that the matches are limited to 9
and that an option to choose another project is appended.
* lib/lp/
Added a test to verify that packages in the translations section are
excluded. Updated a test to show that items of equal score are sorted
by name.
Implementation
--------------
* lib/lp/
Updated the upstream packages form to limit the matches to
9 and append an option to choose another project. Set the
initial_
* lib/lp/
Added sourcepakagenam
to exclude translations section (language packs.)
* lib/lp/
Moved the paragraph about no matches into the form (just like) the
project version of this portlet. I removed the ambiguous link.