Preset invalidation on event edits + audit coverage for event/pin mutations #46
Labels
No labels
area/ai
area/backend
area/frontend
area/infra
area/scheduler
area/wled
good-first-issue
priority/high
priority/low
priority/medium
type/bug
type/chore
type/ci-cd
type/docs
type/feature
type/qa
v1.0.0
v1.1.0
v1.2.0
v2.0.0
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/Iris-WLED#46
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split from #40. Two related spec gaps:
Invalidation (§4.3): only segment changes trigger candidate auto-regen / approved staling (
scheme_generator.invalidate_for_segment_change). Editing an event'sphase_config, root scheme, or date range viaPUT /events/{id}does not invalidate dependent schemes. Also:invalidate_for_segment_changecomputes per-segment impact then unconditionally forcesaffected = True, making the computation dead code — either scope it properly or simplify.Audit (§7.3): "all state-changing actions" — but events create/update/delete (
routers/events.py:57-116) and date-override pin set/clear (:126-166) write no audit rows, and auto-regens aren't audited per-scheme with their trigger.Tasks
phase_config/date-range/root-scheme editsaffectedlogicwrite_auditon events CRUD and pin mutations (before/after values)Picking this up (Wave 2). Independent of the push-path cluster (#43/#44/#45/#47, PR #68) — this touches
routers/events.py+scheme_generator.py, so running it in parallel onfix/46-invalidation-auditoff main.