Skip to content

Conversation

@mug1wara26
Copy link
Contributor

Description

Resolves #3296 by using the per_page parameter set to 59.
As the GitHub REST API has a rate limit of 60 requests per hour, 1 request will be used to fetch all the repositories, and the other 59 requests will be used to get the contributors list per repository. Should the organisation have more than 59 repositories, another solution will need to be implemented.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How to test

Navigate to the Contributors page, it should show all repositories in the organisation now

Checklist

  • I have tested this code
  • I have updated the documentation

@coveralls
Copy link

Pull Request Test Coverage Report for Build 16874120278

Details

  • 0 of 6 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.004%) to 43.454%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/pages/contributors/subcomponents/ContributorsGithubApi.ts 0 6 0.0%
Totals Coverage Status
Change from base Build 16861086485: -0.004%
Covered Lines: 20627
Relevant Lines: 49674

💛 - Coveralls

Copy link
Member

@RichDom2185 RichDom2185 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@RichDom2185 RichDom2185 merged commit 84806b9 into master Aug 11, 2025
9 checks passed
@RichDom2185 RichDom2185 deleted the 3296-contributors-fix branch August 11, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contributors page only shows contributors to 30 repositories in Source Academy instead of all of them

4 participants