-
Notifications
You must be signed in to change notification settings - Fork 146
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
The show command does not display comment status correctly #22
Comments
Interesting! Omar (our Tech Lead) wrote that code. Maaaaybe he had a Thanks! On Wed, Dec 23, 2015 at 4:25 AM, jishi9 [email protected] wrote:
|
As pointed out in google#22, the status for every comment seems to be fyi. This seems to fix that.
The pull request I've just made should fix this bug, @jishi9 does this look reasonable to you? |
I've just ran through this process a couple of times since fixing this bug, and it also appears to change the status of the review as a whole. The discussion we had in that last thread outlined that this wasn't the case. Since changing this code, it now is. At this stage I'm not sure whether or not that is intended. But yeah - just thought I'd mention that. |
I am eager to hear what Omar originally had in mind. Thanks again. On Wednesday, December 23, 2015, Harry Lawrence [email protected]
|
I don't think that's the case, the status of review as a whole was already displayed fine. As far as I could tell the bug only pertained to how the status of individual commits are displayed (always Looking at review.go where the With this change things started to make more sense. This is the model I have pieced out: A review's overall status:
A comment-thread's overall status (this is a recursive definition):
N.B. A comment-thread may be a global, attached to a file, or attached to a line. |
Fixed updateThreadsStatus to modify original thread instances, rather than modifying copies This is a proposed fix to #22 `updateThreadsStatus` was not actually updating the CommentThread instances, but updating copies thereof.
@jishi9 Yes, your interpretation is exactly what was intended (and your bug fix was a good one). I merged your PR, and it seems to have fixed the bug (from what I've seen) so I'm going to close this issue. Please re-open it if you find anything seems off. Also, thanks for digging into this and sending out the fix! |
It seems that the show command always displays the status of a comment as
fyi
.Steps to reproduce
Then running
git appraise show
will show something like:On the other hand
git appraise show -json
displays the correct status (in theresolved
property):The text was updated successfully, but these errors were encountered: