Skip to content

Return element display name in get consent API - #304

Merged
hwupathum merged 1 commit into
wso2:masterfrom
hwupathum:consent-me-api
Jul 1, 2026
Merged

Return element display name in get consent API#304
hwupathum merged 1 commit into
wso2:masterfrom
hwupathum:consent-me-api

Conversation

@hwupathum

Copy link
Copy Markdown
Contributor

Related issue wso2/product-is#26859

This pull request enhances the ConsentedElement model to support a new displayName property, ensuring that both the backend model and the API specification can handle and expose a user-friendly display name for consent elements. The changes update the Java model, the OpenAPI definition, and the service logic to set and retrieve this new field.

Model and API enhancements:

  • Added a new displayName property to the ConsentedElement Java class, including getter, setter, and builder methods, and updated the equals, hashCode, and toString methods to incorporate this field. [1] [2] [3] [4]
  • Updated the OpenAPI definition (consent.yaml) to include the displayName property for consent elements, with appropriate description and example.

Service logic update:

  • Modified the UserConsentService to set the displayName property on ConsentedElement objects when available from the underlying data source.

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@hwupathum, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 31 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

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 reviews.

How do review limits work?

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

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, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0477803f-7b18-423a-ac8b-40515159dd0b

📥 Commits

Reviewing files that changed from the base of the PR and between 372e0d7 and 29f96e7.

⛔ Files ignored due to path filters (1)
  • components/org.wso2.carbon.identity.api.user.consent/org.wso2.carbon.identity.api.user.consent.v1/src/gen/java/org/wso2/carbon/identity/api/user/consent/v1/model/ConsentedElement.java is excluded by !**/gen/**
📒 Files selected for processing (2)
  • components/org.wso2.carbon.identity.api.user.consent/org.wso2.carbon.identity.api.user.consent.v1/src/main/java/org/wso2/carbon/identity/api/user/consent/v1/impl/core/UserConsentService.java
  • components/org.wso2.carbon.identity.api.user.consent/org.wso2.carbon.identity.api.user.consent.v1/src/main/resources/consent.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.

@hwupathum
hwupathum merged commit bb66799 into wso2:master Jul 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants