adobe / adobe/gatsby-source-github-file-contributors

Reduce limit of contributors so as not to use as many GraphQL points

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Description

https://github.com/adobe/gatsby-source-github-file-contributors/blob/5bee0b9d250af5a236df46d05f03f9bd72442ecc/src/gql.js#L58

Right now we take the first 100, to reduce it to the "Last 5 contributors", in case of a frequent contributor showing up only, so that we could fulfill the "Last 5 Contributors" requirement .

Reducing this limit to a lower value will potentially reduce the GraphQL points for a Github API call, and this will help with a very large site -- at the expense of the "Last 5 Contributors" requirement above.

Contributor guide

Open the contributing guide

Research direction

Start with src/gql.js at line 58 and inspect how the contributor limit is used in the GitHub GraphQL query. Determine a lower limit that addresses GraphQL point usage while considering the stated last-five-contributors requirement, then verify the query still returns the intended contributor data.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.