-
Notifications
You must be signed in to change notification settings - Fork 81
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
NC | CLI | Added a validation to check if whitespace is not trimmed from string value for a flag #8722
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e4737b0
to
59716de
Compare
shirady
reviewed
Jan 26, 2025
59716de
to
3d4b6ba
Compare
dd420e1
to
345365d
Compare
nadavMiz
reviewed
Jan 27, 2025
345365d
to
e5c5686
Compare
shirady
reviewed
Jan 27, 2025
src/test/unit_tests/jest_tests/test_nc_nsfs_account_cli.test.js
Outdated
Show resolved
Hide resolved
e5c5686
to
e3f52c4
Compare
3ced00b
to
0b8a0a1
Compare
shirady
reviewed
Jan 29, 2025
src/test/unit_tests/jest_tests/test_nc_nsfs_account_cli.test.js
Outdated
Show resolved
Hide resolved
src/test/unit_tests/jest_tests/test_nc_nsfs_account_cli.test.js
Outdated
Show resolved
Hide resolved
src/test/unit_tests/jest_tests/test_nc_nsfs_account_cli.test.js
Outdated
Show resolved
Hide resolved
src/test/unit_tests/jest_tests/test_nc_nsfs_account_cli.test.js
Outdated
Show resolved
Hide resolved
d1f01d3
to
c270b91
Compare
shirady
reviewed
Jan 30, 2025
src/test/unit_tests/jest_tests/test_nc_nsfs_account_cli.test.js
Outdated
Show resolved
Hide resolved
src/test/unit_tests/jest_tests/test_nc_nsfs_account_cli.test.js
Outdated
Show resolved
Hide resolved
src/test/unit_tests/jest_tests/test_nc_nsfs_account_cli.test.js
Outdated
Show resolved
Hide resolved
romayalon
reviewed
Jan 30, 2025
c270b91
to
71800f4
Compare
71800f4
to
5ba994f
Compare
romayalon
reviewed
Feb 6, 2025
2 tasks
5ba994f
to
d48d597
Compare
shirady
reviewed
Feb 12, 2025
254a6d0
to
40aeb19
Compare
shirady
reviewed
Feb 13, 2025
romayalon
reviewed
Feb 13, 2025
40aeb19
to
08c2dc2
Compare
shirady
approved these changes
Feb 16, 2025
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
08c2dc2
to
84cb818
Compare
…' which may be due to leading space in flag values Signed-off-by: Aayush Chouhan <[email protected]> Updated the code after Romy's PR is merged Signed-off-by: Aayush Chouhan <[email protected]> Updated the logic and tests Signed-off-by: Aayush Chouhan <[email protected]> Updated to enum, added examples and error msg Signed-off-by: Aayush Chouhan <[email protected]> Update the function name and unit tests Signed-off-by: Aayush Chouhan <[email protected]>
84cb818
to
b60a15f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explain the changes
=
, caused the value to be split into an empty string ('') and the actual value, resulting in faulty flag assignments.argv._
has more than two elements and throws an error if invalid values are detected.This prevents incorrect assignments and ensures flag values are valid.
Issues: Fixed #xxx / Gap #xxx
Testing Instructions:
$ sudo node src/cmd/manage_nsfs account add --name aayush2 --uid=9 --gid=9 --new_buckets_path= tmp/