-
Notifications
You must be signed in to change notification settings - Fork 579
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
[Discussion] Reviews for pull requests #546
Comments
I like the flow of this, I like having the whole review grouped on the Description page and being able to navigate to that from any of the draft badges. I think it would be nice to be able to start and end a review in the same place. So in place of the I would opt to not have the |
I have a couple different thoughts here, one is on the proposal above and one is on how it merges with the current review mechanism.
GitHub uses the language "Pending" instead of draft, I like either but unless we have a strong reason to be different might as well match. The other thing I noticed on GitHub is that they put the submit review button on every file. This might be a convenient thing so you don't need to bounce around to the description page but I think what @queerviolet proposes is simpler ,especially since we will also need to support things like approval status and that would be easier in the description page:
When I first used the extension, I thought that this was the same thing as the GitHub review, but this is different. An option could be to make this the actual bulk review mechanism, but that would mean we require you to checkout the branch to do a review, and I am not sure if everyone would want that. But my concern is the confusion over the two concepts. |
@RMacfarlane — Concur, we don't need the @mmanela — I actually don't think it would be too bad to require the branch be checked out, since then we could easily make multi-file suggested changes, something we've been discussing. Also, agree that we should just have a What contribution points do we need to add to the VS Code API to enable this? Any chance of adding those for the early Dec release? |
While playing around with microsoft/vscode#64010, I found that GitHub v3 API is limited in Review comments management, with which we can't archive the same experience as github.com. Some blockers/limitations I have noticed
For now to test the API, I wrote a sample extension https://github.com/rebornix/comments-provider-sample . |
Any timeline for this feature? We are using VSCode extensively for TensorFlow.js and our reviews can sometimes have 20-30 comments. We are currently using Reviewable, but if we had a review mode with draft comments in VSCode I can see us completely switching to VSCode for reviews. |
Any updates coming for the new year ? |
This is on our plan for January |
Problem
Overview
What should the review flow for pull requests look like? The main complexity here is that we have, at a minimum, three kinds of users coming in with different mental models.
Green Witch just wants to make a comment on a PR.
Bald Witch knows about Reviews (as a clustering of comments) from the web and wants to create them explicitly.
Boy Witch wants the behavior of Reviews (grouping many comments and not spamming their reviewees) but doesn't know what they are.
We'd like to keep them all happy (because if we don't they will ritually sacrifice us and eat our souls, just as they did to Macbeth—poor guy, but he really had it coming).
User Impact/High Level Use Cases
As Green Witch, I can add one-off comments to a PR
As Boy Witch, I can avoid spamming my co-workers with notifications. (This despite the fact that Boy Witch doesn't know what Reviews are, coming in.)
As Bald Witch, I can indicate that multiple changes are needed for my approval.
Justification
Users are asking for this functionality, and we have it on the web. If you have a lot of comments, the current review flow is pretty unfriendly—you end up spamming your coworkers.
Discussion & Mocks
After some faffing about trying to make the flow work with just one button, I think we should probably just have two: Send and Start Review.
We can workshop the names, but something I like about these is that (1) they're relatively short, and (2) it's obvious that send puts something on the server.
This arrangement makes Send feel like the default action. We may want to flip and de-emphasize it, if we want to encourage people to create reviews.
I also think that starting another comment should do the same thing as clicking Start Review. That is, a "Review" is just one or more comments that are sitting there in a draft state. The key point here is discoverability: if I want to make multiple comments before Sending them all out, but reviews sound strange and foreign to me, then I might try... creating multiple comments without clicking send. If we make that work, we then provide an on-ramp for people to discover what reviews are, and why they're useful.
Once a comment has been added to a review, we should show it inline, just as we do other comments, but with some clear indicator it's a draft:
Then when I add another comment, the options presented should be a little different:
Here, we want to make it clear that we're in a different state—specifically, that there's a review pending, and that comments are, preferentially, added to the review.
Finally, clicking any of the Draft badges or going to the Description page will show me my pending review:
We may want to workshop the buttons on this page, but that's the general idea.
The text was updated successfully, but these errors were encountered: