ReviewNB / support

Issues and feature requests for ReviewNB
https://reviewnb.com
59 stars 8 forks source link

Diffs between commits within a Github PR #23

Closed neilpeterman closed 5 years ago

neilpeterman commented 5 years ago

It's useful to zoom in on specific changes in response to review comments. Is there a way to do this?

amit1rrr commented 5 years ago

Review comments are on a specific notebook cell. The UI shows that cell just above the review comment. Do you wish to see more context around that cell or the entire commit diff?

Individual commit diffs are available separately. Would it help if we create easy navigation from PR discussion to commit diffs?

If possible, can you describe your workflow for this use case a little. Maybe it'll help us come up with a better/generic solution.

neilpeterman commented 5 years ago

Thanks for your reply. To clarify, I meant general comments that e.g. appear on the "Discussion" tab. These are often followed by changes to specific cells. What I see in the "Changes" tab is all of the commits together, for example for a new notebook this won't show diffs at all for the revisions.

If diffs for individual commits are available from the discussion tab that would be very helpful, akin to how this works on the "Conversation" tab on Github. Curently I don't see how to do that on ReviewNB -- when I click "XX commits" it navigates back to Github.

Two use cases we have that might help add context:

Either of these use cases is covered on some level by a tool like nbdime, but having this web-based like what you've built offers a lot of advantages.

amit1rrr commented 5 years ago

Thank you for explaining with use cases. It makes sense for us to have commit diffs so reviewer can identify & review only what was changed in a specific commit.

It'll be best to have a "Commits" tab (next to Discussion & Changes) that lists all commits in the PR. Clicking on any of them would show the commit diff. How does that sound?

neilpeterman commented 5 years ago

I think that would work really great!

amit1rrr commented 5 years ago

Cool. I have noted this down, expect it to be implemented within the next few weeks. Let's keep this issue open until then.

amit1rrr commented 5 years ago

@neilpeterman This is now live. There's a Commits tab under the PR which will help you quickly see commit diffs. Let me know if you face any issues accessing it.

neilpeterman commented 5 years ago

@amit1rrr Looks awesome!