You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/06/30 13:11:12 UTC
[GitHub] [dolphinscheduler] kyoty commented on a change in pull request #5715: [Fix-5714] When updating the existing alarm instance, the creation time should't be updated
kyoty commented on a change in pull request #5715:
URL: https://github.com/apache/dolphinscheduler/pull/5715#discussion_r661458289
##########
File path: dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/AlertPluginInstanceServiceImpl.java
##########
@@ -109,12 +110,19 @@
@Override
public Map<String, Object> update(User loginUser, int pluginInstanceId, String instanceName, String pluginInstanceParams) {
- AlertPluginInstance alertPluginInstance = new AlertPluginInstance();
+ Map<String, Object> result = new HashMap<>();
+
+ AlertPluginInstance alertPluginInstance = alertPluginInstanceMapper.queryById(pluginInstanceId);
+
+ if (alertPluginInstance == null) {
+ putMsg(result, Status.QUERY_PLUGINS_RESULT_IS_NULL, pluginInstanceId);
Review comment:
Thanks @ruanwenjun .
My solution is too complicated, I have update what you said, please help to review again, thanks.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org