SbloodyS commented on code in PR #10201:
URL: https://github.com/apache/dolphinscheduler/pull/10201#discussion_r879208168
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProcessDefinitionController.java:
##########
@@ -637,25 +637,25 @@ public Result
batchDeleteProcessDefinitionByCodes(@ApiIgnore @RequestAttribute(v
@ApiParam(name =
"projectCode", value = "PROJECT_CODE", required = true) @PathVariable long
projectCode,
@RequestParam("codes")
String codes) {
Map<String, Object> result = new HashMap<>();
- List<String> deleteFailedCodeList = new ArrayList<>();
+ Set<String> deleteFailedCodeSet = new HashSet<>();
Review Comment:
I think this could not solve this problem. The reason for this error is that
the current user does not have permissions of the workflow definition created
by other users. Currently, only administrator users can delete workflow
definitions created by other users.
https://github.com/apache/dolphinscheduler/blob/41a318381067b285a03001e9ef43d8eaa107ff6a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java#L707-L710
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]