Skip to content

Commit

Permalink
[isl] reduce number of pr fetched in graphql query to avoid timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
vuduchild authored and Roy Rothenberg committed Nov 22, 2023
1 parent 664cb28 commit 6cd19b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/isl-server/src/github/githubCodeReviewProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class GitHubCodeReviewProvider implements CodeReviewProvider {
// This is not very easy with github's graphql API, which doesn't allow more than 5 "OR"s in a search query.
// But if we used one-query-per-diff we would reach rate limiting too quickly.
searchQuery: `repo:${this.codeReviewSystem.owner}/${this.codeReviewSystem.repo} is:pr author:@me`,
numToFetch: 100,
numToFetch: 20,
});
if (allSummaries?.search.nodes == null) {
this.diffSummaries.emit('data', new Map());
Expand Down

0 comments on commit 6cd19b5

Please sign in to comment.