-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: summary panel nrql query issues (Fixes #10) #20
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In nerdlets/top-nerdlet/process-details.js, we should shift away from the common time picker nrql helper function and use the @newrelic/nr1-community function.
<NerdGraphQuery query={nrql}> | ||
{({ loading, error, data }) => { | ||
if (loading) { | ||
return <Spinner style={{ height: '110px' }} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about just fillContainer vs. a custom style?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can do that. The difference is fillContainer covers the entire right panel (summary + charts) whereas this height restriction made it so the spinner covered just the summary component (i.e. less overall "flashing" when a new process is selected). I'm good to change it to fillContainer if we want to favor using the built-in props.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff overall. I'd like to see those two changes ahead of a merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As Joel mentioned, let's replace timePickerNrql with timeRangeToNrql, otherwise LGTM 👍
…avor of built-in prop
Looks like all the changes are present in the files now. Not sure why the 4th commit didn't come through in the conversation but ¯_(ツ)_/¯ |
🎉 This PR is included in version 0.4.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
NrqlQuery
component withNerdGraphQuery
(also utilizesNerdGraphError
for convenient error handling)NrqlQuery
component fail to return data whenNrqlQuery.FORMAT_TYPE.RAW
is specified. I did a test with the SINCE clause continuously updating vs remaining static to determine this is an issue. It seems something in the service itself is not responding with data, so we may need to look into this more in case it impacts other Nerdpacks. SwitchingNrqlQuery
out forNerdGraphQuery
addressed the issue.