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

Retrieve only user's projects, not every project on the server. #59

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

teknodan
Copy link

@teknodan teknodan commented Sep 9, 2019

Opening this given the discussion in #56 (and, iirc, other reports).

Caveat: I'm not entirely sure that the logic applies to all situations (though imo, it's the only sane approach to using gitlab.com). If you're on a private server.... is there a use case for retrieving projects you're not part of? If so, it probably needs some logic to pick which call to use, either based on if it's gitlab.com or not, or have a user checkbox or something.

Validating causes the full public project list to be retrieved from the gitlab server.  When working on gitlab.com, this can cause eclipse to hang during validation as it retrieves every public project in the system. 

Changed the call from getProjects() to getMembershipProjects(),  which pulls only the projects that the user is a member of in some capacity - a small number of projects, rather than hundreds of thousands (millions?) of public repos available on gitlab.com.
Retrieve only projects user has access to during validation.
erwindl0 added a commit to erwindl0/mylyn-gitlab that referenced this pull request Jul 20, 2020
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.

1 participant