-
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] Clean up Scheduler logic #15198
[Improvement] Clean up Scheduler logic #15198
Conversation
803a427
to
1381229
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #15198 +/- ##
============================================
+ Coverage 37.89% 37.93% +0.03%
+ Complexity 4661 4638 -23
============================================
Files 1281 1281
Lines 44861 44600 -261
Branches 4864 4814 -50
============================================
- Hits 17000 16917 -83
+ Misses 26004 25831 -173
+ Partials 1857 1852 -5 ☔ View full report in Codecov by Sentry. |
...pi/src/main/java/org/apache/dolphinscheduler/api/controller/ProcessDefinitionController.java
Show resolved
Hide resolved
@Override | ||
public void deleteOtherRelation(Project project, Map<String, Object> result, ProcessDefinition processDefinition) { | ||
|
||
private void checkWorkflowIsNotEmpty(Long workflowDefinitionCode) { |
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.
NIP, I think it's better to check DAG dto.
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.
I added comment on this method, and will use another pr to add a public method for check if the dag is validated.
1381229
to
e4acb4d
Compare
...src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
Outdated
Show resolved
Hide resolved
…/api/service/impl/ProcessDefinitionServiceImpl.java Co-authored-by: 旺阳 <wang@lqwang.net>
SonarCloud Quality Gate failed. 0 Bugs 13.3% 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.
LGTM
Purpose of the pull request
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md