Merge lp:~james-w/launchpad/archive-job-db into lp:launchpad/db-devel
| Status: | Merged |
|---|---|
| Approved by: | Stuart Bishop on 2010-07-28 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 9586 |
| Proposed branch: | lp:~james-w/launchpad/archive-job-db |
| Merge into: | lp:launchpad/db-devel |
| Prerequisite: | lp:~james-w/launchpad/test-package-cloner |
| Diff against target: |
118 lines (+56/-0) 5 files modified
database/sampledata/current-dev.sql (+10/-0) database/sampledata/current.sql (+10/-0) database/schema/comments.sql (+8/-0) database/schema/patch-2207-64-0.sql (+27/-0) database/schema/security.cfg (+1/-0) |
| To merge this branch: | bzr merge lp:~james-w/launchpad/archive-job-db |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Stuart Bishop | db | 2010-06-24 | Approve on 2010-07-28 |
| Robert Collins | db | 2010-07-28 | Pending |
| Björn Tillenius | db | 2010-06-25 | Pending |
|
Review via email:
|
|||
Commit Message
Add an ArchiveJob table.
Description of the Change
Hi,
This adds an ArchiveJob, like BranchJob and BugJob.
The first use is for copy archive jobs, that currently aren't jobs
but should be. I expect there will be more uses in the future.
Thanks,
James
| James Westby (james-w) wrote : | # |
| Stuart Bishop (stub) wrote : | # |
Generally fine.
patch-2207-64-0.sql
I think the job foreign key constraint should be ON DELETE CASCADE to make job garbage collection a little easier:
job integer NOT NULL CONSTRAINT archivejob__job__fk REFERENCES job ON DELETE CASCADE
(the archive foriegn key constraint should not be).
| Stuart Bishop (stub) wrote : | # |
Oh... please fix the security.cfg declarations. The [write] section is deprecated per the comments. Please add explicit permissions to users.
| James Westby (james-w) wrote : | # |
On Fri, 25 Jun 2010 07:41:28 -0000, Stuart Bishop <email address hidden> wrote:
> Oh... please fix the security.cfg declarations. The [write] section is deprecated per the comments. Please add explicit permissions to users.
I was just cargo-culting, so I'm not surprised it is wrong.
I guess the other permission is ok?
I don't know what explicit permissions other than that would be needed.
Currently these jobs would be added by a script run by an admin on
request, and then we will add a cronscript to process them. If you can
tell me what users/permission might be needed for that then I can add
them now, otherwise I will just leave the default in and work with the
Soyuz team on making other changes needed once we have something to test
on dogfood.
Thanks,
James
| Stuart Bishop (stub) wrote : | # |
No problems - the permissions can be added when the cronscript or whatever processes the jobs is written.
| James Westby (james-w) wrote : | # |
Hi Stuart,
Could you give this another look over as I have made the changes you suggested?
Thanks,
James

You can see the model classes at
https:/ /code.edge. launchpad. net/~james- w/launchpad/ copy-archive- job/+merge/ 28439
with some more description of the aim of this job type.
Thanks,
James