Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug with fetching contributors twice for guides that do not have any
- This bug increased our API usage because it requested the list of contributors twice instead of only once for guides that did not have any contributors. The underlying Article object had no distinction between the two states, 'requested and found no contributors' and 'have not requested yet'. So we would send 2 extra API requests for every guide that did not have contributors, which is most likely the majority of our guides at this point. - The reason it takes 2 requests to get the contributors is we have to look in the published and in-review directories since that's how the API tracks commits. The github API doesn't support the --follow parameter of command-line git.
- Loading branch information