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

Support include_retried when getting jobs for a pipeline via paging #1046

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

s-rwe
Copy link
Contributor

@s-rwe s-rwe commented Oct 19, 2023

Fixes: #1045

Follow-up to #954, which added the same for the non-paging request already.

If pipelines have a large amount of jobs (> 100 at least), need to use the paging API to get all jobs (as GitLab limits paging size to max. 100). JobApi didn't support the include_retried flag yet, in the methods that support paging (i.e. those that return Pager/Stream)

Follow-up to gitlab4j#954, which added the same for the non-paging request already.

If pipelines have a large amount of jobs (> 100 at least), need to use
the paging API to get all jobs (as GitLab limits paging size to max. 100).
JobApi didn't support the include_retried flag yet, in the methods that
support paging (i.e. those that return Pager<Job>/Stream<Job>)
@jmini jmini merged commit 7646876 into gitlab4j:main Oct 31, 2023
@jmini
Copy link
Collaborator

jmini commented Oct 31, 2023

Thank you for this contribution 🎉

@s-rwe s-rwe deleted the feature/include_retried_2 branch October 31, 2023 12:30
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.

Add include_retried for (paging) jobs api
2 participants