-
Notifications
You must be signed in to change notification settings - Fork 40
Deprecate --log-success argument and introduce new replacement option --enable-log-success
#3117
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
Conversation
…ataLoaderError.java Co-authored-by: Mitsunori Komatsu <[email protected]>
Summary of ChangesHello @inv-jishnu, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refactors the command-line interface for the data import command by deprecating the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request correctly deprecates the --log-success argument and introduces --enable-log-success as a replacement. The changes are well-implemented, ensuring backward compatibility and adding validation to prevent misuse. The new unit tests effectively cover the new logic for both successful deprecation handling and error cases. I've suggested a couple of minor improvements to the new tests to make them more focused and maintainable by removing unnecessary arguments.
...der/cli/src/test/java/com/scalar/db/dataloader/cli/command/dataimport/ImportCommandTest.java
Outdated
Show resolved
Hide resolved
...der/cli/src/test/java/com/scalar/db/dataloader/cli/command/dataimport/ImportCommandTest.java
Outdated
Show resolved
Hide resolved
komamitsu
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! 👍
brfrn169
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! Thank you!
feeblefakie
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! Thank you!
.../cli/src/main/java/com/scalar/db/dataloader/cli/command/dataimport/ImportCommandOptions.java
Outdated
Show resolved
Hide resolved
ypeckstadt
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. Thank you.
Torch3333
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, thank you!
|
@inv-jishnu I added some extra unit tests here to make sure that the flag works as expected without setting a true or false value. |
…on `--enable-log-success` (#3117) Co-authored-by: Peckstadt Yves <[email protected]>
…on `--enable-log-success` (#3117) Co-authored-by: Peckstadt Yves <[email protected]>
Description
This PR deprecates an existing CLI argument
--log-successand introduces a new one--enable-log-successto improve clarity and consistency in command-line usage. The change ensures backward compatibility while guiding users toward the updated argument name.The change is applied based on PR review feedback from Yamada-san to make the naming more consistent.
Related issues and/or PRs
NA
Changes made
Deprecated:
Added:
--enable-log-success— replaces the deprecated argumentI have also added a unit test to confirm old argument can still be used and throws an error when both arguments are used.
Checklist
Additional notes (optional)
NA
Release notes
Deprecated
--log-successargument and introduced a new replacement option--enable-log-success