Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do only 1 github API request when requesting rendered html for guide
- The github API doesn't allow us to fetch the file's SHA and rendered HTML in a single request. Previously we were hiding this in the remote layer and doing 2 requests for every call that requested the rendered text. This is fairly wasteful since we don't ever use the SHA for rendered_text calls anyway. - Now the lower-level remote.py API does not secretly do both requests but callers are able to make both if they choose so the number of API requests from the outside world is more explicit.
- Loading branch information
Showing
2 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters