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

Refactoring: testable code in JdbcScimUserProvisioning #2863

Merged
merged 5 commits into from
May 6, 2024

Conversation

strehle
Copy link
Member

@strehle strehle commented May 2, 2024

  • Create bean for extra SimpleSearchQueryConverter

  • Need an extra SimpleSearchQueryConverter for the search with join but this object can be created once.

  • Need NamedParameterJdbcTemplate for the search but this object can be created once

  • Removed interface methods which are never used

Created JUnit tests for all cases in retrieveByScimFilterOnlyActive and verify the existence of LOWER

e.g.
https://www.baeldung.com/java-clean-code#characteristics_of_clean_code

* Create bean for extra SimpleSearchQueryConverter
* Need an extra SimpleSearchQueryConverter for the search with join
but this object can be created once.

* Need NamedParameterJdbcTemplate for the search but this
object can be created once

* Removed interface methods which are never used

Created JUnit tests for all cases in retrieveByScimFilterOnlyActive and
verify the existence of LOWER
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/187536128

The labels on this github issue will be updated when the story is started.

@@ -43,6 +44,10 @@ public void setQueryConverter(SearchQueryConverter queryConverter) {
this.queryConverter = queryConverter;
}

public void setNamedParameterJdbcTemplate(NamedParameterJdbcTemplate namedParameterJdbcTemplate) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be removed / refactored, if #2864 is merged before

@strehle strehle requested a review from a team May 2, 2024 13:18
@strehle strehle requested a review from a team May 2, 2024 16:35
Copy link
Contributor

@swalchemist swalchemist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some observations from my first reading of this PR.

becaue of refactoring from review
@strehle strehle requested a review from swalchemist May 3, 2024 07:19
@strehle strehle merged commit aa4c13e into develop May 6, 2024
20 checks passed
@strehle strehle deleted the refactor/JdbcScimUserProvisioning branch May 6, 2024 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants