hasActivityInThePast false negative bug

TL;DR

hasActivityInThePast returns false , despite the user having past activity.

Reproducible with GraphQL Explorer , using the query attached below:

  1. first query with variables as follow:

    {
    “username”: “lera222”,
    }

This would query for a contribution collection starting a year ago, and ending today.
The result is:

{
  "data": {
    "rateLimit": {
      "remaining": 4999,
      "resetAt": "2019-10-29T16:50:59Z"
    },
    "user": {
      "contributionsCollection": {
        "hasAnyContributions": true,
        "hasActivityInThePast": false,
        "startedAt": "2018-10-28T04:00:00Z",
        "endedAt": "2019-10-30T03:59:59Z",

[....]

In particular, we have "hasActivityInThePast": false, and "startedAt": "2018-10-28T04:00:00Z",.

  1. now use the same query, with the following variables:

    {
    “username”: “lera222”,
    “end_at”: “2018-10-28T04:00:00Z”
    }

the result is:

{
  "data": {
    "rateLimit": {
      "remaining": 4999,
      "resetAt": "2019-10-29T16:55:06Z"
    },
    "user": {
      "contributionsCollection": {
        "hasAnyContributions": true,
        "hasActivityInThePast": false,
        "startedAt": "2017-10-28T04:00:00Z",
        "endedAt": "2018-10-28T04:00:00Z",
        "commitContributionsByRepository": [
          {
            "repository": {
              "id": "MDEwOlJlcG9zaXRvcnkxNTM3NzQ5Mjg="
            },
            "contributions": {
              "totalCount": 2
            }
          },
          {
            "repository": {
              "id": "MDEwOlJlcG9zaXRvcnkxNTM3NzQ3MDI="
            },
            "contributions": {
              "totalCount": 2
            }
          }
        ]
      }
    }
  }
}

specifically, we have "hasAnyContributions": true, (and the actual counts for two repos)

Query:

query ($username: String!, $end_at :DateTime, $start_at :DateTime) {

  rateLimit {
    remaining
    resetAt
  }

  user(login: $username) {

    contributionsCollection(from: $start_at, to: $end_at){

        hasAnyContributions
        hasActivityInThePast
        startedAt
        endedAt

        commitContributionsByRepository(maxRepositories:100){

            repository{
                id
            }

            contributions{
                totalCount
            }
        }
    }
  }
}

this was originally posted (an rejected) as an issue