feat: add account_advisory cleanup to advisory cleanup job - #2290
Draft
katarinazaprazna wants to merge 2 commits into
Draft
feat: add account_advisory cleanup to advisory cleanup job#2290katarinazaprazna wants to merge 2 commits into
katarinazaprazna wants to merge 2 commits into
Conversation
Extend the advisory cleanup job to also clean zero-count rows from the new account_advisory table, running both cleanups in parallel. The legacy advisory_account_data cleanup runs until that table is dropped.
Reviewer's GuideExtend the advisory cleanup job to run zero-count row deletion on both advisory_account_data and account_advisory tables in parallel, rename the job wiring, and add per-table deletion count logging for observability. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2290 +/- ##
==========================================
- Coverage 59.27% 59.16% -0.12%
==========================================
Files 148 148
Lines 9488 9508 +20
==========================================
+ Hits 5624 5625 +1
- Misses 3276 3295 +19
Partials 588 588
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
katarinazaprazna
force-pushed
the
parallel-advisory-cleanup
branch
from
August 3, 2026 00:30
d447030 to
5c64f33
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
account_advisorytable, running both cleanups in parallel until the legacy table is droppedadvisory_metadatathat still has rows in the new tableFollow-up
PUT /clean-advisory-account-dataadmin API endpoint only cleans the legacy table. Update to also cleanaccount_advisory(or rename/replace when legacy table is dropped)Secure Coding Practices Checklist GitHub Link
Secure Coding Checklist