Skip to content

codeintel: Update return of {RepositoryIDs,SelectRepositories}ForRetentionScan

Administrator requested to merge ef/select-repositories-for-retention-scan into main

Created by: efritz

This PR updates (and renames) the RepositoryIDsForRetentionScan dbstore method. Previously, this method returned only a flat list of repository ids. Now, this method returns a map from the previous repository ids to the last time that repository's commit graph was updated.

This is necessary as we don't want to evict detached upload before they have been inserted into the repository's commit graph (an async process). If we ignore all uploads that are newer than the last refresh time, we shouldn't consider these new uploads as eviction candidates.

Merge request reports

Loading