-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[refactor][cli][PIP-280] Create new pulsar-cli-utils
module
#20782
Conversation
Codecov Report
@@ Coverage Diff @@
## master #20782 +/- ##
============================================
+ Coverage 72.61% 73.14% +0.52%
- Complexity 31966 32240 +274
============================================
Files 1868 1880 +12
Lines 139185 139300 +115
Branches 15315 15323 +8
============================================
+ Hits 101071 101891 +820
+ Misses 30052 29353 -699
+ Partials 8062 8056 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/pulsarbot rerun-failure-checks |
Re-running the following failed checks
EDIT : Made a PR in to cover OWASP check #20792 |
Need #20792 to resolve the OWASP blocker |
May I ask for a review when you have time 😆, @tisonkun @BewareMyPower @mattisonchao ? thanks 🙏🏼 |
/pulsarbot rerun-failure-checks |
#20792 should fixs the OWASP check currently failing, but the suppression turns out to be more difficult than it seems. Any help will be welcome |
@JooHyukKim you can now rebase this branch on the fixed master :D |
pulsar-cli-utils/src/main/java/org/apache/pulsar/cli/converters/RelativeTimeUtil.java
Outdated
Show resolved
Hide resolved
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.
Great work! LGTM
Co-authored-by: ran <[email protected]>
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.
Overall LGTM. Just a few comments about the naming.
You use Util
for RelativeTimeUtil
and ByteUnitUtil
and Utils
for ValueValidationUtils
. Should we use a consistent naming style?
pulsar-cli-utils/src/main/java/org/apache/pulsar/cli/converters/RelativeTimeUtil.java
Show resolved
Hide resolved
/pulsarbot rerun-failure-checks |
1 similar comment
/pulsarbot rerun-failure-checks |
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. Thanks for your contribution!
@JooHyukKim Maybe you can open a tracking issue to list out the subtasks and finish them one by one. In this way, we can share the same page what is remaining and maybe offer some helps. |
@tisonkun Oh yes sounds like a good idea. Will do 👍🏻 |
…20782) Co-authored-by: ran <[email protected]> (cherry picked from commit 4f9b199)
…20782) Co-authored-by: ran <[email protected]> (cherry picked from commit 4f9b199)
…20782) Co-authored-by: ran <[email protected]> (cherry picked from commit 4f9b199)
PIP: #20691
Motivation
As PIP-280 #20691 may span cross module, we need a module to provide CLI related (though mostly
JCommander
atm) isolation. Note thatpulsar-common
was not considered because it's common (too broad).Modifications
pulsar-cli-utils
Converter
s for meaurement unit (time,byte) conversionValidator
s forNote
pulsar-client-tools
module #20764Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: https://github.com/JooHyukKim/pulsar/pull/19