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
GitHub has a pagination limit of 100 projectV2Items per request. This is ok for how because we have less than 100 items in our GitHub project, however we'll eventually have more than that and need to have them included in reminders.
On src/github/index.ts in fetchData we fire this GraphQL query src/github/graphql/projectV2Items.ts. In the response, we get back the data pageinfo.hasNextPage.
If pageinfo.hasNextPage is true, than we should fire a additional request to get the remaining item data. We should continue to do this until hasNextPage is false.
To make sure different pages of data are requested each request, we'll need to update this GraphQL query to utilize the "after & before" parameters instead of the "first" parameter (see line 5):
GitHub has a pagination limit of 100 projectV2Items per request. This is ok for how because we have less than 100 items in our GitHub project, however we'll eventually have more than that and need to have them included in reminders.
On
src/github/index.ts
infetchData
we fire this GraphQL querysrc/github/graphql/projectV2Items.ts
. In the response, we get back the datapageinfo.hasNextPage
.If
pageinfo.hasNextPage
is true, than we should fire a additional request to get the remaining item data. We should continue to do this until hasNextPage is false.To make sure different pages of data are requested each request, we'll need to update this GraphQL query to utilize the "after & before" parameters instead of the "first" parameter (see line 5):
I think we'll need a proper GraphQL client to manage variables: https://www.npmjs.com/package/graphql-client
The text was updated successfully, but these errors were encountered: