Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Team Reviewers to Pull Request #1126

Closed
taiidani opened this issue Apr 19, 2019 · 22 comments · Fixed by #4512
Closed

Add Team Reviewers to Pull Request #1126

taiidani opened this issue Apr 19, 2019 · 22 comments · Fixed by #4512
Assignees
Labels
feature-request Request for new features or functionality on-testplan
Milestone

Comments

@taiidani
Copy link

image

When using the "Add Reviewers" component of the Description view, the autocomplete list of users shows all users available to request review from, but not any of the GitHub Organization teams that are available from the web view.

image

@RMacfarlane RMacfarlane added the feature-request Request for new features or functionality label Apr 30, 2019
@madeddie
Copy link

I'm not well-versed in graphql at all. It's rather easy to find all teams of the parent owner organization of a repository, but not all of those teams would have access to that repository, so we would have to get the list of repositories per team and then filter in-app?

@DaniBedz
Copy link

This is the one feature that would stop me needing to go into the web view at all. 🙏

@alexr00 alexr00 added this to the February 2023 milestone Jan 9, 2023
@alexr00 alexr00 self-assigned this Jan 9, 2023
alexr00 added a commit that referenced this issue Feb 10, 2023
@alexr00
Copy link
Member

alexr00 commented Feb 16, 2023

We're starting endgame next week and the PR for this isn't yet ready to be merged (and even if it we get it merged tomorrow it won't have much selfhost time in the pre-release build).

Moving to March, but it should be available in pre-release in a week or two!

@alexr00
Copy link
Member

alexr00 commented Mar 22, 2023

Moving this out, I hope for the last time. The reason I haven't merged it yet is that we're waiting to see if GitHub can provide a way to get team reviewers without adding the read:org scope.

@alexr00
Copy link
Member

alexr00 commented Apr 14, 2023

It's a little hidden, but starting next week the pre-release version of the extension will have this button on the "Add reviewers" picker to fetch teams:

image

When you click that button you'll be prompted to sign in again since we need additional auth scopes to fetch teams.

alexr00 added a commit that referenced this issue Apr 14, 2023
* Add Team Reviewers to Pull Request
Fixes #1126

* Fix conflicts

* Delay new scopes until teams are requested

* Feedback
@alexr00 alexr00 mentioned this issue Apr 24, 2023
4 tasks
@curtisgibby
Copy link
Contributor

I love this functionality in theory, but in practice, it has made the "Reviewers" selector almost unusable on my machine. It takes several seconds to pull in the list items, sometimes not finishing before the selector goes away. How often does it try to grab collaborators and/or teams from the GitHub API? Can it be made to cache the downloaded data better?

This behavior seems similar to the problems described in #4814. Could the fix for that issue help in this situation?

@alexr00
Copy link
Member

alexr00 commented Aug 7, 2023

@curtisgibby we shouldn't be pulling reviewers every time you open the selector. I think I see the problem that would be causing the refresh to happen for you every time though.

@alexr00
Copy link
Member

alexr00 commented Aug 7, 2023

Actually, I don't see what's going on. I'm seeing the cache get used properly. @curtisgibby can you share logs from "GitHub Pull Request" next time you see this?

@curtisgibby
Copy link
Contributor

The first time that I created a PR (16:40 yesterday afternoon), it went quite quickly. Today when I tried to attach reviewers to another new PR, it went slowly.

2023-08-07 15:22:42.101 [info] Review> Validate state in progress
2023-08-07 15:22:42.101 [info] Review> Validating state...
2023-08-07 15:22:42.101 [info] PullRequestGitHelper> associate [BRANCH-REDACTED] with base branch [BRANCH]
2023-08-07 15:22:42.104 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:22:42.720 [info] Review> No matching pull request metadata found locally for current branch [BRANCH-REDACTED]
2023-08-07 15:22:42.720 [info] Review> no matching pull request metadata found for current branch [BRANCH-REDACTED]
2023-08-07 15:22:42.720 [info] Review> No matching pull request metadata found on GitHub for current branch [BRANCH-REDACTED]
2023-08-07 15:24:11.158 [info] Review> Validate state in progress
2023-08-07 15:24:11.158 [info] Review> Validating state...
2023-08-07 15:24:11.246 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:24:12.405 [info] Review> No matching pull request metadata found locally for current branch [BRANCH-REDACTED]
2023-08-07 15:24:12.405 [info] Review> no matching pull request metadata found for current branch [BRANCH-REDACTED]
2023-08-07 15:24:12.405 [info] Review> No matching pull request metadata found on GitHub for current branch [BRANCH-REDACTED]
2023-08-07 15:24:24.435 [info] Review> Validate state in progress
2023-08-07 15:24:24.435 [info] Review> Validating state...
2023-08-07 15:24:24.486 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:24:25.587 [info] Review> No matching pull request metadata found locally for current branch [BRANCH-REDACTED]
2023-08-07 15:24:25.587 [info] Review> no matching pull request metadata found for current branch [BRANCH-REDACTED]
2023-08-07 15:24:26.147 [info] Review> No matching pull request metadata found on GitHub for current branch [BRANCH-REDACTED]
2023-08-07 15:24:30.435 [info] CreatePullRequestViewProvider> Initializing "create" view: [JSON-REDACTED]
2023-08-07 15:24:36.714 [warning] GitHubRepository> List branches timeout hit.
2023-08-07 15:24:49.006 [info] PullRequestGitHelper> associate [BRANCH-REDACTED] with Pull Request #14434
2023-08-07 15:24:51.298 [info] Review> Validate state in progress
2023-08-07 15:24:51.298 [info] Review> Validating state...
2023-08-07 15:24:51.691 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:24:52.050 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:24:53.013 [info] Review> current branch [BRANCH-REDACTED] is associated with pull request #14434
2023-08-07 15:24:53.014 [info] Review> Resolving pull request
2023-08-07 15:24:54.167 [info] Review> Fetching pull request data
2023-08-07 15:24:54.167 [info] PullRequestTree> Adding PR #14434 to tree
2023-08-07 15:24:54.197 [info] Review> Register comments provider
2023-08-07 15:24:54.929 [info] Review> Display pull request status bar indicator and refresh pull request tree view.
2023-08-07 15:24:54.929 [info] Review> Using focus mode = true.
2023-08-07 15:24:54.929 [info] Review> State validation silent = false.
2023-08-07 15:24:54.929 [info] Review> PR show should show = false.
2023-08-07 15:24:54.956 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:24:54.956 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:24:55.439 [info] PullRequestTree> Creating file and commit nodes for PR #14434
2023-08-07 15:24:55.458 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:24:55.458 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:24:55.587 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:24:55.872 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:24:55.872 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:24:55.874 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:24:55.874 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:24:55.969 [info] Trying to use globalState for team reviewers.
2023-08-07 15:24:56.008 [info] Using globalState team reviewers for 1.
2023-08-07 15:29:49.363 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:29:49.364 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:29:49.364 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:29:49.578 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:29:49.578 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:29:49.751 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 15:29:49.751 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 15:29:49.762 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:29:49.762 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:29:49.863 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:29:49.863 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:29:49.950 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:29:49.953 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:29:49.953 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:29:50.249 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:29:50.249 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:29:50.254 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:29:50.254 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:34:52.706 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:34:52.706 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:34:52.706 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:34:52.914 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:34:52.914 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:34:53.098 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 15:34:53.098 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 15:34:53.102 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:34:53.102 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:34:53.153 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:34:53.153 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:34:53.210 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:34:53.299 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:34:53.299 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:34:53.531 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:34:53.532 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:34:53.534 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:34:53.534 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:39:56.502 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:39:56.502 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:39:56.502 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:39:56.707 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:39:56.707 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:39:56.878 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 15:39:56.878 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 15:39:56.885 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:39:56.885 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:39:56.979 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:39:56.979 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:39:57.057 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:39:57.081 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:39:57.082 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:39:57.352 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:39:57.352 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:39:57.353 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:39:57.354 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:45:00.214 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:45:00.215 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:45:00.215 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:45:00.430 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:45:00.430 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:45:00.646 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 15:45:00.646 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 15:45:00.657 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:45:00.657 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:45:00.867 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:45:00.867 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:45:01.008 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:45:01.008 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:45:01.035 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:45:01.384 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:45:01.384 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:45:01.386 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:45:01.386 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:50:04.196 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:50:04.196 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:50:04.196 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:50:04.412 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:50:04.412 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:50:04.610 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 15:50:04.610 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 15:50:04.617 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:50:04.617 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:50:04.711 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:50:04.711 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:50:04.825 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:50:04.828 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:50:04.829 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:50:05.130 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:50:05.130 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:50:05.132 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:50:05.132 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:55:07.731 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:55:07.731 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:55:07.731 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 15:55:07.935 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:55:07.935 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:55:08.170 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 15:55:08.170 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 15:55:08.175 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:55:08.175 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:55:08.290 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:55:08.290 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:55:08.371 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 15:55:08.375 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:55:08.375 [info] PullRequestTree> Got all children for Files node
2023-08-07 15:55:08.707 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 15:55:08.707 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 15:55:08.709 [info] PullRequestTree> Getting children for Files node
2023-08-07 15:55:08.709 [info] PullRequestTree> Got all children for Files node
2023-08-07 16:00:11.203 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:00:11.203 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:00:11.203 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:00:11.411 [info] PullRequestTree> Getting children for Files node
2023-08-07 16:00:11.411 [info] PullRequestTree> Got all children for Files node
2023-08-07 16:00:11.587 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 16:00:11.587 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 16:00:11.593 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:00:11.593 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:00:11.671 [info] PullRequestTree> Getting children for Files node
2023-08-07 16:00:11.671 [info] PullRequestTree> Got all children for Files node
2023-08-07 16:00:11.749 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:00:11.793 [info] PullRequestTree> Getting children for Files node
2023-08-07 16:00:11.793 [info] PullRequestTree> Got all children for Files node
2023-08-07 16:00:12.069 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:00:12.069 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:00:12.071 [info] PullRequestTree> Getting children for Files node
2023-08-07 16:00:12.071 [info] PullRequestTree> Got all children for Files node
2023-08-07 16:05:15.154 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:05:15.154 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:05:15.154 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:05:15.610 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 16:05:15.610 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 16:05:15.621 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:05:15.621 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:05:15.948 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:05:16.281 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:05:16.281 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:10:18.883 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:10:18.883 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:10:18.883 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:10:19.332 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 16:10:19.332 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 16:10:19.339 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:10:19.339 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:10:19.594 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:10:19.890 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:10:19.890 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:15:22.724 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:15:22.724 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:15:22.724 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:15:23.103 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 16:15:23.103 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 16:15:23.110 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:15:23.111 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:15:23.268 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:15:23.584 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:15:23.584 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:20:25.962 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:20:25.962 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:20:25.962 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:20:26.318 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 16:20:26.318 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 16:20:26.325 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:20:26.325 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:20:26.883 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:20:27.313 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:20:27.313 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:25:30.186 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:25:30.186 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:25:30.186 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:25:30.578 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 16:25:30.578 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 16:25:30.587 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:25:30.587 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:25:30.811 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:25:31.145 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:25:31.145 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:26:55.553 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:26:55.873 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:26:55.873 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:30:33.705 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:30:33.705 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:30:33.705 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:30:34.129 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 16:30:34.129 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 16:30:34.137 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:30:34.137 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:30:34.322 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:30:34.661 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:30:34.662 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:35:37.537 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:35:37.537 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:35:37.537 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:35:37.926 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 16:35:37.926 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 16:35:37.933 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:35:37.933 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:35:38.075 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:35:38.392 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:35:38.392 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:40:40.936 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:40:40.936 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:40:40.936 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-07 16:40:41.302 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 16:40:41.302 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 16:40:41.302 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-07 16:40:41.302 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-07 16:40:50.322 [info] Review> Validate state in progress
2023-08-07 16:40:50.322 [info] Review> Validating state...
2023-08-07 16:40:50.451 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:40:53.206 [info] Review> No matching pull request metadata found locally for current branch [BRANCH-REDACTED]
2023-08-07 16:40:53.206 [info] Review> no matching pull request metadata found for current branch [BRANCH-REDACTED]
2023-08-07 16:40:53.209 [info] Review> No matching pull request metadata found on GitHub for current branch [BRANCH-REDACTED]
2023-08-07 16:40:53.209 [info] PullRequestTree> Removing PR #14434 from tree
2023-08-07 16:40:53.342 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-07 16:40:53.342 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-07 16:44:16.682 [info] Review> Validate state in progress
2023-08-07 16:44:16.683 [info] Review> Validating state...
2023-08-07 16:44:16.882 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:44:19.268 [info] Review> No matching pull request metadata found locally for current branch [BRANCH-REDACTED]
2023-08-07 16:44:19.268 [info] Review> no matching pull request metadata found for current branch [BRANCH-REDACTED]
2023-08-07 16:44:19.268 [info] Review> No matching pull request metadata found on GitHub for current branch [BRANCH-REDACTED]
2023-08-07 16:57:34.613 [info] Review> Validate state in progress
2023-08-07 16:57:34.613 [info] Review> Validating state...
2023-08-07 16:57:34.724 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:57:37.603 [info] Review> No matching pull request metadata found locally for current branch [BRANCH-REDACTED]
2023-08-07 16:57:37.603 [info] Review> no matching pull request metadata found for current branch [BRANCH-REDACTED]
2023-08-07 16:57:37.604 [info] Review> No matching pull request metadata found on GitHub for current branch [BRANCH-REDACTED]
2023-08-07 16:58:39.924 [info] Review> Validate state in progress
2023-08-07 16:58:39.924 [info] Review> Validating state...
2023-08-07 16:58:40.036 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 16:58:41.702 [info] Review> No matching pull request metadata found locally for current branch [BRANCH-REDACTED]
2023-08-07 16:58:41.703 [info] Review> no matching pull request metadata found for current branch [BRANCH-REDACTED]
2023-08-07 16:58:41.703 [info] Review> No matching pull request metadata found on GitHub for current branch [BRANCH-REDACTED]
2023-08-07 17:00:13.381 [info] Review> Validate state in progress
2023-08-07 17:00:13.381 [info] Review> Validating state...
2023-08-07 17:00:13.496 [info] Found GitHub remote for folder [REDACTED]
2023-08-07 17:00:15.102 [info] Review> No matching pull request metadata found locally for current branch [BRANCH-REDACTED]
2023-08-07 17:00:15.102 [info] Review> no matching pull request metadata found for current branch [BRANCH-REDACTED]
2023-08-07 17:00:15.102 [info] Review> No matching pull request metadata found on GitHub for current branch [BRANCH-REDACTED]
2023-08-08 08:57:43.354 [info] Review> Validate state in progress
2023-08-08 08:57:43.354 [info] Review> Validating state...
2023-08-08 08:57:43.400 [info] Found GitHub remote for folder [REDACTED]
2023-08-08 08:57:44.440 [info] Review> No matching pull request metadata found locally for current branch [BRANCH-REDACTED]
2023-08-08 08:57:44.441 [info] Review> no matching pull request metadata found for current branch [BRANCH-REDACTED]
2023-08-08 08:57:44.826 [info] Review> No matching pull request metadata found on GitHub for current branch [BRANCH-REDACTED]
2023-08-08 08:59:54.991 [info] CreatePullRequestViewProvider> Initializing "create" view: [JSON-REDACTED]
2023-08-08 09:00:00.587 [warning] GitHubRepository> List branches timeout hit.
2023-08-08 09:16:06.462 [info] PullRequestGitHelper> associate [BRANCH-REDACTED] with Pull Request #14438
2023-08-08 09:16:12.322 [info] Found GitHub remote for folder [REDACTED]
2023-08-08 09:16:12.818 [info] Review> Validate state in progress
2023-08-08 09:16:12.819 [info] Review> Validating state...
2023-08-08 09:16:13.124 [info] Found GitHub remote for folder [REDACTED]
2023-08-08 09:16:14.434 [info] Review> current branch [BRANCH-REDACTED] is associated with pull request #14438
2023-08-08 09:16:14.434 [info] Review> Resolving pull request
2023-08-08 09:16:16.070 [info] Review> Fetching pull request data
2023-08-08 09:16:16.070 [info] PullRequestTree> Adding PR #14438 to tree
2023-08-08 09:16:16.152 [info] Review> Register comments provider
2023-08-08 09:16:17.398 [info] Review> Display pull request status bar indicator and refresh pull request tree view.
2023-08-08 09:16:17.399 [info] Review> Using focus mode = true.
2023-08-08 09:16:17.399 [info] Review> State validation silent = false.
2023-08-08 09:16:17.399 [info] Review> PR show should show = false.
2023-08-08 09:16:17.496 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-08 09:16:17.496 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-08 09:16:17.497 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-08 09:16:17.986 [info] PullRequestTree> Creating file and commit nodes for PR #14438
2023-08-08 09:16:18.026 [info] PullRequestTree> Getting children for Files node
2023-08-08 09:16:18.026 [info] PullRequestTree> Got all children for Files node
2023-08-08 09:16:18.399 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-08 09:16:18.399 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-08 09:16:18.399 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-08 09:16:18.399 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-08 09:16:18.399 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-08 09:16:18.399 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-08 09:16:18.507 [info] PullRequestTree> Getting children for Files node
2023-08-08 09:16:18.507 [info] PullRequestTree> Got all children for Files node
2023-08-08 09:16:19.076 [info] PullRequestTree> Getting children for Files node
2023-08-08 09:16:19.077 [info] PullRequestTree> Got all children for Files node
2023-08-08 09:16:19.253 [info] Found GitHub remote for folder [REDACTED]
2023-08-08 09:16:19.382 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-08 09:16:19.382 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-08 09:16:19.411 [info] PullRequestTree> Getting children for Files node
2023-08-08 09:16:19.411 [info] PullRequestTree> Got all children for Files node
2023-08-08 09:16:26.688 [info] Trying to use globalState for team reviewers.
2023-08-08 09:16:27.172 [info] Using globalState team reviewers for 1.
2023-08-08 09:16:56.449 [info] Trying to use globalState for team reviewers.
2023-08-08 09:16:58.172 [info] Trying to use globalState for team reviewers.
2023-08-08 09:17:00.163 [info] Using globalState team reviewers for 1.
2023-08-08 09:17:00.529 [info] Using globalState team reviewers for 1.
2023-08-08 09:17:35.896 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-08 09:17:35.897 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-08 09:17:35.897 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-08 09:17:35.897 [info] PullRequestTree> Local files have changed, refreshing Files node
2023-08-08 09:17:36.099 [info] PullRequestTree> Getting children for Files node
2023-08-08 09:17:36.099 [info] PullRequestTree> Got all children for Files node
2023-08-08 09:17:36.421 [info] PullRequestTree> Comments have changed, refreshing Files node
2023-08-08 09:17:36.421 [info] PullRequestTree> Comments have changed, refreshing Commits node
2023-08-08 09:17:36.438 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-08 09:17:36.438 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-08 09:17:36.733 [info] PullRequestTree> Getting children for Files node
2023-08-08 09:17:36.733 [info] PullRequestTree> Got all children for Files node
2023-08-08 09:17:36.925 [info] PullRequestTree> Getting children for Files node
2023-08-08 09:17:36.925 [info] PullRequestTree> Got all children for Files node
2023-08-08 09:17:37.024 [info] Found GitHub remote for folder [REDACTED]
2023-08-08 09:17:37.411 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-08 09:17:37.411 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-08 09:17:37.416 [info] PullRequestTree> Getting children for Files node
2023-08-08 09:17:37.416 [info] PullRequestTree> Got all children for Files node

@alexr00
Copy link
Member

alexr00 commented Aug 8, 2023

The cached team reviewers are being used correctly in those logs. @curtisgibby can you confirm that these are your steps?

  1. Create a PR.
  2. After the PR is created, open the PR description/overview.
  3. Click the "Reviewers" heading or the gear next to it.
  4. The reviewers quick pick is empty and is super slow to populate.

@curtisgibby
Copy link
Contributor

@alexr00 yep, that's my process. 🤷🏻

@alexr00
Copy link
Member

alexr00 commented Aug 9, 2023

Ok, I'm making a change to further improve the reviewer caching and add more logging. @curtisgibby, the change will be in the pre-release build of the extension tomorrow. If you are able to try out the pre-release version of the extension once the changes are available tomorrow and do the following that would help me understand what's going on:

  1. Open a PR description
  2. Open the reviewer quick pick and then close it. It doesn't matter if you add a reviewer.
  3. Repeat 2.
  4. Share the last couple lines from the "GitHub Pull Request" output. It should contain something like this:
2023-08-09 14:57:04.413 [info] Using in-memory cached assignable users.
2023-08-09 14:57:04.414 [info] Trying to use globalState for teamReviewers.
2023-08-09 14:57:04.462 [info] Using globalState teamReviewers for 4.
2023-08-09 14:57:05.702 [info] QuickPicks> Setting quick pick reviewers took 1289.219999998808ms
2023-08-09 14:57:09.367 [info] Using in-memory cached assignable users.
2023-08-09 14:57:09.367 [info] Using in-memory cached team reviewers.
2023-08-09 14:57:09.468 [info] QuickPicks> Setting quick pick reviewers took 101.68020000308752ms

@curtisgibby
Copy link
Contributor

Thanks for your patience. I had to figure out how to install the pre-release version. I read these log entries as saying the first query took 38 seconds, and the second took 2.2 seconds. 😥

2023-08-15 13:12:30.023 [info] PullRequestTree> Creating file and commit nodes for PR #14516
2023-08-15 13:12:30.805 [info] PullRequestTree> Getting children for Files node
2023-08-15 13:12:30.805 [info] PullRequestTree> Got all children for Files node
2023-08-15 13:12:30.834 [info] Found GitHub remote for folder [REDACTED]
2023-08-15 13:12:30.843 [info] Using in-memory cached mentionable users.
2023-08-15 13:12:30.843 [info] Using in-memory cached assignable users.
2023-08-15 13:12:32.053 [info] PullRequestTree> Review threads have changed, refreshing Files node
2023-08-15 13:12:32.054 [info] PullRequestTree> Review threads have changed, refreshing Commits node
2023-08-15 13:12:33.517 [info] PullRequestTree> Getting children for Files node
2023-08-15 13:12:33.517 [info] PullRequestTree> Got all children for Files node
2023-08-15 13:12:51.690 [info] Using in-memory cached assignable users.
2023-08-15 13:12:51.690 [info] Trying to use globalState for teamReviewers.
2023-08-15 13:12:51.806 [info] Using globalState teamReviewers for 1.
2023-08-15 13:13:30.044 [info] QuickPicks> Setting quick pick reviewers took 38353.46510000527ms
2023-08-15 13:13:54.357 [info] Using in-memory cached assignable users.
2023-08-15 13:13:54.357 [info] Using in-memory cached team reviewers.
2023-08-15 13:13:56.567 [info] QuickPicks> Setting quick pick reviewers took 2209.8542000055313ms

@alexr00
Copy link
Member

alexr00 commented Aug 15, 2023

Thanks @curtisgibby! Looks like we're pretty quick to get the actual users, it's getting them ready to show that's slow. I suspect this slowness is coming from downloading all the avatars. I'm going to try not including the avatars if we have a large number of reviewers.

@alexr00
Copy link
Member

alexr00 commented Aug 15, 2023

@curtisgibby do you happen to know how many assignable users you have in your repo? I'm thinking of making the limit 100 as that's still pretty quick on my machine with my connection, but I know not all machines + connections will be as fast.

@curtisgibby
Copy link
Contributor

Our org has 301 people and 102 teams, and it looks like we're trying to pull them all into that selector.

@diminutivesloop
Copy link

I'm also seeing slow loading performance. I could swear it was faster at one point, but I haven't used this feature often enough to say for sure.

@alexr00
Copy link
Member

alexr00 commented Aug 15, 2023

The avatars could be the problem for you too @diminutivesloop.

I opted for conservative and now only download all those avatars if there will be < 80 of them. The change will be available in the pre-release build tomorrow if you want to try it out!

@alexr00
Copy link
Member

alexr00 commented Aug 16, 2023

The new pre-release version is available it you want to try it out!

@curtisgibby
Copy link
Contributor

It's SOOOOO much faster with the latest version!

2023-08-16 11:15:46.976 [info] Using in-memory cached assignable users.
2023-08-16 11:15:46.976 [info] Trying to use globalState for teamReviewers.
2023-08-16 11:15:47.014 [info] Using globalState teamReviewers for 1.
2023-08-16 11:15:48.002 [info] QuickPicks> Setting quick pick reviewers took 1026.391899999231ms
2023-08-16 11:16:03.528 [info] Using in-memory cached assignable users.
2023-08-16 11:16:03.528 [info] Using in-memory cached team reviewers.
2023-08-16 11:16:04.430 [info] QuickPicks> Setting quick pick reviewers took 901.2476000003517ms

Thanks @alexr00! 🎉

@alexr00
Copy link
Member

alexr00 commented Aug 16, 2023

Excellent. Thanks @curtisgibby for testing this and providing logs so I could find the cause!

@curtisgibby
Copy link
Contributor

@alexr00 I created a new ticket #5183 related to another issue I'm seeing with this functionality. Thanks again for your help in resolving the speed issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality on-testplan
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants