pweingardt/mylyn-gitlab

Projects not using pagination

Closed this issue · 2 comments

Original title of this issue was "Projects with hyphen do not exist".

When I added my project it returns Unknown project: mygroup/project-with-hyphens when attempting to validate the settings in the new task repository dialog.

See my comment in this issue. It has been resolved.

This issue description has been modified so some initial comments may not make sense because of this. I originally described this bad behavior as a result of projects with a hyphen in the name. I was originally incorrect.

For what it's worth I am not experiencing this issue. Most of my repos have hyphens. I am not using groups though so maybe that is the issue? Example of my URL is:

http:///username/project-with-hyphens

Added several and all have validated and brought in issues to Mylyn.

@pweingardt this is resolved as a side affect of resolving #3. I have more than 20 projects and so pagination was causing this project to not show up in the list when your plugin queried projects.

The following GitLab API functions require pagination:

So if you're using any of those API functions without pagination you're going to encounter issues with larger GitLab installations.

Each API call supports the page and per_page variable when calling. Here is a python example of pagination with the API.