Skip to content

Conversation

@SujanSanjula96
Copy link
Contributor

@SujanSanjula96 SujanSanjula96 commented Nov 11, 2025

Proposed changes in this pull request

$Subject since it is handled in the OIDC logout endpoint

@SujanSanjula96 SujanSanjula96 marked this pull request as draft November 11, 2025 12:11
Comment on lines 65 to +69
if (StringUtils.equals(event.getEventName(), EventName.SESSION_TERMINATE.name())) {
Object context = event.getEventProperties().get(EventProperty.CONTEXT);
if (context != null) {
return;
}
Copy link
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 (StringUtils.equals(event.getEventName(), EventName.SESSION_TERMINATE.name())) {
Object context = event.getEventProperties().get(EventProperty.CONTEXT);
if (context != null) {
return;
}
if (StringUtils.equals(event.getEventName(), EventName.SESSION_TERMINATE.name())) {
Object context = event.getEventProperties().get(EventProperty.CONTEXT);
if (context != null) {
if (LOG.isDebugEnabled()) {
LOG.debug("Skipping OIDC logout handling as context is present in session terminate event");
}
return;
}

Copy link
Contributor

@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

@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.98%. Comparing base (d01105a) to head (dba2c5c).
⚠️ Report is 51 commits behind head on master.

Files with missing lines Patch % Lines
...y/oidc/session/handler/OIDCLogoutEventHandler.java 0.00% 3 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    #2973      +/-   ##
============================================
- Coverage     58.38%   56.98%   -1.41%     
- Complexity     9100     9429     +329     
============================================
  Files           669      669              
  Lines         50309    53402    +3093     
  Branches      11397    12223     +826     
============================================
+ Hits          29375    30431    +1056     
- Misses        16880    18704    +1824     
- Partials       4054     4267     +213     
Flag Coverage Δ
unit 41.17% <0.00%> (+0.29%) ⬆️

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.

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.

1 participant