-
Notifications
You must be signed in to change notification settings - Fork 827
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
Optimize "/ids/Users" endpoint #2704
Conversation
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/186970777 The labels on this github issue will be updated when the story is started. |
…mUserEndpoints and reuse it in UserIdConversionEndpoints
de76e0f
to
95457f1
Compare
/easycla |
Hi @adrianhoelzl-sap, #2703 is an issue, did you mean PR #2702? |
You are right, I updated it. Thanks :) |
…ze-ids-users-endpoint
…g users by SCIM filter and active flag
The first commit 955cd2b is already on |
Also, github is saying
|
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.
Rebase and merge conficts need to be resolved.
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.
I'm partway through the PR.
server/src/main/java/org/cloudfoundry/identity/uaa/scim/jdbc/JdbcScimUserProvisioning.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/cloudfoundry/identity/uaa/scim/jdbc/JdbcScimUserProvisioning.java
Show resolved
Hide resolved
...c/test/java/org/cloudfoundry/identity/uaa/scim/endpoints/UserIdConversionEndpointsTests.java
Outdated
Show resolved
Hide resolved
when(identityZoneManager.getCurrentIdentityZoneId()).thenReturn(idzId); | ||
} | ||
|
||
private void arrangeScimUsersForFilter( |
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 method is really complex. Is it really necessary to validate all of these details for all of the tests that call this?
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.
I assume that you were referring to the method below, i.e., assertEndpointReturnsCorrectResult
. I simplified it a bit in commit d0cf81f.
...c/test/java/org/cloudfoundry/identity/uaa/scim/endpoints/UserIdConversionEndpointsTests.java
Outdated
Show resolved
Hide resolved
No need to block on merge conflicts that have to be fixed anyway
@adrianhoelzl-sap @strehle This PR is where I am very likely going to revert in the next half hour to hour as this looks to be the culprit for the performance drop. Thoughts? |
see issue #2705
Prerequisite: PR #2702