I still see requests on refresh in Pull Requests view
Testing #7887
Followed these below steps on Windows and everytime I hit refresh, I do see REST calls.
I am using this version of the extension. Identifier: github.vscode-pull-request-github Version: 0.119.2025093004
Steps:
Test that the refresh is cheaper
Open the Pull Requests view Collapse the "All Open" subtree if it's open. Expand at least one of the other subtrees. Set the log level of GitHub Pull Request to "debug" (command Developer: Set Log Level) Open the GitHub Pull Request log and clear it Hit the refresh button on the Pull Requests view. Verify that there are no new log lines that say anything about REST api.
Can you please share the log output?
This is the log output I see when I do refresh after initial opening of subtree:
2025-10-01 10:19:59.196 [debug] [GitHubRepository+0] Fetch all pull requests - enter
2025-10-01 10:19:59.196 [debug] [RateLimit] Extension rate limit remaining: 140, /repos/{owner}/{repo}/pulls
2025-10-01 10:19:59.630 [debug] [GitHubRepository+0] Fetch all pull requests - done
2025-10-01 10:19:59.631 [debug] [RateLimit] REST Rate limit remaining: 4944, cost: -1, /repos/{owner}/{repo}/pulls
2025-10-01 10:19:59.632 [debug] [GitHubRepository+0] Get Status Checks - enter
2025-10-01 10:19:59.632 [debug] [GitHubRepository+0] Get Status Checks - enter
2025-10-01 10:19:59.632 [debug] [GitHubRepository+0] Get Status Checks - enter
2025-10-01 10:19:59.632 [debug] [GitHubRepository+0] Get Status Checks - enter
2025-10-01 10:19:59.633 [debug] [RateLimit] Extension rate limit remaining: 140, GetChecks
2025-10-01 10:19:59.633 [debug] [RateLimit] Extension rate limit remaining: 139, GetChecks
2025-10-01 10:19:59.633 [debug] [RateLimit] Extension rate limit remaining: 138, GetChecks
2025-10-01 10:19:59.633 [debug] [RateLimit] Extension rate limit remaining: 137, GetChecks
2025-10-01 10:19:59.637 [debug] [GitHubRepository] Fetch Copilot timeline events of issue #9 - enter
2025-10-01 10:19:59.638 [debug] [GitHubRepository] Fetch Copilot timeline events of issue #8 - enter
2025-10-01 10:19:59.955 [debug] [GitHubRepository] Fetch Copilot timeline events of issue #9 - exit
2025-10-01 10:20:00.205 [debug] [GitHubRepository] Fetch Copilot timeline events of issue #8 - exit
2025-10-01 10:20:00.208 [debug] [PRNode] Fetch children of PRNode #10
2025-10-01 10:20:00.208 [debug] [PullRequestModel] Fetch file changes, base, head and merge base of PR #10 - enter
2025-10-01 10:20:00.208 [debug] [RateLimit] Extension rate limit remaining: 136, PullRequestFiles
2025-10-01 10:20:00.208 [debug] [IssueModel] Fetch viewers latest review commit
2025-10-01 10:20:00.208 [debug] [RateLimit] Extension rate limit remaining: 135, LatestReviewCommit
2025-10-01 10:20:00.209 [debug] [RateLimit] Extension rate limit remaining: 134, GetPendingReviewId
2025-10-01 10:20:00.223 [debug] [RateLimit] GraphQL Rate limit remaining: 4807, cost: 1, GetChecks
2025-10-01 10:20:00.223 [debug] [GitHubRepository+0] Get Status Checks - done
2025-10-01 10:20:00.243 [debug] [RateLimit] GraphQL Rate limit remaining: 4808, cost: 1, GetChecks
2025-10-01 10:20:00.243 [debug] [GitHubRepository+0] Get Status Checks - done
2025-10-01 10:20:00.272 [debug] [RateLimit] GraphQL Rate limit remaining: 4806, cost: 1, GetChecks
2025-10-01 10:20:00.272 [debug] [GitHubRepository+0] Get Status Checks - done
2025-10-01 10:20:00.290 [debug] [RateLimit] GraphQL Rate limit remaining: 4805, cost: 1, GetChecks
2025-10-01 10:20:00.290 [debug] [GitHubRepository+0] Get Status Checks - done
2025-10-01 10:20:00.647 [debug] [RateLimit] GraphQL Rate limit remaining: 4804, cost: 1, GetPendingReviewId
2025-10-01 10:20:00.693 [debug] [RateLimit] GraphQL Rate limit remaining: 4803, cost: 1, LatestReviewCommit
2025-10-01 10:20:00.693 [debug] [PullRequestModel] Comparing commits for vijayupadya/test with base vijayupadya:fc571322c3d5949e9562b2397b4fcb7664479508 and head vijayupadya:828bc8fef7272424fc3112ccfe9c854da2caf28d
2025-10-01 10:20:00.693 [debug] [PullRequestModel] Comparing commits for vijayupadya/test with base vijayupadya:fc571322c3d5949e9562b2397b4fcb7664479508 and head vijayupadya:828bc8fef7272424fc3112ccfe9c854da2caf28d
2025-10-01 10:20:00.693 [debug] [RateLimit] Extension rate limit remaining: 139, /repos/{owner}/{repo}/compare/{base}...{head}
2025-10-01 10:20:00.802 [debug] [RateLimit] GraphQL Rate limit remaining: 4802, cost: 1, PullRequestFiles
2025-10-01 10:20:01.064 [debug] [RateLimit] REST Rate limit remaining: 4941, cost: -1, /repos/{owner}/{repo}/compare/{base}...{head}
2025-10-01 10:20:01.064 [debug] [PullRequestModel] Fetch file changes and merge base of PR #10 - done, total files 1
2025-10-01 10:20:01.065 [debug] [PullRequestModel] Fetching review comments for PR #10 - enter
2025-10-01 10:20:01.065 [debug] [RateLimit] Extension rate limit remaining: 140, PullRequestComments
2025-10-01 10:20:01.071 [debug] [PRNode] Fetch children of PRNode #9
2025-10-01 10:20:01.071 [debug] [PullRequestModel] Fetch file changes, base, head and merge base of PR #9 - enter
2025-10-01 10:20:01.071 [debug] [RateLimit] Extension rate limit remaining: 139, PullRequestFiles
2025-10-01 10:20:01.071 [debug] [IssueModel] Fetch viewers latest review commit
2025-10-01 10:20:01.071 [debug] [RateLimit] Extension rate limit remaining: 138, LatestReviewCommit
2025-10-01 10:20:01.072 [debug] [RateLimit] Extension rate limit remaining: 137, GetPendingReviewId
2025-10-01 10:20:01.643 [debug] [RateLimit] GraphQL Rate limit remaining: 4782, cost: 20, PullRequestComments
2025-10-01 10:20:01.643 [debug] [PullRequestModel] Fetching review comments for PR #10 - exit
2025-10-01 10:20:01.647 [debug] [RateLimit] GraphQL Rate limit remaining: 4781, cost: 1, LatestReviewCommit
2025-10-01 10:20:01.647 [debug] [PullRequestModel] Comparing commits for vijayupadya/test with base vijayupadya:c72cf2ba9109a7deab2bab81b6c6066113fe8b0a and head vijayupadya:2a5ef6d2c6f79986aaaad78b0810689c4e31b053
2025-10-01 10:20:01.647 [debug] [PullRequestModel] Comparing commits for vijayupadya/test with base vijayupadya:c72cf2ba9109a7deab2bab81b6c6066113fe8b0a and head vijayupadya:2a5ef6d2c6f79986aaaad78b0810689c4e31b053
2025-10-01 10:20:01.647 [debug] [RateLimit] Extension rate limit remaining: 138, /repos/{owner}/{repo}/compare/{base}...{head}
2025-10-01 10:20:01.691 [debug] [RateLimit] GraphQL Rate limit remaining: 4780, cost: 1, PullRequestFiles
2025-10-01 10:20:01.784 [debug] [RateLimit] GraphQL Rate limit remaining: 4779, cost: 1, GetPendingReviewId
2025-10-01 10:20:01.981 [debug] [RateLimit] REST Rate limit remaining: 4940, cost: -1, /repos/{owner}/{repo}/compare/{base}...{head}
2025-10-01 10:20:01.981 [debug] [PullRequestModel] Fetch file changes and merge base of PR #9 - done, total files 2
2025-10-01 10:20:01.982 [debug] [PullRequestModel] Fetching review comments for PR #9 - enter
2025-10-01 10:20:01.982 [debug] [RateLimit] Extension rate limit remaining: 140, PullRequestComments
2025-10-01 10:20:01.989 [debug] [PRNode] Fetch children of PRNode #8
2025-10-01 10:20:01.989 [debug] [RateLimit] Extension rate limit remaining: 139, PullRequestFiles
2025-10-01 10:20:01.990 [debug] [RateLimit] Extension rate limit remaining: 138, GetPendingReviewId
2025-10-01 10:20:02.415 [debug] [RateLimit] GraphQL Rate limit remaining: 4777, cost: 1, GetPendingReviewId
2025-10-01 10:20:02.446 [debug] [RateLimit] GraphQL Rate limit remaining: 4778, cost: 1, PullRequestFiles
2025-10-01 10:20:02.447 [debug] [PullRequestModel] Fetching review comments for PR #8 - enter
2025-10-01 10:20:02.447 [debug] [RateLimit] Extension rate limit remaining: 139, PullRequestComments
2025-10-01 10:20:02.452 [debug] [PRNode] Fetch children of PRNode #7
2025-10-01 10:20:02.453 [debug] [PullRequestModel] Fetch file changes, base, head and merge base of PR #7 - enter
2025-10-01 10:20:02.453 [debug] [RateLimit] Extension rate limit remaining: 138, PullRequestFiles
2025-10-01 10:20:02.453 [debug] [IssueModel] Fetch viewers latest review commit
2025-10-01 10:20:02.454 [debug] [RateLimit] Extension rate limit remaining: 137, LatestReviewCommit
2025-10-01 10:20:02.455 [debug] [RateLimit] Extension rate limit remaining: 136, GetPendingReviewId
2025-10-01 10:20:02.579 [debug] [RateLimit] GraphQL Rate limit remaining: 4757, cost: 20, PullRequestComments
2025-10-01 10:20:02.580 [debug] [PullRequestModel] Fetching review comments for PR #9 - exit
2025-10-01 10:20:02.866 [debug] [RateLimit] GraphQL Rate limit remaining: 4756, cost: 1, LatestReviewCommit
2025-10-01 10:20:02.866 [debug] [PullRequestModel] Comparing commits for vijayupadya/test with base vijayupadya:d4c93a4f72c769f75d0629eb68fec3a646a06fa0 and head vijayupadya:4b984a856ed4eb2c65b6db83aeefa372852e36c2
2025-10-01 10:20:02.866 [debug] [PullRequestModel] Comparing commits for vijayupadya/test with base vijayupadya:d4c93a4f72c769f75d0629eb68fec3a646a06fa0 and head vijayupadya:4b984a856ed4eb2c65b6db83aeefa372852e36c2
2025-10-01 10:20:02.866 [debug] [RateLimit] Extension rate limit remaining: 137, /repos/{owner}/{repo}/compare/{base}...{head}
2025-10-01 10:20:02.915 [debug] [RateLimit] GraphQL Rate limit remaining: 4755, cost: 1, GetPendingReviewId
2025-10-01 10:20:03.097 [debug] [RateLimit] GraphQL Rate limit remaining: 4735, cost: 20, PullRequestComments
2025-10-01 10:20:03.097 [debug] [PullRequestModel] Fetching review comments for PR #8 - exit
2025-10-01 10:20:03.271 [debug] [RateLimit] REST Rate limit remaining: 4939, cost: -1, /repos/{owner}/{repo}/compare/{base}...{head}
2025-10-01 10:20:03.271 [debug] [PullRequestModel] Fetch file changes and merge base of PR #7 - done, total files 1
2025-10-01 10:20:03.415 [debug] [RateLimit] GraphQL Rate limit remaining: 4734, cost: 1, PullRequestFiles
2025-10-01 10:20:03.415 [debug] [PullRequestModel] Fetching review comments for PR #7 - enter
2025-10-01 10:20:03.415 [debug] [RateLimit] Extension rate limit remaining: 140, PullRequestComments
2025-10-01 10:20:03.994 [debug] [RateLimit] GraphQL Rate limit remaining: 4714, cost: 20, PullRequestComments
2025-10-01 10:20:03.994 [debug] [PullRequestModel] Fetching review comments for PR #7 - exit
It looks like you might refreshing the active PR view, not the Pull Requests view. This is the one to refresh:
Ah, got it. Yes this works