-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Improvement][API] Support to check if the worker group has been used by any tasks or schedulers when users delete or rename it. #14893
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #14893 +/- ##
============================================
- Coverage 38.80% 38.80% -0.01%
- Complexity 4584 4586 +2
============================================
Files 1232 1232
Lines 43318 43343 +25
Branches 4783 4788 +5
============================================
+ Hits 16810 16819 +9
- Misses 24650 24663 +13
- Partials 1858 1861 +3
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
...r-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/WorkerGroupServiceImpl.java
Show resolved
Hide resolved
...r-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/WorkerGroupServiceImpl.java
Show resolved
Hide resolved
...r-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/WorkerGroupServiceImpl.java
Show resolved
Hide resolved
.map(schedule -> processDefinitionMapper.queryByCode(schedule.getProcessDefinitionCode()).getName()) | ||
.collect(Collectors.toList()); | ||
|
||
putMsg(result, Status.WORKER_GROUP_DEPENDENT_SCHEDULER_EXISTS, schedules.size(), processNames); |
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.
processNames? The above taskNames use JSON serialization, please choose a method and keep it consistent.
SonarCloud Quality Gate failed. 0 Bugs 46.7% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
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.
+1
Purpose of the pull request
This PR will close #14864 .
Brief change log
Verify this pull request
This change added tests and can be verified as follows:
The test results are as follows: