Merge lp:~wgrant/launchpad/destroy-publishedpackage into lp:launchpad/db-devel
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Jelmer Vernooij on 2010-08-05 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 9628 | ||||
| Proposed branch: | lp:~wgrant/launchpad/destroy-publishedpackage | ||||
| Merge into: | lp:launchpad/db-devel | ||||
| Diff against target: |
562 lines (+46/-299) 17 files modified
cronscripts/create-debwatches.py (+3/-3) database/schema/comments.sql (+0/-8) database/schema/patch-2207-80-0.sql (+8/-0) database/schema/security.cfg (+0/-2) lib/canonical/launchpad/browser/__init__.py (+0/-1) lib/canonical/launchpad/database/__init__.py (+0/-1) lib/canonical/launchpad/interfaces/__init__.py (+0/-1) lib/lp/registry/browser/distribution.py (+1/-7) lib/lp/registry/interfaces/distroseries.py (+0/-6) lib/lp/registry/model/distribution.py (+34/-27) lib/lp/registry/model/distroseries.py (+0/-11) lib/lp/soyuz/configure.zcml (+0/-28) lib/lp/soyuz/doc/publishedpackage.txt (+0/-32) lib/lp/soyuz/interfaces/distroseriessourcepackagerelease.py (+0/-4) lib/lp/soyuz/interfaces/publishedpackage.py (+0/-63) lib/lp/soyuz/model/distroseriessourcepackagerelease.py (+0/-9) lib/lp/soyuz/model/publishedpackage.py (+0/-96) |
||||
| To merge this branch: | bzr merge lp:~wgrant/launchpad/destroy-publishedpackage | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Stuart Bishop | db | 2010-08-05 | Approve on 2010-08-05 |
| Robert Collins (community) | 2010-08-05 | Approve on 2010-08-05 | |
| Launchpad code reviewers | 2010-08-05 | Pending | |
|
Review via email:
|
|||
Commit Message
Distribution.
Description of the Change
Bug #608037 and bug #609012 are partially caused by the slowness of Distribution.
I've fixed Distribution.
It turns out that the method was one of just two remaining users of PublishedPackage: the other being create-
With all the users gone, I've also dropped the PublishedPackage view and code itself.
| William Grant (wgrant) wrote : | # |
I forgot to bzr add the DB patch. Fixed.
| Stuart Bishop (stub) wrote : | # |
Code changes look good.
The queries in lib/lp/
| William Grant (wgrant) wrote : | # |
It doesn't matter at all, as it turns out. I've replaced it with an any().
| Julian Edwards (julian-edwards) wrote : | # |
I am so happy to see another view biting the dust.

So this drops the metadata, but won't actually drop the view - I presume you're going to merge to devel to fix the oops, and separately merge a 'drop the view' db patch to db-devel? Except, oddly, this is proposed to db-devel.
So I suggest you do the above :)
Other than that, great.