Skip to content

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

Open
teknodan wants to merge 2 commits into
pweingardt:masterfrom
teknodan:master
Open

Retrieve only user's projects, not every project on the server.#59
teknodan wants to merge 2 commits into
pweingardt:masterfrom
teknodan:master

Conversation

@teknodan

@teknodan teknodan commented Sep 9, 2019

Copy link
Copy Markdown

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