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

missing pagination in SourceGitLab #271

Closed
fredericve opened this issue Jun 28, 2018 · 2 comments
Closed

missing pagination in SourceGitLab #271

fredericve opened this issue Jun 28, 2018 · 2 comments

Comments

@fredericve
Copy link

When a project in gitlab contains more than 20 branches the source integration might fail since the gitlab API by default only returns 20 items.

As a workaround on our instance I just added per_page=100 to the request uri, which results in working source integration. But as I said, that's a workaround, not a solution. Ideally pagination should be implemented.

@dregad
Copy link
Member

dregad commented Jun 29, 2018

Gitlab API handles pagination through metadata in the request's headers.

The json_url() MantisBT core api used by the plugin to retrieve data from Gitlab webservice is very basic, and only returns the payload but not the headers, so this would require a different implementation, e.g. using GuzzleHttp library (bundled with MantisBT since 2.5.0).

@dregad
Copy link
Member

dregad commented Jul 13, 2022

Closing as duplicate of #389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants