Skip to content

add-project.py: Pagination, phase 1

Ahmon Dancy requested to merge main-Icc1899d68b10797e88077c67c6a5eb4e8183808f into main

get_trusted_runners:
Pass iterator=True to project.runners.list to ensure that it
paginates through all results.

get_projects_for_runner:
Request pagination information when retrieving the list of projects.
Use this information to ensure we error out if we retrieved
incomplete information (instead of acting on the information as if
it were complete). Reformatted the query string in the process to
hopefully make it more readable.

I did not implement pagination for the graphql query.

Merge request reports