-
Notifications
You must be signed in to change notification settings - Fork 6
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: FIR-35469 remove account resolve endpoint from jdbc #452
refactor: FIR-35469 remove account resolve endpoint from jdbc #452
Conversation
for (Entry<String, String> e : systemEngineUrlUrlParams.entrySet()) { | ||
loginProperties.addProperty(e); | ||
} | ||
return loginProperties | ||
.toBuilder() | ||
.systemEngine(true) | ||
.compress(false) | ||
.accountId(accountId) | ||
.accountId(null) |
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.
Can we not remove accountid line here altogether since this is a builder? Or are we wiping it on purpose?
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.
Just left it like this for visibility. Also, I'm not sure what default value is set, so setting this explicitly made sense to me
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.
The default here is null so let's remove this line to avoid unnecessary complexity.
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.
Apart from that looks good
for (Entry<String, String> e : systemEngineUrlUrlParams.entrySet()) { | ||
loginProperties.addProperty(e); | ||
} | ||
return loginProperties | ||
.toBuilder() | ||
.systemEngine(true) | ||
.compress(false) | ||
.accountId(accountId) | ||
.accountId(null) |
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.
The default here is null so let's remove this line to avoid unnecessary complexity.
Quality Gate failedFailed conditions |
Removed account resolve call. Still leaving infraVersion variable in place since it's currently used to distinguish between fb1.0 and 2.0. Refactoring it out would be a much bigger effort