codeintel: Add retention policy to configure minimum age of all uploads
Created by: efritz
The codeintel-qa pipeline seems to be failing because records disappear during the test. I think this is a timing issue that is difficult to make happen locally but happens pretty consistently (though not always) in CI.
I believe the issue is that some test indexes are not visible from a tagged commit, nor from the tip of the default branch and are deleted while waiting for the set of indexes to be processes.
This PR adds another default/protected global data retention policy that sets the minimum age for any upload before deletion to 1 week. This duration configurable via the UI. This PR also locks the RetainIntermediateCommits value for protected uploads.