-
Notifications
You must be signed in to change notification settings - Fork 5k
[Improvement#5083][API] Refactored data source creation #5116
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#5083][API] Refactored data source creation #5116
Conversation
daa8dc8 to
df5d6d8
Compare
Codecov Report
@@ Coverage Diff @@
## dev #5116 +/- ##
============================================
+ Coverage 47.42% 47.62% +0.20%
- Complexity 3750 3806 +56
============================================
Files 570 592 +22
Lines 24116 24259 +143
Branches 2806 2791 -15
============================================
+ Hits 11437 11554 +117
- Misses 11616 11644 +28
+ Partials 1063 1061 -2
Continue to review full report at Codecov.
|
7c8b97f to
39ac35d
Compare
39ac35d to
d0e31fe
Compare
|
@zhuangchong please take a look.thx |
|
@ruanwenjun Hi, sorry for too late review, could you solve the |
0799404 to
8e4b568
Compare
...-api/src/main/java/org/apache/dolphinscheduler/api/utils/datasource/DatasourceParamUtil.java
Outdated
Show resolved
Hide resolved
.../main/java/org/apache/dolphinscheduler/api/utils/datasource/AbstractDatasourceProcessor.java
Outdated
Show resolved
Hide resolved
.../main/java/org/apache/dolphinscheduler/api/utils/datasource/AbstractDatasourceProcessor.java
Outdated
Show resolved
Hide resolved
7138ae8 to
c844b66
Compare
d6c89a0 to
98a1eef
Compare
|
@zhuangchong Hi, Zhaungchong, I have re-modified according to your suggestion, please help me review. And there seems some problem with code coverage calculate, some unit test are not added to the |
ok, let me take a look, please solve code coverage and code smell. |
cb46d1f to
c2c720a
Compare
* Refact create/ update datasource API
c2c720a to
71cc499
Compare
71cc499 to
e0c38be
Compare
Codecov Report
@@ Coverage Diff @@
## dev #5116 +/- ##
============================================
- Coverage 48.59% 48.34% -0.25%
- Complexity 3814 3869 +55
============================================
Files 570 592 +22
Lines 24154 24469 +315
Branches 2801 2780 -21
============================================
+ Hits 11737 11829 +92
- Misses 11336 11567 +231
+ Partials 1081 1073 -8
Continue to review full report at Codecov.
|
|
Kudos, SonarCloud Quality Gate passed! |
zhuangchong
left a comment
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.
CalvinKirs
left a comment
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
Increasing code scalability, make it ease to add a new datasource type for developer. More detail can see #5083
This also closes #5083
Brief change log
Change the create/update datasource method in DataSourceController
Verify this pull request
Add Unit test and can be tested from ui.