feat: per-disposition feedback waiver

The overdue-feedback lists are a live query without stored state, so a
feedback nobody will provide any more could not be written off. The new
disposition.feedback_waived flag takes a placement out of the admin and
manager dashboards, the house-manager list and the reminder mail.

Statistics still count a waived placement as a missing feedback. The
flag has no UI yet and is set by SQL.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
frommeandClaude Opus 5.5 committed 2026-10-13 13:53:25 +02:00
1 parent c04d9e0faf
commit 7e182e3d51
4 files changed
+74

No files matched your search

+3
View File
@@ -225,9 +225,12 @@ class DispositionRepository extends ServiceEntityRepository
$qb->expr()->notIn('assignment.status', ':status'),
$qb->expr()->lte('destination.dateTo', ':dateTo'),
$qb->expr()->isNull('feedback'),
// waived placements are written off: nobody is asked for their feedback any more
$qb->expr()->eq('disposition.feedbackWaived', ':feedbackWaived'),
$this->excludesSkipFormalities($qb)
))
->setParameter('status', [Assignment::STATUS_CALLED_OFF, Assignment::STATUS_DELETED])
->setParameter('feedbackWaived', false)
;
$dateTo = new \DateTimeImmutable();