Browse Source

Merge branch 'dev' of https://github.com/apache/incubator-dolphinscheduler into dev-kill-yarn-job

pull/3/MERGE
Eights-LI 4 years ago
parent
commit
6672ac8f1f
  1. 6
      dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/EnterpriseWeChatUtils.java
  2. 6
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/DataSourceService.java
  3. 4
      dolphinscheduler-ui/src/js/module/components/crontab/source/_times/day.vue

6
dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/EnterpriseWeChatUtils.java

@ -104,11 +104,7 @@ public class EnterpriseWeChatUtils {
} }
Map<String, String> map = JSONUtils.toMap(resp); Map<String, String> map = JSONUtils.toMap(resp);
if (map != null) { return map == null ? null : map.get("access_token");
return map.get("access_token");
} else {
return null;
}
} finally { } finally {
httpClient.close(); httpClient.close();
} }

6
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/DataSourceService.java

@ -539,9 +539,9 @@ public class DataSourceService extends BaseService {
(type == DbType.HIVE || type == DbType.SPARK)) { (type == DbType.HIVE || type == DbType.SPARK)) {
parameterMap.put(Constants.PRINCIPAL, principal); parameterMap.put(Constants.PRINCIPAL, principal);
} }
if (other != null && !"".equals(other)) {
Map<String, String> map = JSONUtils.toMap(other); Map<String, String> map = JSONUtils.toMap(other);
if (map.size() > 0) { if (map != null) {
StringBuilder otherSb = new StringBuilder(); StringBuilder otherSb = new StringBuilder();
for (Map.Entry<String, String> entry: map.entrySet()) { for (Map.Entry<String, String> entry: map.entrySet()) {
otherSb.append(String.format("%s=%s%s", entry.getKey(), entry.getValue(), separator)); otherSb.append(String.format("%s=%s%s", entry.getKey(), entry.getValue(), separator));
@ -552,8 +552,6 @@ public class DataSourceService extends BaseService {
parameterMap.put(Constants.OTHER, otherSb); parameterMap.put(Constants.OTHER, otherSb);
} }
}
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
logger.info("parameters map:{}", JSONUtils.toJsonString(parameterMap)); logger.info("parameters map:{}", JSONUtils.toJsonString(parameterMap));
} }

4
dolphinscheduler-ui/src/js/module/components/crontab/source/_times/day.vue

@ -352,8 +352,8 @@
}, },
monthLastWeeksVal (val) { monthLastWeeksVal (val) {
if (this.radioDay === 'monthLastWeeks') { if (this.radioDay === 'monthLastWeeks') {
this.weekValue = `?` this.weekValue = val
this.dayValue = val this.dayValue = `?`
} }
}, },
WkmonthNumWeeksWeekVal (val) { WkmonthNumWeeksWeekVal (val) {

Loading…
Cancel
Save