Skip to content

Parallel fetch without relying on Gitlab headers#1

Merged
fbpe merged 3 commits into
developfrom
blind-parallel-fetch
Apr 29, 2025
Merged

Parallel fetch without relying on Gitlab headers#1
fbpe merged 3 commits into
developfrom
blind-parallel-fetch

Conversation

@fbpe
Copy link
Copy Markdown

@fbpe fbpe commented Apr 22, 2025

When the number of resources to fetch is >10k, Gitlab does not send the X-Total and X-Total-Page headers in the API response. For this reason, the parallel fetch implementation should not rely on those.

Instead, it should try to fetch different pages in parallel until they come up empty, meaning that there is nothing else to fetch.

fbpe added 2 commits April 22, 2025 15:12
…ers that are not always present

Instead, it fetches while there is something to fetch.
@fbpe fbpe self-assigned this Apr 22, 2025
@fbpe fbpe requested review from jmini and mirkotschaeni April 22, 2025 14:04
@fbpe fbpe changed the title Parallel fetch without relaying on Gitlab headers Parallel fetch without relying on Gitlab headers Apr 25, 2025
@fbpe fbpe merged commit f2e64d3 into develop Apr 29, 2025
4 checks passed
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