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 BasicAuthUtils from pinot-core to pinot-common #11620
Refactor BasicAuthUtils from pinot-core to pinot-common #11620
Conversation
…not-core dependency from pinot-jdbc-client
Codecov Report
@@ Coverage Diff @@
## master #11620 +/- ##
============================================
- Coverage 63.05% 62.94% -0.11%
Complexity 1105 1105
============================================
Files 2325 2326 +1
Lines 124913 124916 +3
Branches 19146 19146
============================================
- Hits 78758 78623 -135
- Misses 40533 40656 +123
- Partials 5622 5637 +15
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 23 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Seems we do have some scalar functions defined in pinot-core. Is it okay to not include them?
It's ok if we exclude entire |
@@ -64,21 +61,22 @@ private BasicAuthUtils() { | |||
* @return list of BasicAuthPrincipals | |||
*/ | |||
public static List<BasicAuthPrincipal> extractBasicAuthPrincipals(PinotConfiguration configuration, String prefix) { | |||
String principalNames = configuration.getProperty(prefix); | |||
Preconditions.checkArgument(StringUtils.isNotBlank(principalNames), "must provide principals"); | |||
String principalNames = configuration.getProperty(prefix); |
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.
does it make sense to also refactor the rest of the utils into common? putting them in core seems weird to me: is there any situation when the rest of the function util is not utilized together with the common one?
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 for this step as a minimum refactoring needed to get rid of dependency from client on core module.
pinot-core
topinot-common
pinot-core
dependency frompinot-jdbc-client