Skip to content

[Customer portal][BE] Add number to change request object in case response - #583

Merged
cloby99 merged 1 commit into
wso2-open-operations:mainfrom
Rashmika998:dev-app-customer-portal
Apr 24, 2026
Merged

cloby99 merged 1 commit into
wso2-open-operations:mainfrom
Rashmika998:dev-app-customer-portal

Conversation

@Rashmika998

@Rashmika998 Rashmika998 commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Description

  • Add number to the change request in the case response.

Summary by CodeRabbit

  • Bug Fixes
    • Change request numbers now properly appear in system responses, improving data completeness for affected queries.

@coderabbitai

coderabbitai Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c584a747-3814-438a-8792-716cf931c32e

📥 Commits

Reviewing files that changed from the base of the PR and between 6f80ae1 and 46f4a59.

📒 Files selected for processing (1)
  • apps/customer-portal/backend/utils.bal

📝 Walkthrough

Walkthrough

The mapCaseResponse function in the backend utilities now extracts and includes a number field from the selected reference item when mapping changeRequests. A minor comment formatting adjustment was also applied to mapCaseActivitySummaryResponse.

Changes

Cohort / File(s) Summary
Case Response Mapping Enhancement
apps/customer-portal/backend/utils.bal
Added number field extraction from item?.number to the changeRequests mapping in mapCaseResponse. Minor comment formatting adjustment in mapCaseActivitySummaryResponse.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • cloby99
  • yuk7hi

Poem

🐰 A number field hops into view,
In changeRequests, shiny and new,
The mapping grows, one piece at a time,
Each addition makes code more sublime! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloby99
cloby99 merged commit 10b9631 into wso2-open-operations:main Apr 24, 2026
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants