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

Slow Login operation #49

Open
infabo opened this issue Feb 1, 2024 · 0 comments · May be fixed by #50
Open

Slow Login operation #49

infabo opened this issue Feb 1, 2024 · 0 comments · May be fixed by #50

Comments

@infabo
Copy link
Contributor

infabo commented Feb 1, 2024

As I observed already for quite some time, the login takes some time.

Now profiling this it reveals several curl calls to gitlab API.

Takes quite some time:

image

The bad boy:

image

After a little tweaking:

image

Still not optimal, but(t) way better:

image

infabo added a commit to infabo/oauth2 that referenced this issue Feb 1, 2024
Just use https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project-including-inherited-and-invited-members

It resolves all the inherited group and invited member/group for us.
No need for recursive API calls and shared groups traversal.

fixes marketing-factory#49
@infabo infabo linked a pull request Feb 1, 2024 that will close this issue
infabo added a commit to infabo/oauth2 that referenced this issue Feb 1, 2024
Just use https://docs.gitlab.com/ee/api/members.html#get-a-member-of-a-group-or-project-including-inherited-and-invited-members

It resolves all the inherited group and invited member/group for us.
No need for recursive API calls and shared groups traversal.

fixes marketing-factory#49
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 a pull request may close this issue.

1 participant