-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bugfix/email security object absence #12
base: main
Are you sure you want to change the base?
Conversation
Reviewer's Guide by SourceryThis pull request introduces a check for the existence of a security object named Sequence diagram for rendering email notes in ChartNotesAjax.jspsequenceDiagram
participant JSP as ChartNotesAjax.jsp
participant EmailComposeManager
participant SecurityInfoManager
participant SecObjectNameDao
JSP->>EmailComposeManager: isEmailSecurityObjectAvailable()
EmailComposeManager->>SecurityInfoManager: getSecurityObject("_email")
SecurityInfoManager->>SecObjectNameDao: find("_email")
SecObjectNameDao-->>SecurityInfoManager: SecObjectName or null
SecurityInfoManager-->>EmailComposeManager: Optional<SecObjectName>
EmailComposeManager-->>JSP: boolean (isPresent())
alt isPresent() == true
JSP->>JSP: Render email note
else isPresent() == false
JSP->>JSP: Skip rendering email note
end
Sequence diagram for adding hidden email properties in eform pagessequenceDiagram
participant JSP as eform page (efmformadd_data.jsp or efmshowform_data.jsp)
participant EmailComposeManager
participant SecurityInfoManager
participant SecObjectNameDao
JSP->>EmailComposeManager: isEmailSecurityObjectAvailable()
EmailComposeManager->>SecurityInfoManager: getSecurityObject("_email")
SecurityInfoManager->>SecObjectNameDao: find("_email")
SecObjectNameDao-->>SecurityInfoManager: SecObjectName or null
SecurityInfoManager-->>EmailComposeManager: Optional<SecObjectName>
EmailComposeManager-->>JSP: boolean (isPresent())
alt isPresent() == true
JSP->>EmailComposeManager: hasValidRecipient()
JSP->>EmailComposeManager: getEmailConsentStatus()
JSP->>JSP: Add hidden email properties
else isPresent() == false
JSP->>JSP: Skip adding hidden email properties
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @lacarmen - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider consolidating the
isEmailSecurityObjectAvailable
checks into a single utility method to avoid repetition. - The
getSecurityObject
method inSecurityInfoManagerImpl
could be simplified to directly returnOptional.ofNullable(secObjectNameDao.find(objectName))
.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
4ce686c
to
a36f5b8
Compare
Summary by Sourcery
Bug Fixes: