Duplicate milestone events in timeline


#1

The following query shows me 2 milestone events for the given PR:

query {
  repository(owner: "Instagram", name: "IGListKit") {
    name
    issueOrPullRequest(number: 852) {
      ... on PullRequest {
        timeline(first:100) {
          nodes {
            __typename
            ...on MilestonedEvent {
              createdAt
              actor{login}
              milestoneTitle
            }
            ...on DemilestonedEvent {
              createdAt
              actor{login}
              milestoneTitle
            }
          }
        }
      }
    }
  }
}

This gives me the following response:

{
  "data": {
    "repository": {
      "name": "IGListKit",
      "issueOrPullRequest": {
        "timeline": {
          "nodes": [
            {
              "__typename": "Commit"
            },
            {
              "__typename": "IssueComment"
            },
            {
              "__typename": "Commit"
            },
            {
              "__typename": "IssueComment"
            },
            {
              "__typename": "Commit"
            },
            {
              "__typename": "IssueComment"
            },
            {
              "__typename": "PullRequestReviewThread"
            },
            {
              "__typename": "PullRequestReviewThread"
            },
            {
              "__typename": "PullRequestReview"
            },
            {
              "__typename": "Commit"
            },
            {
              "__typename": "IssueComment"
            },
            {
              "__typename": "MilestonedEvent",
              "createdAt": "2017-07-12T16:35:19Z",
              "actor": {
                "login": "jessesquires"
              },
              "milestoneTitle": "3.1.0"
            },
            {
              "__typename": "MilestonedEvent",
              "createdAt": "2017-07-12T16:35:19Z",
              "actor": {
                "login": "jessesquires"
              },
              "milestoneTitle": "3.1.0"
            },
            {
              "__typename": "IssueComment"
            },
            {
              "__typename": "IssueComment"
            },
            {
              "__typename": "IssueComment"
            },
            {
              "__typename": "IssueComment"
            },
            {
              "__typename": "IssueComment"
            },
            {
              "__typename": "IssueComment"
            },
            {
              "__typename": "IssueComment"
            }
          ]
        }
      }
    }
  }
}

Notice the 2 milestone events have different ids, but the timestamps are exactly the same. There is only one event on the actual PR.


#2

Heya! Sorry for the late reply, but we had this logged on our internal tracker, and it should now be fixed!