Skip to content
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

Entity Search Not Returning All Results #1133

Open
jospdeleon opened this issue Sep 24, 2021 · 5 comments
Open

Entity Search Not Returning All Results #1133

jospdeleon opened this issue Sep 24, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@jospdeleon
Copy link

Description

If I run the graphQL request below, I get a count of 1305. But if I make the same command in the CLI, it only gives me 200 which makes me think that the CLI is not doing any recursion in the background. However, I don’t see an option in the CLI to “force” it to make recursive calls. I'm using the same API key in the GraphQL request as what's set in my newrelic profile.

{
  actor {
    entitySearch(queryBuilder: {domain: APM, reporting: true}) {
      count
    }
  }
}

Result is:

"data": {
    "actor": {
      "entitySearch": {
        "count": 1305
      }
    }
  }

CLI command and output:

$ newrelic entity search --domain APM --reporting true |  jq length
200

Go Version

go version go1.15.8 darwin/amd64

Current behavior

Please see description above.

Expected behavior

Expected behavior is that I should get the same results for both the graphql call and the cli command.

Steps To Reproduce

Steps to reproduce the behavior:

  1. I have encountered this bug with newrelic version 0.35.2
  2. I downloaded a much older version newrelic version 0.13.0 that I know is working correctly. I don't know when the bug was introduced.
  3. This is the output from the older version, which matches the graphql result:
newrelic-cli_0.13.0_Darwin_x86_64 $ ./newrelic entity search --domain APM --reporting true | jq length
1305
@aminoz007
Copy link

I'm experiencing the same issue with version 0.36.6, it doesn't seem that we are using the cursor capability from GraphQL :(

@stale
Copy link

stale bot commented Oct 15, 2021

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Issue or PR has been inactive for a period of time. This label is configured in stale-bot. label Oct 15, 2021
@stale
Copy link

stale bot commented Oct 23, 2021

This issue has been automatically closed due to a lack of activity for an extended period of time.

@stale stale bot closed this as completed Oct 23, 2021
@aminoz007
Copy link

This was closed but it was not fixed. Tested with the latest version newrelic version 0.42.2

@kidk kidk reopened this Apr 1, 2022
@stale stale bot removed the stale Issue or PR has been inactive for a period of time. This label is configured in stale-bot. label Apr 1, 2022
@kidk kidk added the bug Something isn't working label Apr 1, 2022
@NRhzhao
Copy link
Contributor

NRhzhao commented May 22, 2023

Relates to: #138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants