Bug: ServiceRequest missing decline transitions from quoted and accepted states #206
Loading…
Add table
Add a link
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?
Type
Bug
Lineage
Related to
ldraney/landscaping-assistant #122— theacceptedstate was added post-spec without a decline exit.Repo
ldraney/landscaping-assistantWhat Broke
The
VALID_TRANSITIONSmap inapp/models/service_request.rbis missing a decline path from theacceptedstate. Once a quote is accepted, there is no way to cancel — a customer who changes their mind is locked in.Note:
quoted → declinedis already implemented (initial report was incorrect). Onlyaccepted → declinedis missing.Repro Steps
requestedquoted, then toacceptedservice_request.transition_to("declined")— returnsfalseacceptedstateExpected Behavior
accepted → declinedshould be a valid transition. Either party should be able to back out after accepting but before paying.Environment
5391056(Add ServiceRequest model with status transition validation #178)Acceptance Criteria
accepted → declinedtransition is validaccepted → declineddocs/service-requests.mdupdated to reflectacceptedas implemented (was incorrectly noted as "planned for #179")Related
ldraney/landscaping-assistant #122— ServiceRequest modelldraney/landscaping-assistant #176— Property detail projects displayldraney/landscaping-assistant #179— Admin project workflow