I second the suggestion to hide all inline comments in a diff view. This does give a easy reading if there are many comments one-after-one.
Something on the lines of D12650.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
May 15 2015
In T7447#113660, @alancrisp wrote:Most of the issues our team run into stem from the fact that we can't toggle the comments temporarily in order to get a distraction free view of the code. Some of our inlines spark some quite lengthy discussions which can sometimes get in the way when you only need to see the code.
We do use the diff of diffs feature heavily which helps this, but it's not always an option for a reviewer due to the fact we generally require two accepts on a diff before it lands. It's not uncommon for a diff to be in a second or third iteration by the time a second reviewer starts their own review from scratch. For the second reviewer, seeing previous discussions isn't always useful - it can be, but we also find that often it's desirable just to hide the noise for a minute to view the current code in its entirety before continuing with the review.
Just to demonstrate, this one gave a couple of our devs some grief earlier today. The comments create so much noise you can barely see the loop being reviewed.
May 14 2015
Fair enough. I can appreciate all the problems with the submitted diff and why the problem space is more complicated than it appears -- this was more of a proof of concept for the team I work with than something that should be consumed by a wider user base.
Sorry, this is a lot harder to build than it seems like it might be, and probably not appropriate for a contributor. In particular:
May 13 2015
Most of the issues our team run into stem from the fact that we can't toggle the comments temporarily in order to get a distraction free view of the code. Some of our inlines spark some quite lengthy discussions which can sometimes get in the way when you only need to see the code.
May 12 2015
May 11 2015
May 8 2015
In situations where ghost comments wind up doing more harm than good, it might be nice to hide them via a keyboard shortcut.
It just happened to me as well, here's the stack-trace:
Played a bit with the most recent implementation of this (7c96ba4ced4825b659286f1ecd55e954408b685c) and it seems to work quite well for my use case. We had a few reviews with various comments on different versions, and for the most part, I'm pretty happy with how the current code is pulling them forward. It's not perfect, there are a few cases where stuff is out of context, but I'm partial to having the comment there anyway so I don't forget about it completely, and can go back to the previous diff to read it in context if needed.
No worries.
Thanks @couture! Sorry mine vanished: it took quite some time to get the CLA signed and I lost all time after that.
May 7 2015
I've been enjoying the combination of the "Done" flag and inherited comments, but one thing that I've found bothersome is that I need to click "Done" for each comment in a "thread" to "close out" that line of conversation (once I've actually done the requested thing).
Thanks for the report!
I think we're just coming at this from very different use cases. If a diff has this line:
Let me be clear: I agree with you that there's no ideal implementation here, and it's quite possible to come up with something better/more natural.
Just to double check, you definitely don't want the example in T7447#112231 (where only one character was changed, directly addressing an inline) to port forward in an ideal implementation?
That's interesting, and kind of makes sense. You usually comment on the line that you want to discuss.
If you make a change after the comment, it still ports forward, but any change in the hunk prior to the comment seems sufficient to stop it.
Short answer: Yes.
Here, I directly addressed an inline by making a one-character change:
Here, I changed line 7:
@epriestly, it's doing it here:
https://github.com/phacility/libphutil/pull/45
Ah, I got some of them to port forward.
Given your experience with GitHub Enterprise, would you expect the comments on the pull requests I linked above to be porting across updates if GitHub had behavior equivalent to GHE?
I really suck at online communication, i was referring to Github _enterprise_ in my previous comments. I rarely use github.com, and can't speak to the behavior.
Chad's comment on the diff view didn't port into the file, and didn't port forward when I updated the diff.
None of the comments are visible on this view, either:
Can someone show me how to use this feature on GitHub? For example, my comment here:
May 6 2015
We don't currently decode base85 in diff form, so pasting a git diff --binary diff into Phabricator doesn't produce the exact same diff as running arc diff. Particularly, in base85 we just note "this binary file was added"; via arc diff we would show the actual file.
Maybe @epriestley has thoughts on what else to look at as well.
D12735 was your diff I uploaded here for testing. You can also test using rGITTEST if you want to rule out your local environment.
That diff presents no errors on this server. You're also welcome to use this server to upload sample diffs to show your bug, but my guess at this point is it's something unique to your environment. Please check your servers logs for errors. Beyond that, this is currently unreproducible for us.
Again, I get the error: this is the diff:
We don't need the entire diff, just something that reproduces the error. I am not able to reproduce any issues based on the steps you've listed. We have no other reports of this bug, either.
The step is pretty usual,
May 5 2015
This is part of the work on T731, T1279. T1279#42118 as the original list of not yet finished work. T6596 is a duplicate. This keeps coming up enough I'm fine leaving a task open for people to subscribe to since the original isn't easy to find.
It can not possibly do this
We can definitely do what GitHub does (or some reasonable approximation, at least), I just don't want to spend a lot of time implementing it without understanding what problem we're trying to solve here. I thought I understood the problem, but I think that I don't actually have a good understanding of the use cases. I'd like to step back, discuss the problem more to understand exactly what you're after and why what we have isn't working well, and then move forward from there. Specifically, what I'm trying to do is:
Actually, I'm wondering if it's possible to do what github does. I might be incredibly ignorant here, but since Phabricator abstracts over several version control systems, finding the correct context might not be possible in light of git rebases. This might explain why github can collapse (or not) across fairly drastic changes.
What's different about Phabricator which makes the ability to mark your own comments as done important here but not important on GitHub?
One of my main use cases is making sure that inlines survive a rebase, which we use frequently due to how unforgiving arc patch is. If that results in actual hunk changes, I'd still like to see the inline, and decide for myself if (1) it's still relevant, and (2) it still targets the right lines. If it's no longer relevant, it would be nice if I could "dismiss" it, which would stop it from showing up. If it no longer targets the right lines, it would be nice if I could "re-target" it.
Github actually has an algorithm for exactly this that's mostly good.
I've thought about this feature, and would be quite satisfied if I could mark things that I've requested as 'done'
In the general case, it is impossible to bring comments forward on the same line (the line may have been deleted, split into multiple lines, duplicated, completely changed, etc.)
Potentially interesting (for integration or inspiration): http://blog.developer.bazaarvoice.com/2015/05/01/automating-a-git-rebase-workflow/
Somewhat already mentioned a few times, but these are the two things me and co-workers noticed after using this feature for a while:
- The comments seem way too large to me. (We have a lot of inline discussion, probably a lot more than happens on this install)
- The "older"/"newer" comments appear on wrong lines a large chunk of the time. This is the most annoying part, I'd say, because a lot of inlines are really specific about what happens on a line.
Those two points aside, this feature is a huge win.
Also, to summarize the recent changes:
(In that mock, imagine that all the "reply" inlines appear in a thread, even though there's technically only one on the mock.)
In T7447#110475, @scohen wrote:I don't know @epriestley, I found it really confusing to have my comment on a different line entirely.
May 4 2015
It was partly a duplicate, but the main, and now only issue in this Task is not covered in T7754 in wich this task was merged into
Reduced Task to one bug
Combining a coversation to a single box would also help.
+1 to links to the original context.
In T7447#111479, @epriestley wrote:In T7447#111476, @avivey wrote:Also, I'm missing a button to "see comment in original context", in cases where the current context is confusing.
I do think this is reasonable. If we un-fold, we could make "Older Comment" / "Newer Comment" be links to the comment in its original context.
In T7447#111476, @avivey wrote:Also, I'm missing a button to "see comment in original context", in cases where the current context is confusing.
Fold “Done” comments only. Leave “Not Done” open.
Also, I'm missing a button to "see comment in original context", in cases where the current context is confusing.
Other random ideas:
I find that I expand everything I see, even things I "know" I wouldn't find interesting, but I blame this on my private OCD.
What about expand it if it is not done?
If you could magically confirm that a ghost inline still makes sense on the updated diff, then auto-expanding it makes more sense to me. The main utility of folding it by default would be to minimize the damage of bringing forward "stale" inlines. @avivey made a good point that this could be integrated more tightly into the "Done" state.
I used auto folding and I can honestly say - it's a mixture. When working on same group of code when I remember context - it's time saver. When I forget context - It's OK. So I guess that's for me it's 75% good.
"Older Comment" no longer exists at HEAD. Please see T7447 for discussion of this feature.
