You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "wolfboys (via GitHub)" <gi...@apache.org> on 2023/08/24 10:55:24 UTC
[GitHub] [incubator-streampark] wolfboys opened a new pull request, #2972: [Improve] settings improvement
wolfboys opened a new pull request, #2972:
URL: https://github.com/apache/incubator-streampark/pull/2972
[Improve] settings improvement
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-streampark] GOODBOY008 commented on a diff in pull request #2972: [Improve] settings improvement
Posted by "GOODBOY008 (via GitHub)" <gi...@apache.org>.
GOODBOY008 commented on code in PR #2972:
URL: https://github.com/apache/incubator-streampark/pull/2972#discussion_r1304193219
##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/bean/EmailConfig.java:
##########
@@ -52,20 +43,32 @@ public class EmailConfig {
/**
* Constructs the EmailConfig object from the given settings map.
*
- * @param settingMap a map of settings
* @return a new EmailConfig object that has its fields set according to the provided settings
*/
- public static EmailConfig fromSetting(Map<String, Setting> settingMap) {
+ public static EmailConfig fromSetting() {
try {
EmailConfig emailConfig = new EmailConfig();
- emailConfig.setSmtpHost(settingMap.get(KEY_ALERT_EMAIL_HOST).getSettingValue());
+
+ emailConfig.setSmtpHost(
+ SettingService.SETTINGS.get(SettingService.KEY_ALERT_EMAIL_HOST).getSettingValue());
Review Comment:
`SettingService` is not a bean. So `SETTINGS` always empty.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-streampark] GOODBOY008 merged pull request #2972: [Improve] settings improvement
Posted by "GOODBOY008 (via GitHub)" <gi...@apache.org>.
GOODBOY008 merged PR #2972:
URL: https://github.com/apache/incubator-streampark/pull/2972
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-streampark] wolfboys commented on pull request #2972: [Improve] settings improvement
Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on PR #2972:
URL: https://github.com/apache/incubator-streampark/pull/2972#issuecomment-1691458053
cc @GOODBOY008 PTAL, thx
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org