Inspection NHI726 was cancelled and then reopened through reschedule a minute later:
confirmed → cancelled; canceledAt and canceledBy set.PATCH /:id/reschedule cleared canceledAt and canceledBy, updated the inspection datetime and end time, and changed status cancelled → unconfirmed.unconfirmed → confirmed.Backend review confirmed this is allowed by current code. PATCH /:id/reschedule intentionally reopens cancelled inspections by clearing cancellation fields and setting the inspection back to unconfirmed.
The bug is that this outcome appears possible even though the workorder UI greys out Reschedule when status === 'cancelled'. The most likely path is a stale or already-open reschedule modal:
PATCH /:id/reschedule, which reopened the cancelled inspectionOnce an inspection is cancelled, an already-open reschedule flow should no longer be able to submit a reschedule that reopens the inspection accidentally.
cancelled unless the product explicitly intends a reopen flow.attik-backend/src/routes/inspection.tsattik-frontend/src/app/tools/inspections/[id]/components/WorkorderActionsDropdown.tsxattik-frontend/src/app/tools/inspections/[id]/components/RescheduleJobModal.tsxPlease authenticate to join the conversation.
Planned
Main App
About 3 hours ago
Linear
Get notified by email when there are changes.
Planned
Main App
About 3 hours ago
Linear
Get notified by email when there are changes.