Skip to content

[CSM Portal][BE] Add POST /security-report-analyses/search and POST /engagements/search endpoints - #910

Merged
cloby99 merged 1 commit into
wso2-open-operations:v2from
Rashmika998:task/csm-portal-be-entity-endpoints-906-908
Jun 22, 2026
Merged

cloby99 merged 1 commit into
wso2-open-operations:v2from
Rashmika998:task/csm-portal-be-entity-endpoints-906-908

Conversation

@Rashmika998

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • POST /security-report-analyses/search returns 200 with valid payload (ServiceNow data source)
  • POST /engagements/search returns 200 with valid payload (ServiceNow data source)
  • Both endpoints return 401 when called without a valid JWT
  • Both endpoints return 503 when Postgres data source is active
  • Both endpoints return 400 on invalid JSON body
  • All existing backend tests still pass (make test)

🤖 Generated with Claude Code

…engagements/search endpoints

Mirrors entity service PRs wso2-open-operations#906 and wso2-open-operations#908: adds BFF handler, entity client methods, routes, and OpenAPI spec for both new case-type search endpoints.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Rashmika998, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 40 minutes and 4 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 412c6d4e-0afd-4d13-bdb5-110c5697874b

📥 Commits

Reviewing files that changed from the base of the PR and between 5223ab4 and a9f2a02.

📒 Files selected for processing (5)
  • apps/csm-portal/backend/cmd/server/main.go
  • apps/csm-portal/backend/internal/entity/entity.go
  • apps/csm-portal/backend/internal/handler/cases.go
  • apps/csm-portal/backend/internal/handler/helpers_test.go
  • apps/csm-portal/backend/openapi.yaml
✨ 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.

@Rashmika998 Rashmika998 self-assigned this Jun 22, 2026
@Rashmika998 Rashmika998 added Type/Improvement Marks enhancements or improvements to existing features Area/Backend App/CSM Portal labels Jun 22, 2026
@cloby99
cloby99 merged commit 45ea9e4 into wso2-open-operations:v2 Jun 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

App/CSM Portal Area/Backend Type/Improvement Marks enhancements or improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants