Total number of comments for an issue is zero but that is not the case


#1

The following query returns totalCount equal to 0, however the issue has several comments.

Query

{
  repository(owner: "elastic", name: "kibana") {
    issue(number: 10789) {
      title
      state
      comments {
        totalCount
      }
    }
  }
}

Response

{
  "data": {
    "repository": {
      "issue": {
        "title": "Build a Better Search Experience",
        "state": "OPEN",
        "comments": {
          "totalCount": 0
        }
      }
    }
  }
}

#4

Hi @scampi,

Is this issue still happening? I just ran the same query but got 4:

{
  repository(owner: "elastic", name: "kibana") {
    issue(number: 10789) {
      title
      state
      comments {
        totalCount
      }
    }
  }
}
{
  "data": {
    "repository": {
      "issue": {
        "title": "Build a Better Search Experience",
        "state": "OPEN",
        "comments": {
          "totalCount": 4
        }
      }
    }
  }
}

#5

Hello @bswinnerton, I still get 0 for the totalCount. That would mean there is something wrong with my account ?


#6

Hi @scampi,

We’ve been unable to reproduce the same response (totalCount being 0) to the query you’ve provided.

Have you only encountered this issue while fetching the comment count for other issues, or only on elastic/kibana#10789? At time of writing, I am able to get a comment count of 8.

{
  "data": {
    "repository": {
      "issue": {
        "title": "Build a Better Search Experience",
        "state": "OPEN",
        "comments": {
          "totalCount": 8
        }
      }
    }
  }
}

It would be great if you could let us know if you’re still encountering this issue.


#7

@dewski I got 8 now too ;o)