Skip to content
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

Merged

Conversation

stepansergeevitch
Copy link
Contributor

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

@stepansergeevitch stepansergeevitch self-assigned this Sep 2, 2024
@stepansergeevitch stepansergeevitch requested a review from a team as a code owner September 2, 2024 14:48
for (Entry<String, String> e : systemEngineUrlUrlParams.entrySet()) {
loginProperties.addProperty(e);
}
return loginProperties
.toBuilder()
.systemEngine(true)
.compress(false)
.accountId(accountId)
.accountId(null)
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

@stepansergeevitch stepansergeevitch changed the title refactor: Fir 35469 remove account resolve endpoint from jdbc refactor: FIR-35469 remove account resolve endpoint from jdbc Sep 3, 2024
Copy link
Contributor

@ptiurin ptiurin left a 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)
Copy link
Contributor

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.

Copy link

sonarqubecloud bot commented Sep 9, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
77.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@stepansergeevitch stepansergeevitch merged commit b97c8bb into master Sep 9, 2024
3 of 5 checks passed
@stepansergeevitch stepansergeevitch deleted the FIR-35469-remove-account-resolve-endpoint-from-jdbc branch September 9, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants