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

[#768] [Follow Up] feat(cli): Cli method for blacklist update. #968

Merged
merged 2 commits into from
Jul 1, 2023

Conversation

slfan1989
Copy link
Collaborator

@slfan1989 slfan1989 commented Jun 25, 2023

What changes were proposed in this pull request?

While reading the code, I found some minor issues, this PR will fix them.

  • Issue1: When using the uniffle admin-cli command without any options, it should print the help information.

before modification

image

after modification

image
  • Issue2: The comment information is incorrect.

Why are the changes needed?

Improve code readability and enhance code functionality.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Test environment verification.

@slfan1989 slfan1989 marked this pull request as draft June 25, 2023 14:28
@codecov-commenter
Copy link

codecov-commenter commented Jun 25, 2023

Codecov Report

Merging #968 (0a99ccf) into master (0e24225) will decrease coverage by 0.67%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##             master     #968      +/-   ##
============================================
- Coverage     54.93%   54.27%   -0.67%     
- Complexity     2055     2479     +424     
============================================
  Files           327      355      +28     
  Lines         15203    17991    +2788     
  Branches       1174     1726     +552     
============================================
+ Hits           8352     9764    +1412     
- Misses         6382     7625    +1243     
- Partials        469      602     +133     
Impacted Files Coverage Δ
...java/org/apache/uniffle/client/RestClientImpl.java 0.00% <ø> (ø)
...n/java/org/apache/uniffle/cli/UniffleAdminCLI.java 56.14% <50.00%> (-2.36%) ⬇️

... and 71 files with indirect coverage changes

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

@slfan1989 slfan1989 marked this pull request as ready for review June 25, 2023 15:24
true, "This is coordinator server port.");
ssl = new Option(null, longPrefix + "ssl", false, "use SSL");
ssl = new Option("l", longPrefix + "ssl", false, "use SSL");
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe the short option is omitted on purpose?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@advancedxy Thank you for your help in reviewing the code! I tried to remove the short option and test it in the test environment. I think your feedback is accurate. It is better to use the long option (ssl).

image

@slfan1989
Copy link
Collaborator Author

@advancedxy Can you help review this pr again? Thank you very much!

@advancedxy
Copy link
Contributor

lgtm, would you mind to update the pr summary to reflect the short option of ssl cli arg?
This commit doesn't add short option of ssl

@slfan1989
Copy link
Collaborator Author

lgtm, would you mind to update the pr summary to reflect the short option of ssl cli arg? This commit doesn't add short option of ssl

Thank you for your suggestion. I will modify the PR summary accordingly.

@slfan1989
Copy link
Collaborator Author

@advancedxy @jerqi Can you help to review this PR again?

@advancedxy advancedxy merged commit 6dbb289 into apache:master Jul 1, 2023
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants