Repository navigation
feat: attendance cleanup rules show last run, preview and run summary - #270
Merged
Merged
Conversation
- Sweep stores each rule's last run (time + deleted count + skipped dates). - New "preview" bulk action: dry run listing students whose attendance would be deleted, per date, without deleting. - "Run now" runs synchronously and shows the per-rule summary in a dialog instead of a job id. Part of buzz-code/ops#67 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012GTictXCqjcaSDit3Kb14A
buzz-code
force-pushed
the
claude/attendance-cleanup-visibility
branch
from
November 15, 2026 20:22
2d9bfeb to
621bddb
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.
Requested by הדסה · project thread
Summary
Users couldn't see what attendance cleanup did: "run now" returned only a job id, and job results are admin-only.
lastRunAt+lastRunSummary(deleted count, skipped dates and reason) on each rule viaupdate()(skips the entity's key-resolution hook). New columns + migration; shown in the rules list.previewbulk action lists, per date, the students whose att_reports would be deleted, without deleting.runCleanupRulesand shows the per-rule summary in a dialog instead of enqueuing a job.runCleanupRules(dataSource, userId, rules, dryRun); the weekly job handler uses it unchanged.Tests
Handler + config specs updated (19 pass locally): last-run update, dry run lists students and neither deletes nor saves, run-now/preview call through per owner.
Part of buzz-code/ops#67
Generated by Claude Code