Skip to content

Conversation

@Tianqi-Dotes
Copy link
Member

Purpose of the pull request

add redshift auth mode to get connection by access key
#13039

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 self-assigned this Jan 11, 2023
@Tianqi-Dotes Tianqi-Dotes added feature new feature 3.2.0 for 3.2.0 version labels Jan 11, 2023
@Tianqi-Dotes Tianqi-Dotes added this to the 3.2.0 milestone Jan 11, 2023
@github-actions github-actions bot added the UI ui and front end related label Jan 12, 2023
redshiftDatasourceParamDTO.setMode(connectionParams.getMode());
redshiftDatasourceParamDTO.setDbUser(connectionParams.getDbUser());
if (connectionParams.getMode().equals(RedshiftAuthMode.PASSWORD)) {
redshiftDatasourceParamDTO.setPort(Integer.parseInt(hostPortArray[0].split(Constants.COLON)[1]));

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException

Potential uncaught 'java.lang.NumberFormatException'.
if (hostPortArray[0].contains(Constants.COLON)) {
String portString = hostPortArray[0].split(Constants.COLON)[1];
if (StringUtils.isNumeric(portString)) {
redshiftDatasourceParamDTO.setPort(Integer.parseInt(portString));

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException

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

codecov-commenter commented Jan 13, 2023

Codecov Report

Merging #13379 (86d76ab) into dev (ba0a253) will increase coverage by 0.06%.
The diff coverage is 16.85%.

@@             Coverage Diff              @@
##                dev   #13379      +/-   ##
============================================
+ Coverage     39.46%   39.52%   +0.06%     
- Complexity     4308     4324      +16     
============================================
  Files          1083     1084       +1     
  Lines         40742    40916     +174     
  Branches       4670     4696      +26     
============================================
+ Hits          16080    16174      +94     
- Misses        22875    22938      +63     
- Partials       1787     1804      +17     
Impacted Files Coverage Δ
...cheduler/common/constants/DataSourceConstants.java 0.00% <ø> (ø)
...ce/api/datasource/AbstractDataSourceProcessor.java 22.58% <0.00%> (-0.76%) ⬇️
.../datasource/redshift/RedshiftDataSourceClient.java 0.00% <0.00%> (ø)
...source/redshift/param/RedshiftConnectionParam.java 50.00% <ø> (ø)
...rce/redshift/param/RedshiftDataSourceParamDTO.java 33.33% <0.00%> (ø)
...ce/redshift/param/RedshiftDataSourceProcessor.java 32.55% <10.63%> (-23.97%) ⬇️
...in/datasource/redshift/param/RedshiftAuthMode.java 62.50% <62.50%> (ø)
...er/api/service/impl/TaskGroupQueueServiceImpl.java 43.18% <0.00%> (-12.71%) ⬇️
...r/plugin/registry/zookeeper/ZookeeperRegistry.java 43.54% <0.00%> (-6.46%) ⬇️
...er/master/dispatch/host/assign/RandomSelector.java 77.77% <0.00%> (-5.56%) ⬇️
... and 13 more

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

@caishunfeng
Copy link
Contributor

@Tianqi-Dotes please update the doc together.

Amy0104
Amy0104 previously approved these changes Jan 16, 2023
Copy link
Member

@Amy0104 Amy0104 left a comment

Choose a reason for hiding this comment

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

The front end part LGTM.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

15.0% 15.0% Coverage
5.1% 5.1% Duplication

Copy link
Member

@Amy0104 Amy0104 left a comment

Choose a reason for hiding this comment

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

The front end part LGTM.

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.

+1

@caishunfeng caishunfeng merged commit 3a6e103 into apache:dev Jan 16, 2023
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 document feature new feature UI ui and front end related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants