[CSM Portal][BE] align with entity service PR #934: case type rename and nullable fields - #938
Conversation
… case type rename and nullable fields - Rename type enum value support→case in CaseCreatePayload and CaseSearchFilters - Add type and engagementType nullable fields to CaseView - Add catalog, catalogItem, assignedTeam, conversation nullable EntityRef fields to CaseView - Mark deployment, deployedProduct, product as nullable in CaseView - Add type field and mark deployment, deployedProduct, product as nullable in CaseSearchView - Update test payload and docs to use type: "case" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe PR renames the case type enum value from ChangesCase Type Rename and Schema Updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ 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 |
…support->case; nullable CaseView refs) - Rename case type value 'support' -> 'case' across BeCaseType, BeCaseCreatePayload (POST /cases), the case-type filter (caseType.ts: label 'Support' -> 'Case'), and CsmCaseCreatePage. Matches the entity PR wso2-open-operations#934 rename. - BeCaseView: add nullable type/engagementType and catalog/catalogItem/ assignedTeam/conversation EntityRefs; mark deployment/deployedProduct nullable. - BeCaseSearchView: add 'type'; mark deployment/deployedProduct nullable. Map it onto the row (caseType: c.type). Pure contract alignment. NOTE: depends on BE PR wso2-open-operations#938 — merge this after it, or the cases list/create will send the new 'case' value to a BE that still expects 'support'.
…support->case; nullable CaseView refs) - Rename case type value 'support' -> 'case' across BeCaseType, BeCaseCreatePayload (POST /cases), the case-type filter (caseType.ts: label 'Support' -> 'Case'), and CsmCaseCreatePage. Matches the entity PR wso2-open-operations#934 rename. - BeCaseView: add nullable type/engagementType and catalog/catalogItem/ assignedTeam/conversation EntityRefs; mark deployment/deployedProduct nullable. - BeCaseSearchView: add 'type'; mark deployment/deployedProduct nullable. Map it onto the row (caseType: c.type). Pure contract alignment. NOTE: depends on BE PR wso2-open-operations#938 — merge this after it, or the cases list/create will send the new 'case' value to a BE that still expects 'support'.
[CSM Portal] Operations tab + SR creation; align FE with BE #938; stop calling missing /csm/dashboard
Summary
Aligns the CSM portal BFF with entity service PR #934 (improve case API response consistency for ServiceNow data source).
typeenum valuesupport→caseinCaseCreatePayloadandCaseSearchFilterstype(nullable) andengagementType(nullable) fields toCaseViewcatalog,catalogItem,assignedTeam,conversationas nullableEntityReffields toCaseViewdeployment,deployedProduct,productas nullable inCaseViewtypefield and markdeployment,deployedProduct,productas nullable inCaseSearchView"type":"case") and docs accordinglyTest plan
go test ./...passes (verified via pre-push hook)openapi.yamlupdated:CaseCreatePayload.typeenum,CaseSearchFilters.typesenum,CaseViewandCaseSearchViewresponse schemasPOST /caseswith"type":"case"forwards correctly🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Documentation