Skip to content
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

[Feature][task-plugins-12820] azure azure-sql datasource plugins #13209

Merged
merged 20 commits into from
Dec 19, 2022

Conversation

Tianqi-Dotes
Copy link
Member

Purpose of the pull request

#12820
supports 5 auth mode to azure sql

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

@Tianqi-Dotes Tianqi-Dotes added the feature new feature label Dec 17, 2022
@Tianqi-Dotes Tianqi-Dotes self-assigned this Dec 17, 2022
@Tianqi-Dotes Tianqi-Dotes added this to the 3.2.0 milestone Dec 17, 2022
@Tianqi-Dotes Tianqi-Dotes added the 3.2.0 for 3.2.0 version label Dec 17, 2022
azureSQLDatasourceParamDTO.setDatabase(connectionParams.getDatabase());
azureSQLDatasourceParamDTO.setUserName(connectionParams.getUser());
azureSQLDatasourceParamDTO.setOther(connectionParams.getOther());
azureSQLDatasourceParamDTO.setPort(Integer.parseInt(hostPortArray[0].split(Constants.COLON)[1]));

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException

Potential uncaught 'java.lang.NumberFormatException'.
@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2022

Codecov Report

Merging #13209 (40e2115) into dev (f233023) will increase coverage by 0.05%.
The diff coverage is 28.74%.

@@             Coverage Diff              @@
##                dev   #13209      +/-   ##
============================================
+ Coverage     39.35%   39.40%   +0.05%     
- Complexity     4276     4313      +37     
============================================
  Files          1067     1077      +10     
  Lines         40491    40814     +323     
  Branches       4662     4683      +21     
============================================
+ Hits          15934    16082     +148     
- Misses        22770    22939     +169     
- Partials       1787     1793       +6     
Impacted Files Coverage Δ
...cheduler/common/constants/DataSourceConstants.java 0.00% <ø> (ø)
.../org/apache/dolphinscheduler/spi/enums/DbType.java 0.00% <0.00%> (ø)
.../datasource/azuresql/AzureSQLDataSourceClient.java 4.00% <4.00%> (ø)
...ce/azuresql/param/AzureSQLDataSourceProcessor.java 25.45% <25.45%> (ø)
...datasource/azuresql/AzureSQLDataSourceChannel.java 50.00% <50.00%> (ø)
...rce/azuresql/param/AzureSQLDataSourceParamDTO.java 50.00% <50.00%> (ø)
...rce/azuresql/AzureSQLDataSourceChannelFactory.java 66.66% <66.66%> (ø)
...in/datasource/azuresql/param/AzureSQLAuthMode.java 73.68% <73.68%> (ø)
...source/azuresql/param/AzureSQLConnectionParam.java 100.00% <100.00%> (ø)
...duler/server/master/processor/queue/TaskEvent.java 60.00% <0.00%> (-9.24%) ⬇️
... and 25 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

caishunfeng
caishunfeng previously approved these changes Dec 18, 2022
Copy link
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some nip

@caishunfeng
Copy link
Contributor

@Tianqi-Dotes please add the UI and doc too.

@caishunfeng
Copy link
Contributor

image

Need to do code format.

@Tianqi-Dotes
Copy link
Member Author

@Tianqi-Dotes please add the UI and doc too.
UI PR:
#13200
DOC will be submit another PR

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 20 Code Smells

28.3% 28.3% Coverage
0.0% 0.0% Duplication

@caishunfeng caishunfeng merged commit f0dd4f0 into apache:dev Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.2.0 for 3.2.0 version backend feature new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants