Skip to content

Introduce new property to track runtime claims in ClaimMapping object.#8155

Open
ZiyamSanthosh wants to merge 1 commit into
wso2:masterfrom
ZiyamSanthosh:master-session-opt-v2
Open

Introduce new property to track runtime claims in ClaimMapping object.#8155
ZiyamSanthosh wants to merge 1 commit into
wso2:masterfrom
ZiyamSanthosh:master-session-opt-v2

Conversation

@ZiyamSanthosh

Copy link
Copy Markdown
Contributor

This pull request introduces support for a new claim property called "runtimeValue" in the claim mapping model and updates the relevant WSDL files to include this property. The main goal is to allow claims to be marked as runtime values, which can be used to indicate that their values are determined at runtime.

Model enhancements:

  • Added a new boolean field isRuntimeValue (with XML element name RuntimeClaim) to the ClaimMapping class, along with corresponding getter and setter methods. [1] [2]
  • Updated the static build method in ClaimMapping to parse the RuntimeClaim XML element and set the isRuntimeValue property accordingly.

Service contract updates:

  • Added a new runtimeValue boolean element to the claim mapping sequences in the following WSDL files to expose the property in service interfaces:
    • IdentityDefaultSeqManagementService.wsdl
    • IdentityApplicationManagementService.wsdl
    • IdentityProviderMgtService.wsdl

Comment on lines +153 to +155
if ("RuntimeClaim".equals(elementName)) {
claimMapping.setRuntimeValue(Boolean.parseBoolean(element.getText()));
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log Improvement Suggestion No: 1

Suggested change
if ("RuntimeClaim".equals(elementName)) {
claimMapping.setRuntimeValue(Boolean.parseBoolean(element.getText()));
}
if ("RuntimeClaim".equals(elementName)) {
claimMapping.setRuntimeValue(Boolean.parseBoolean(element.getText()));
log.debug("Runtime claim value set to: " + element.getText());
}

@wso2-engineering wso2-engineering Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI Agent Log Improvement Checklist

⚠️ Warning: AI-Generated Review Comments

  • The log-related comments and suggestions in this review were generated by an AI tool to assist with identifying potential improvements. Purpose of reviewing the code for log improvements is to improve the troubleshooting capabilities of our products.
  • Please make sure to manually review and validate all suggestions before applying any changes. Not every code suggestion would make sense or add value to our purpose. Therefore, you have the freedom to decide which of the suggestions are helpful.

✅ Before merging this pull request:

  • Review all AI-generated comments for accuracy and relevance.
  • Complete and verify the table below. We need your feedback to measure the accuracy of these suggestions and the value they add. If you are rejecting a certain code suggestion, please mention the reason briefly in the suggestion for us to capture it.
Comment Accepted (Y/N) Reason
#### Log Improvement Suggestion No: 1

@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 9edf4186-725f-4b99-a171-bb6acd40017e

📥 Commits

Reviewing files that changed from the base of the PR and between 0ebc488 and d13d218.

📒 Files selected for processing (4)
  • components/application-mgt/org.wso2.carbon.identity.application.common/src/main/java/org/wso2/carbon/identity/application/common/model/ClaimMapping.java
  • service-stubs/identity/org.wso2.carbon.identity.application.default.authentication.sequence.mgt.stub/src/main/resources/IdentityDefaultSeqManagementService.wsdl
  • service-stubs/identity/org.wso2.carbon.identity.application.mgt.stub/src/main/resources/IdentityApplicationManagementService.wsdl
  • service-stubs/identity/org.wso2.carbon.idp.mgt.stub/src/main/resources/IdentityProviderMgtService.wsdl

📝 Walkthrough

Walkthrough

A new optional boolean field runtimeValue/RuntimeClaim (default false) is added to the ClaimMapping Java model class, including XML parsing in the build factory method and public getter/setter accessors. Three WSDL service stub schemas are updated to include the matching optional runtimeValue boolean element in the ClaimMapping complex type.

Changes

RuntimeClaim field on ClaimMapping

Layer / File(s) Summary
ClaimMapping Java field, XML parsing, and accessors
components/application-mgt/org.wso2.carbon.identity.application.common/src/main/java/org/wso2/carbon/identity/application/common/model/ClaimMapping.java
Declares isRuntimeValue boolean field (JAXB-mapped, default false), extends build(OMElement) to parse <RuntimeClaim>, and adds isRuntimeValue() / setRuntimeValue(boolean) public accessors. The field is not included in equals/hashCode.
WSDL stub schemas updated with runtimeValue
service-stubs/identity/org.wso2.carbon.identity.application.default.authentication.sequence.mgt.stub/src/main/resources/IdentityDefaultSeqManagementService.wsdl, service-stubs/identity/org.wso2.carbon.identity.application.mgt.stub/src/main/resources/IdentityApplicationManagementService.wsdl, service-stubs/identity/org.wso2.carbon.idp.mgt.stub/src/main/resources/IdentityProviderMgtService.wsdl
Inserts an optional xs:boolean element runtimeValue (minOccurs="0") into the ClaimMapping complex type sequence in all three WSDL stub schemas. No operations, messages, or bindings are changed.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description addresses the main objectives and changes but lacks several required template sections including Purpose/Goals, Approach, User stories, Release notes, Documentation, Testing details, Security checks, and Test environment. Add missing sections from the template: Purpose (with issue links), Goals, Approach, User stories, Release note, Documentation impact, Testing/Security checks, and Test environment details.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely describes the main change: introducing a new property to track runtime claims in the ClaimMapping object.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

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

@jenkins-is-staging

Copy link
Copy Markdown

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/27508312025

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.86%. Comparing base (0c4bdc2) to head (d13d218).
⚠️ Report is 62 commits behind head on master.

Files with missing lines Patch % Lines
...dentity/application/common/model/ClaimMapping.java 0.00% 6 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #8155      +/-   ##
============================================
+ Coverage     52.77%   52.86%   +0.09%     
- Complexity    20809    20916     +107     
============================================
  Files          2173     2186      +13     
  Lines        128465   129432     +967     
  Branches      19098    19272     +174     
============================================
+ Hits          67792    68429     +637     
- Misses        52392    52668     +276     
- Partials       8281     8335      +54     
Flag Coverage Δ
unit 38.12% <0.00%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jenkins-is-staging

Copy link
Copy Markdown

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/27508312025
Status: failure

1 similar comment
@jenkins-is-staging

Copy link
Copy Markdown

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/27508312025
Status: failure

@jenkins-is-staging

Copy link
Copy Markdown

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/27510598868

@jenkins-is-staging

Copy link
Copy Markdown

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/27508312025

@jenkins-is-staging

Copy link
Copy Markdown

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/27510598868
Status: failure

@jenkins-is-staging

Copy link
Copy Markdown

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/27508312025
Status: failure

@jenkins-is-staging

Copy link
Copy Markdown

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/27508312025

@jenkins-is-staging

Copy link
Copy Markdown

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/27508312025
Status: failure

@jenkins-is-staging

Copy link
Copy Markdown

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/27819062594

@jenkins-is-staging

Copy link
Copy Markdown

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/27819062594
Status: failure

@jenkins-is-staging

Copy link
Copy Markdown

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/27819062594

@jenkins-is-staging

Copy link
Copy Markdown

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/27819062594
Status: failure

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