Skip to content
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

[RHCLOUD-37053] Simplify email connector internal logic #3227

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

g-duval
Copy link
Contributor

@g-duval g-duval commented Jan 6, 2025

No description provided.

@g-duval g-duval force-pushed the RHCLOUD-37053_simplifyEmailConnectorInternalLogic branch 2 times, most recently from 05d1d03 to 2e432fc Compare January 6, 2025 14:59
.choice()
.when(shouldUseSimplifiedEmailManagement())
.process(emailManagementProcessor)
.endChoice()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Each when and otherwise cases have to be closed explicitly when a sub choice is involve.

@@ -182,8 +183,12 @@ public Optional<String> getRecipientsResolverTrustStoreType() {
return recipientsResolverTrustStoreType;
}

public boolean isEnableBopServiceWithSslChecks() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove constant config

@@ -105,16 +110,10 @@ public void configureRoutes() {
// Clear all the headers that may come from the previous route.
.removeHeaders("*")
.process(this.BOPRequestPreparer)
.choice().when(shouldUseBopEmailServiceWithSslChecks())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The involved config flag was turned into a constant a while ago.

@g-duval g-duval force-pushed the RHCLOUD-37053_simplifyEmailConnectorInternalLogic branch from 2e432fc to 348210e Compare January 6, 2025 15:46
@g-duval g-duval marked this pull request as ready for review January 6, 2025 16:13
Copy link
Member

@jessicarod7 jessicarod7 left a comment

Choose a reason for hiding this comment

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

Looks good, didn't see any implementation issues from my understanding. I'm getting some practice with doing reviews, so just a comment here :)

…onnector/email/EmailManagementProcessor.java

Co-authored-by: Jessica Rodriguez <[email protected]>
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