You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We correctly loop over multiple pages because we know that there may be more than 100 "items" in the project board, but we assume there are at most 100 files per PR; this isn't a good assumption in something like a big lang update or a catalogue-wide metadata update.
So we may need to do this the inefficient way: grab all the items and their associated PRs first, paging through all the pages of items, and then do a query for each PR, paging through all the lists of files.
Urgh.
The text was updated successfully, but these errors were encountered:
Paginating things in a GitHub GraphQL query is a nightmare. Currently the code we have does this:
gftools/Lib/gftools/push.py
Lines 83 to 88 in cc53fb5
and then
gftools/Lib/gftools/push.py
Lines 106 to 112 in cc53fb5
We correctly loop over multiple pages because we know that there may be more than 100 "items" in the project board, but we assume there are at most 100 files per PR; this isn't a good assumption in something like a big lang update or a catalogue-wide metadata update.
However (and this is where it gets difficult) to make that work you need to say "give me page 2 of the files on page 3 of the items", and you can't use multiple pagination cursors in a GitHub GraphQL query (See also this issue).
So we may need to do this the inefficient way: grab all the items and their associated PRs first, paging through all the pages of items, and then do a query for each PR, paging through all the lists of files.
Urgh.
The text was updated successfully, but these errors were encountered: