Skip to content

Conversation

zenador
Copy link
Contributor

@zenador zenador commented Jun 20, 2024

Addresses #14135

@zenador
Copy link
Contributor Author

zenador commented Jun 20, 2024

@beorn7 PTAL

bboreham
bboreham previously approved these changes Jun 20, 2024
Copy link
Member

@bboreham bboreham left a 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.

@beorn7
Copy link
Member

beorn7 commented Jun 26, 2024

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 fmt.Errorf with %w. It could be changed to a different approach, but obviously not as part of this PR.

Copy link
Member

@beorn7 beorn7 left a 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.

@beorn7
Copy link
Member

beorn7 commented Jun 26, 2024

The comment in lines 116 to 119 needs an update. (I cannot comment on unchanged lines directly, so I'm providing the link here.)

@zenador zenador force-pushed the separate-info-anno branch from 53d1a03 to cbb5c42 Compare July 2, 2024 10:05
@zenador zenador marked this pull request as draft July 2, 2024 11:06
@zenador
Copy link
Contributor Author

zenador commented Jul 2, 2024

Making it a draft so we can wait for the frontend to update first before merging.

zenador added 2 commits July 3, 2024 17:55
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
@zenador zenador force-pushed the separate-info-anno branch from d6f46aa to 92adad9 Compare July 3, 2024 09:55
@zenador
Copy link
Contributor Author

zenador commented Jul 3, 2024

@beorn7 PTAL

beorn7
beorn7 previously approved these changes Jul 3, 2024
Copy link
Member

@beorn7 beorn7 left a 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>
@zenador zenador marked this pull request as ready for review July 5, 2024 20:25
@zenador zenador requested review from juliusv and Nexucis as code owners July 5, 2024 20:25
@zenador
Copy link
Contributor Author

zenador commented Jul 5, 2024

@beorn7 Added the minimal UI change

@juliusv
Copy link
Member

juliusv commented Jul 5, 2024

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>
Copy link
Member

@juliusv juliusv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants