-
Notifications
You must be signed in to change notification settings - Fork 239
Fixm/multi email separate #1078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fixm/multi email separate #1078
Conversation
| boolean supportMultipleMobileNumbers = | ||
| Utils.isMultiEmailsAndMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | ||
| Utils.isMultiMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); |
There was a problem hiding this comment.
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
| boolean supportMultipleMobileNumbers = | |
| Utils.isMultiEmailsAndMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| Utils.isMultiMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| boolean supportMultipleMobileNumbers = | |
| Utils.isMultiMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| if (log.isDebugEnabled()) { | |
| log.debug("Multiple mobile numbers support is " + (supportMultipleMobileNumbers ? "enabled" : "disabled") + " for user: " + user.getLoggableUserId()); | |
| } |
| boolean supportMultipleMobileNumbers = | ||
| Utils.isMultiEmailsAndMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | ||
| Utils.isMultiMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); |
There was a problem hiding this comment.
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
| boolean supportMultipleMobileNumbers = | |
| Utils.isMultiEmailsAndMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| Utils.isMultiMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| boolean supportMultipleMobileNumbers = | |
| Utils.isMultiMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| if (log.isDebugEnabled()) { | |
| log.debug("Checking multiple mobile numbers support for claim update. Support enabled: " + supportMultipleMobileNumbers); | |
| } |
| boolean supportMultipleEmails = | ||
| Utils.isMultiEmailsAndMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | ||
| Utils.isMultiEmailAddressesPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log Improvement Suggestion No: 3
| boolean supportMultipleEmails = | |
| Utils.isMultiEmailsAndMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| Utils.isMultiEmailAddressesPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| boolean supportMultipleEmails = | |
| Utils.isMultiEmailAddressesPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| if (log.isDebugEnabled()) { | |
| log.debug("Multiple email addresses support: " + supportMultipleEmails + " for user: " + user.getLoggableUserId()); | |
| } |
| boolean supportMultipleEmails = | ||
| Utils.isMultiEmailsAndMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | ||
| Utils.isMultiEmailAddressesPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log Improvement Suggestion No: 4
| boolean supportMultipleEmails = | |
| Utils.isMultiEmailsAndMobileNumbersPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| Utils.isMultiEmailAddressesPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| boolean supportMultipleEmails = | |
| Utils.isMultiEmailAddressesPerUserEnabled(user.getTenantDomain(), user.getUserStoreDomain()); | |
| if (log.isDebugEnabled()) { | |
| log.debug("Checking multiple email support for email update. Support enabled: " + supportMultipleEmails); | |
| } |
| IdentityGovernanceService identityGovernanceService = IdentityRecoveryServiceDataHolder.getInstance() | ||
| .getIdentityGovernanceService(); | ||
| connectorConfigs = identityGovernanceService.getConfiguration(new String[]{key,}, tenantDomain); | ||
| connectorConfigs = identityGovernanceService.getConfiguration(new String[]{key}, tenantDomain); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log Improvement Suggestion No: 5
| connectorConfigs = identityGovernanceService.getConfiguration(new String[]{key}, tenantDomain); | |
| connectorConfigs = identityGovernanceService.getConfiguration(new String[]{key}, tenantDomain); | |
| if (log.isDebugEnabled()) { | |
| log.debug("Retrieved sign up configuration for key: " + key + " in tenant: " + tenantDomain); | |
| } |
| isEmailVerificationOnUpdateEnabled = isEmailVerificationOnUpdateEnabled(tenantDomain); | ||
| } catch (IdentityEventException e) { | ||
| log.error("Error while retrieving email verification on update config.", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log Improvement Suggestion No: 6
| isEmailVerificationOnUpdateEnabled = isEmailVerificationOnUpdateEnabled(tenantDomain); | |
| } catch (IdentityEventException e) { | |
| log.error("Error while retrieving email verification on update config.", e); | |
| } catch (IdentityEventException e) { | |
| log.error("Error while retrieving email verification on update config for tenant: " + tenantDomain); | |
| return false; |
There was a problem hiding this 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
- 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.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1078 +/- ##
============================================
+ Coverage 54.34% 54.36% +0.01%
- Complexity 3134 3145 +11
============================================
Files 316 316
Lines 21485 21524 +39
Branches 4103 4108 +5
============================================
+ Hits 11677 11701 +24
- Misses 8318 8329 +11
- Partials 1490 1494 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Proposed changes in this pull request
[List all changes you want to add here. If you fixed an issue, please
add a reference to that issue as well.]
When should this PR be merged
[Please describe any preconditions that need to be addressed before we
can merge this pull request.]
Follow up actions
[List any possible follow-up actions here; for instance, testing data
migrations, software that we need to install on staging and production
environments.]
Checklist (for reviewing)
General
Functionality
Code
Tests
Security
Documentation