Merge lp:~stevenk/launchpad/db-add-ifp-job into lp:launchpad/db-devel
Proposed by
Steve Kowalik
on 2010-07-30
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~stevenk/launchpad/db-add-ifp-job |
| Merge into: | lp:launchpad/db-devel |
| Diff against target: |
422 lines (+371/-0) 8 files modified
database/schema/comments.sql (+6/-0) database/schema/patch-2207-99-0.sql (+22/-0) database/schema/security.cfg (+1/-0) lib/lp/soyuz/interfaces/initialisedistroseriesjob.py (+56/-0) lib/lp/soyuz/model/doinitialisedistroseriesjob.py (+55/-0) lib/lp/soyuz/model/initialisedistroseriesjob.py (+120/-0) lib/lp/soyuz/tests/test_doinitialisedistroseries.py (+60/-0) lib/lp/soyuz/tests/test_initialisedistroseriesjob.py (+51/-0) |
| To merge this branch: | bzr merge lp:~stevenk/launchpad/db-add-ifp-job |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Launchpad code reviewers | 2010-07-30 | Pending | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2010-08-23.
Description of the Change
This branch adds only the plumbing for IDistroSeries.
The cronscript and other related bits to enable this work will be landed last.
This will require a database review, as well as a new database number.
To post a comment you must log in.
| James Westby (james-w) wrote : | # |

Hi,
Comparing this with CopyArchiveJob shows plenty of overlap, but also
some differences given the current implementation.
- initializeFromP arent eventually calls packagecloner, which
copy archives also use, so there is room for consolidation.
- i-f-p works on multiple archives at once, so ArchiveJob isn't
a direct fit, but we could create multiple jobs for i-f-p
(and there are comments in the code about whether copying partner
is the right thing to do anyway)
- copy archives always work on a distroseries, so an alternative would
be to move to DistroSeriesJob instead of ArchiveJob there, and have
archives moved in to json.
- i-f-p is really a string of jobs, with the package clone being one of
them, so perhaps breaking that method up would make sense.
I think what would help is looking at some other jobs, such as a
SyncPackagesJob and deciding what they would use, to decide if ArchiveJob,
DistroSeriesJob, or something else would make the best base.
Thanks,
James