Reset MARC files on settings update (PP-4637)#3554
Conversation
|
Claude finished @tdilauro's task in 12m 18s —— View job Code Review
SummarySolid, carefully-constructed change. I traced the end-to-end refresh flow (admin/registry change → reset → next scheduled Details
|
Greptile SummaryThis PR resets MARC exports when export-affecting settings change. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (5): Last reviewed commit: "CI AI code review feedback" | Re-trigger Greptile |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3554 +/- ##
==========================================
+ Coverage 93.46% 93.48% +0.01%
==========================================
Files 512 512
Lines 46611 46733 +122
Branches 6352 6375 +23
==========================================
+ Hits 43566 43687 +121
+ Misses 1969 1968 -1
- Partials 1076 1078 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
29c50fe to
cfe7cfb
Compare
Description
marc_export_resetCelery task that sets up the next MARC export as a first run by removing existing files (database records and S3 objects). The records are deleted in one transaction, and S3 deletion is best-effort, so a failure won't leave the reset half-applied.Motivation and Context
MARC record exports run periodically, but a configuration change would not trigger an update. Record updates based on those changes might not become available until long after the change was made. Further, some MARC consumers apply only delta files rather than reprocessing full exports. When a library's MARC export configuration changed (organization code, summary/genre inclusion, web client URLs), records exported before the change were never corrected for those consumers, leaving stale data in their catalogs indefinitely. Resetting the library's export state on configuration changes forces a full refresh that reaches both full-file and delta-only consumers.
[Jira PP-4637]
How Has This Been Tested?
Checklist