Merge lp://qastaging/~sinzui/launchpad/package-link-validation-4 into lp://qastaging/launchpad
Proposed by
Curtis Hovey
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Brad Crittenden | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp://qastaging/~sinzui/launchpad/package-link-validation-4 | ||||
Merge into: | lp://qastaging/launchpad | ||||
Diff against target: |
379 lines 7 files modified
lib/lp/registry/browser/configure.zcml (+1/-1) lib/lp/registry/browser/product.py (+43/-2) lib/lp/registry/browser/productseries.py (+2/-0) lib/lp/registry/browser/tests/packaging-views.txt (+62/-0) lib/lp/registry/stories/product/xx-product-package-pages.txt (+34/-7) lib/lp/registry/templates/product-packages.pt (+55/-30) lib/lp/translations/stories/standalone/xx-product-translations.txt (+0/-8) |
||||
To merge this branch: | bzr merge lp://qastaging/~sinzui/launchpad/package-link-validation-4 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+13987@code.qastaging.launchpad.net |
To post a comment you must log in.
This is my fourth branch to ensure valid upstream package links. There
are many oopses relating to the creation and efforts to fix invalid packages.
The root cause is a bad DB constraint and two views that did not do the
required sanity checks: +addpackage and +ubuntupkg
This branch allows users to delete packaging links to SourcePackages. rcePackages) .
(They can already delete links to DistributionSou
lp:~sinzui/launchpad/package-link-validation-3 /bugs.launchpad .net/bugs/ 193469 soyuz). *(productseries |packaging) ' implementation: flacoste, beuno
Diff size: 361
Launchpad bug: https:/
Test command: ./bin/test -vv -t 'lp.(reg|
Pre-
Target release: 3.1.10
== Fixing upstream packaging links ==
Bug 193469 [Unlink (Ubuntu) package from series]
I've accidently linked a series to the wrong Ubuntu release. But I cannot
find a way to remove/unlink it.
You can delete a bad packaging link it was built (as seen on the /launchpad. net/ubuntu/ +source/ jedit), but not if it never was built /launchpad. net/ubuntu/ hoary/+ source/ jedit)
distribution source package page
https:/
(as is this case https:/
== Rules ==
Bug 193469 [Unlink (Ubuntu) package from series]
* Add a (-) Remove action to each packaging link listed in the table
ADDENDUM
* The permission on the packaging links and views are very inconsistent.
Product +addpackage requires edit. The link to it and +ubuntupkg are
public. The view and two links should be launchpad.View like the
rules for adding and deleting links from the distro side. The working
principle is no user knows all packaging for a series, we trust any
logged in user to make an honest effort to record what he knows.
== QA ==
On staging
* Visit a productseries
* Choose (+) Ubuntu packaging
* Verify there is a link to +addpackage
* Verify the table items are linked.
* Submit the form with 'gedit'
* Verify the form error message explains that the gedit is already
packaged in Ubuntu karmic. Follow the link
* Verify the “gedit” source package in Karmic page displays.
== Lint ==
Linting changed files: registry/ browser/ configure. zcml registry/ browser/ product. py registry/ browser/ productseries. py registry/ browser/ tests/packaging -views. txt registry/ stories/ product/ xx-product- package- pages.txt registry/ templates/ product- packages. pt
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Test ==
* lib/lp/ registry/ browser/ tests/packaging -views. txt registry/ stories/ product/ xx-product- package- pages.txt
* Added test coverage for the updated +packages view.
* lib/lp/
* Fixed some style/lint issues
* Added test coverage for deleting packaging links.
== Implementation ==
* lib/lp/ registry/ browser/ configure. zcml registry/ browser/ product. py
* Reconciled the +addpackage permissions with the distro permission to
add a package.
* lib/lp/
* Updated ProductPackagesView to descend from PackagingDeleteView so
that it acquires the features need to delete a bad packaging link.
* Added the required all_packaging
* Added series_packages to help the template insert the f...