← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/reduce-by-hash-noise into lp:launchpad

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/reduce-by-hash-noise into lp:launchpad.

Commit message:
Make ArchiveFileSet.unscheduleDeletion not set and return rows that already had a NULL scheduled_deletion_date, to reduce log noise.

Requested reviews:
  Colin Watson (cjwatson)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/reduce-by-hash-noise/+merge/290807

Make ArchiveFileSet.unscheduleDeletion not set and return rows that already had a NULL scheduled_deletion_date, to reduce log noise.
-- 
Your team Launchpad code reviewers is subscribed to branch lp:launchpad.
=== modified file 'lib/lp/soyuz/model/archivefile.py'
--- lib/lp/soyuz/model/archivefile.py	2016-03-30 08:25:23 +0000
+++ lib/lp/soyuz/model/archivefile.py	2016-04-03 02:56:59 +0000
@@ -141,6 +141,7 @@
         """See `IArchiveFileSet`."""
         clauses = [
             ArchiveFile.archive == archive,
+            ArchiveFile.scheduled_deletion_date != None,
             ArchiveFile.library_file == LibraryFileAlias.id,
             LibraryFileAlias.content == LibraryFileContent.id,
             LibraryFileContent.sha256.is_in(sha256_checksums),


References