-
Notifications
You must be signed in to change notification settings - Fork 392
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
[#6153]refactor: Break up role commands in Gravitino CLI #6170
Conversation
return false; | ||
} | ||
} | ||
|
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.
All calls below are misisng calls to validate()
command + " requires exactly one role, but multiple are currently passed."); | ||
return roles[0]; | ||
} | ||
} |
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.
Please don't change error messages, as they need to be consistent with other error messages.
|
||
metalake = new FullName(line).getMetalakeName(); | ||
|
||
String[] roles = line.getOptionValues(GravitinoOptions.ROLE); |
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.
roles could become a property
roles = Arrays.stream(roles).distinct().toArray(String[]::new); | ||
} | ||
|
||
String[] privileges = line.getOptionValues(GravitinoOptions.PRIVILEGE); |
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.
same here
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.
This file is missing a license header, causing the CI to fail.
…ne class Break up role commands in Gravitino command line class For readability and maintainability. Tested locally.
79ec945
to
3a673f0
Compare
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 the contribution
…e#6170) ### What changes were proposed in this pull request? Break up role commands in Gravitino command line class ### Why are the changes needed? For readability and maintainability. ### Fix: apache#6153 ### Does this PR introduce any user-facing change? None. ### How was this patch tested? Tested locally.
What changes were proposed in this pull request?
Break up role commands in Gravitino command line class
Why are the changes needed?
For readability and maintainability.
Fix: #6153
Does this PR introduce any user-facing change?
None.
How was this patch tested?
Tested locally.