← Back to team overview

launchpad-dev team mailing list archive

Re: Archive deletion strategy

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/05/2010 10:30 AM, Julian Edwards wrote:
> On Thursday 05 August 2010 15:06:35 James Westby wrote:
>> There is also SourcePackageRecipeBuild that I missed before. This is
>> CASCADE on Archive, but there are several references to it that need to
>> be taken care of.
>>
>>   - SourcePackageRecipeBuildUpload - CASCADE?

Not familiar to me.  May not actually be used outside of
archiveuploader/tests/test_recipeuploads.py

>>   - SPR - already NULLable, so again it's just that we could have an
>>        SPR that we don't know the origin of any more.
>>   - SourcePackageRecipeBuildJob - prevent deletion?

I would probably warn, the way we do on branch deletion, and then delete
if the user decided to proceed.

>>   - SourcePackageRecipeData - CASCADE
> 
> I'm not as familiar with that data model.  Aaron?
>>   * SourcePackageRecipe.daily_build_archive - already NULLable. Again a
>>      warning here would be appropriate when deleting.
> 
> Aaron would have to comment there.

I would NULL the field, but that's conservative.  It's quite likely the
user has no use for the recipe if they're deleting the archive that was
its target.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxazP0ACgkQ0F+nu1YWqI1fQQCaAhkqUAGt0e0eQiaBRlyPzOwX
c7QAniclkeXAYQTuyUexBzgNaZGsHjJV
=Ctnw
-----END PGP SIGNATURE-----



Follow ups

References