-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Split warnings and info annotations in API response #14327
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
Conversation
@beorn7 PTAL |
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.
This change lgtm.
The existing implementation by which errors.Is(err, PromQLInfo)
is working seems a bit tricksy to me; better done via Go types.
I guess this was my idea, seduced by the convenience of using |
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.
Thank you very much. Looks good in general. I just have a number of ideas about naming. See individual comments.
The comment in lines 116 to 119 needs an update. (I cannot comment on unchanged lines directly, so I'm providing the link here.) |
53d1a03
to
cbb5c42
Compare
Making it a draft so we can wait for the frontend to update first before merging. |
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
d6f46aa
to
92adad9
Compare
@beorn7 PTAL |
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.
Looks good. Thank you.
Do you think you could add a "minimal UI change" to this PR? Like rendering the infos in the same way as the warnings, just in a slightly less alarming color. That would be an MVP we could merge, and then we could ask the UI experts to make it nicer later, like including a button to hide infos or something.
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
@beorn7 Added the minimal UI change |
UI change looks good to me besides the comment on the color. |
Co-authored-by: Julius Volz <julius.volz@gmail.com> Signed-off-by: zenador <zenador@users.noreply.github.com>
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.
Thanks 👍
Addresses #14135