[CSM Portal][BE] fix: retire reopened case state, map to waiting_on_wso2 - #879
Conversation
…p to waiting_on_wso2 Map the SN 'reopened' label to waiting_on_wso2 in the entity service so the state is never emitted to consumers. Remove the CaseStateReopened domain constant, its validCaseState entry, and the outbound SN state ID. Remove the deprecated caseStateReopened branch from the BE nextStates state machine. Update OpenAPI spec to drop reopened from all state enums. Closes wso2-open-operations#2090 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe ChangesRemove reopened case state
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
'reopened'state label towaiting_on_wso2insn_case_service.goso the entity service never emitsreopenedto consumersCaseStateReopeneddomain constant, itsvalidCaseStateentry, and its outbound SN numeric state ID (1006) from the entity servicecaseStateReopenedbranch from the CSM backendnextStates()state machinereopenedfrom all OpenAPI spec state enums in the entity serviceCloses wso2-enterprise/digiops-cs#2090
Test plan
go test ./...inapps/csm-portal/backend)go build ./...)reopenedis returned aswaiting_on_wso2fromGET /cases/{id}andPOST /cases/searchnextStatesresponse includesreopened🤖 Generated with Claude Code
Summary by CodeRabbit
reopenedcase state. The support case workflow no longer supports this state, and the API will no longer accept it in case updates or searches. Existing cases in this state will be mapped to an alternative state.