-
Notifications
You must be signed in to change notification settings - Fork 72
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
base: master
Are you sure you want to change the base?
[RHCLOUD-37053] Simplify email connector internal logic #3227
Conversation
05d1d03
to
2e432fc
Compare
.choice() | ||
.when(shouldUseSimplifiedEmailManagement()) | ||
.process(emailManagementProcessor) | ||
.endChoice() |
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.
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() { |
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.
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()) |
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.
The involved config flag was turned into a constant a while ago.
2e432fc
to
348210e
Compare
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.
Looks good, didn't see any implementation issues from my understanding. I'm getting some practice with doing reviews, so just a comment here :)
...l/src/main/java/com/redhat/cloud/notifications/connector/email/EmailManagementProcessor.java
Outdated
Show resolved
Hide resolved
…onnector/email/EmailManagementProcessor.java Co-authored-by: Jessica Rodriguez <[email protected]>
No description provided.