fix(planner): wipe-and-replan preserves today's planned items #468
No reviewers
Labels
No labels
app/archiv
app/einkaufslisten
app/imap-client
app/wissensbasis
arch-answered
arch-question
area/api
area/auth
area/infra
area/mobile
area/shared
area/ui
area/web
portfolio-status
prio/high
prio/low
prio/medium
roadmap/public
size/l
size/m
size/s
size/xl
size/xs
status/blocked
status/needs-info
type/bug
type/chore
type/docs
type/feature
type/idea
type/refactor
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
admin-mrrm/mrrmlabapp!468
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/planner-replan-preserves-planned"
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?
Fixes #461
Summary
planToday()läuft in einer DB-Transaktion. Vor dem Slotter werden heutigeplanned-Items zurück aufpendingdemotet (plannedSlot = NULL). Damit ist der Pool für den Slotter vollständig und die Response-DTO enthält alle für heute geplanten Items.(priority, earliestAt, createdAt, id)— gleicher Pool produziert deterministisch identische Slot-Zuordnung.planned-Items und alledone-Items bleiben unangetastet.Tests
demotes today's already-planned candidates back to pending before slottingruns inside a db.transaction so demote+replan are atomicorders deterministically by id when priority, earliestAt and createdAt all tieArch-Decision
Option (a) Wipe-and-replan aus #461 arch-bot Kommentar. Frontend (
setQueryData) bleibt — Response ist jetzt fachlich vollständig.