GitHub importer - Add query parameter for pagination limit to GitHub importer API
What does this MR do and why?
This MR removes the operational FF github_importer_lower_per_page_limit
and introduces an optional pagination_limit
parameter to our GitHub importer API instead as suggested in !67150 (comment 2230534426)
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
N/A
How to set up and validate locally
- Run a GH import with a pagination_limit set to anything other than the default (which is
100
), e.g.:
curl --trace --url "http://localhost:3000/api/v4/import/github" \
--header "content-type: application/json" \
--header "PRIVATE-TOKEN: GITLAB_PAT" \
--data '{
"personal_access_token": "GITHUB_PAT",
"repo_id": "GITHUB_REPO_ID",
"target_namespace": "TARGET_NAMESPACE",
"new_name": "NEW_NAME",
"timeout_strategy": "optimistic",
"pagination_limit": 50,
"optional_stages": {
"single_endpoint_notes_import": true,
"attachments_import": true
}
}'
Related to #506767 (closed)
Edited by Martin Wortschack