Skip to content

Prune older v2 catalog versions after publication, and restore them on republish - #4225

Merged
anth-volk merged 16 commits into
masterfrom
v2plan/a5-13-prune-old-catalog-versions
Nov 6, 2026
Merged

anth-volk merged 16 commits into
masterfrom
v2plan/a5-13-prune-old-catalog-versions

Give the v2 seed job 60 minutes

bad0e7d
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Nov 6, 2026 in 1s

92.19% (+0.05%) compared to f932adf

View this Pull Request on Codecov

92.19% (+0.05%) compared to f932adf

Details

Codecov Report

❌ Patch coverage is 98.00000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.19%. Comparing base (f932adf) to head (bad0e7d).

Files with missing lines Patch % Lines
...yengine_api/data/v2/catalog/publication_pruning.py 96.47% 1 Missing and 2 partials ⚠️
policyengine_api/data/v2/catalog/publication.py 95.74% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4225      +/-   ##
==========================================
+ Coverage   92.14%   92.19%   +0.05%     
==========================================
  Files         296      298       +2     
  Lines       16696    16895     +199     
  Branches     2722     2756      +34     
==========================================
+ Hits        15384    15577     +193     
- Misses        795      800       +5     
- Partials      517      518       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.