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

Optimize "/ids/Users" endpoint #2704

Merged
merged 22 commits into from
Mar 10, 2024

Conversation

adrianhoelzl-sap
Copy link
Contributor

@adrianhoelzl-sap adrianhoelzl-sap commented Feb 2, 2024

see issue #2705

Prerequisite: PR #2702

Copy link

linux-foundation-easycla bot commented Feb 2, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@cf-gitbot
Copy link

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.

@adrianhoelzl-sap adrianhoelzl-sap marked this pull request as ready for review February 2, 2024 13:17
@WillsonHG
Copy link

/easycla

@peterhaochen47
Copy link
Member

see issue #2705

Prerequisite: PR #2703

Hi @adrianhoelzl-sap, #2703 is an issue, did you mean PR #2702?

@adrianhoelzl-sap
Copy link
Contributor Author

see issue #2705
Prerequisite: PR #2703

Hi @adrianhoelzl-sap, #2703 is an issue, did you mean PR #2702?

You are right, I updated it. Thanks :)

@adrianhoelzl-sap adrianhoelzl-sap marked this pull request as draft February 8, 2024 17:49
@adrianhoelzl-sap adrianhoelzl-sap marked this pull request as ready for review February 13, 2024 09:28
@bruce-ricard
Copy link
Contributor

The first commit 955cd2b is already on develop . Should we rebase the PR branch?

@bruce-ricard
Copy link
Contributor

Also, github is saying

This branch has conflicts that must be resolved

Copy link
Contributor

@bruce-ricard bruce-ricard left a 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.

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.

I'm partway through the PR.

when(identityZoneManager.getCurrentIdentityZoneId()).thenReturn(idzId);
}

private void arrangeScimUsersForFilter(
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@swalchemist swalchemist dismissed bruce-ricard’s stale review March 8, 2024 22:57

No need to block on merge conflicts that have to be fixed anyway

@adrianhoelzl-sap adrianhoelzl-sap merged commit 1324a81 into develop Mar 10, 2024
20 checks passed
@adrianhoelzl-sap adrianhoelzl-sap deleted the fix/optimize-ids-users-endpoint branch March 10, 2024 19:51
@Tallicia
Copy link
Contributor

@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?

bruce-ricard added a commit that referenced this pull request Apr 29, 2024
* Revert "Merge pull request #2704 from cloudfoundry/fix/optimize-ids-users-endpoint"

* This reverts commit 1324a81, reversing
  changes made to b8826e1.

* The original PR is suspected to cause the performance issues. We
  will try to bring this change back later.
Tallicia pushed a commit that referenced this pull request Apr 29, 2024
* Revert "Merge pull request #2704 from cloudfoundry/fix/optimize-ids-users-endpoint"

* This reverts commit 1324a81, reversing
  changes made to b8826e1.

* The original PR is suspected to cause the performance issues. We
  will try to bring this change back later.
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.

Performance Issues in SCIM User Lookup of "/ids/Users" Endpoint
7 participants