fix: remove stale anonymous cleaner job#2269
Conversation
WalkthroughRemoves the stale anonymous user cleanup feature: deletes the Helm scheduled job, CLI command, env schema and config service, controller method, repository paging method, the cleaner service and summarizer, and its functional test; also adjusts a deployment repository filter. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Scheduler as Helm Job / Cron
participant CLI as CLI Handler
participant Controller as UserController
participant Cleaner as StaleAnonymousUsersCleanerService
participant Repo as UserRepository
participant WalletSvc as ManagedUserWalletService
participant DB as Database
Note over Scheduler,CLI `#D6EAF8`: (previously) scheduled cleanup run
Scheduler->>CLI: invoke cleanup command
CLI->>Controller: cleanUpStaleAnonymousUsers(options)
Controller->>Cleaner: cleanUpStaleAnonymousUsers(options)
Cleaner->>Repo: paginateStaleAnonymousUsers(inactivityDays,...)
Repo->>DB: query stale users (paged)
Cleaner->>WalletSvc: revoke wallets for userIds
Cleaner->>DB: delete orphaned users
Note right of Cleaner `#FDEBD0`: emit summary/log
(Note: the sequence represents the removed control flow; corresponding components/edges were deleted across the diff.) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-06-03T15:06:34.211ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
Comment |
❌ 3 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Summary by CodeRabbit
Chores
Tests
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.