Skip to content

Conversation

Thisara-Welmilla
Copy link
Contributor

No description provided.

Comment on lines +103 to +105
// If the previous grant type is not a refresh token, then check if it's a consent token or not.
if (OIDCClaimUtil.isConsentBasedClaimFilteringApplicable(previousGrantType)) {
accessTokenDO.setIsConsentedToken(true);

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 2

Suggested change
// If the previous grant type is not a refresh token, then check if it's a consent token or not.
if (OIDCClaimUtil.isConsentBasedClaimFilteringApplicable(previousGrantType)) {
accessTokenDO.setIsConsentedToken(true);
// If the previous grant type is not a refresh token, then check if it's a consent token or not.
if (OIDCClaimUtil.isConsentBasedClaimFilteringApplicable(previousGrantType)) {
if (log.isDebugEnabled()) {
log.debug("Previous grant type " + previousGrantType + " requires consent-based claim filtering");
}
accessTokenDO.setIsConsentedToken(true);

Copy link

@wso2-engineering wso2-engineering bot left a comment

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
#### Log Improvement Suggestion No: 2
#### Log Improvement Suggestion No: 3
#### Log Improvement Suggestion No: 4
#### Log Improvement Suggestion No: 5
#### Log Improvement Suggestion No: 6
#### Log Improvement Suggestion No: 7
#### Log Improvement Suggestion No: 8
#### Log Improvement Suggestion No: 9
#### Log Improvement Suggestion No: 10
#### Log Improvement Suggestion No: 11
#### Log Improvement Suggestion No: 12
#### Log Improvement Suggestion No: 13
#### Log Improvement Suggestion No: 14
#### Log Improvement Suggestion No: 15
#### Log Improvement Suggestion No: 16
#### Log Improvement Suggestion No: 17
#### Log Improvement Suggestion No: 18
#### Log Improvement Suggestion No: 19
#### Log Improvement Suggestion No: 20
#### Log Improvement Suggestion No: 21
#### Log Improvement Suggestion No: 22

Copy link

codecov bot commented Sep 30, 2025

Codecov Report

❌ Patch coverage is 24.65753% with 55 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.30%. Comparing base (0f245af) to head (46aff68).

Files with missing lines Patch % Lines
...carbon/identity/oauth2/dao/AccessTokenDAOImpl.java 17.94% 30 Missing and 2 partials ⚠️
...enprocessor/DefaultRefreshTokenGrantProcessor.java 0.00% 9 Missing ⚠️
...dlers/grant/AbstractAuthorizationGrantHandler.java 20.00% 2 Missing and 2 partials ⚠️
...2/carbon/identity/openidconnect/OIDCClaimUtil.java 50.00% 2 Missing and 2 partials ⚠️
...2/authz/handlers/util/ResponseTypeHandlerUtil.java 40.00% 1 Missing and 2 partials ⚠️
...openidconnect/AbstractUserInfoResponseBuilder.java 0.00% 3 Missing ⚠️

❌ Your patch check has failed because the patch coverage (24.65%) 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    #2941      +/-   ##
============================================
- Coverage     58.31%   58.30%   -0.02%     
+ Complexity     9098     9052      -46     
============================================
  Files           669      669              
  Lines         50263    50221      -42     
  Branches      11396    11368      -28     
============================================
- Hits          29313    29279      -34     
- Misses        16915    16916       +1     
+ Partials       4035     4026       -9     
Flag Coverage Δ
unit 40.76% <24.65%> (+0.04%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

@jenkins-is-staging
Copy link

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

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