Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Status not updated after PR was rebased #528

Open
dstoc opened this issue May 15, 2018 · 2 comments
Open

Status not updated after PR was rebased #528

dstoc opened this issue May 15, 2018 · 2 comments
Assignees
Labels

Comments

@dstoc
Copy link

dstoc commented May 15, 2018

The Problem

I reviewed a patch with comments and it was updated to address them, but the UI still says "You reviewed with comments". I assume the change were pushed as a rebase (git push -f)

screenshot 2018-05-15 at 13 35 59

screenshot 2018-05-15 at 13 36 11

Expected Behavior

Expected to see "1 new commit"

Links to Relevant PR's / Issues

PolymerLabs/arcs#1263

@samuelli samuelli self-assigned this May 16, 2018
@samuelli samuelli added the bug label May 16, 2018
@samuelli
Copy link
Member

After some debugging, it looks like pushedDate is null. Not really sure I understand why since that seems to be the one we care about. I think maybe the commit was amended and hence why the authoredDate is quite far in the past. The only value that appears to work in this particular case seems to be commitedDate - I'm not quite convinced we always want to be using this instead though.

image

@samuelli
Copy link
Member

commitedDate and authoredDate can't be null per https://developer.github.com/v4/object/commit/ but if pushedDate is present, that's the one we want to use.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants