-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Explore: Reuse Dashboard's QueryRows component #38942
Conversation
6c37154
to
0a505a8
Compare
When manually testing this, I've found following inconsistencies with previous QueryRow:
weird.mov
long.mov |
A few issues: Loki
Screen.Recording.2021-09-10.at.10.50.57.mov
See how changing visibility changes the graph/results but not removing the row: Screen.Recording.2021-09-10.at.10.53.31.mov
Screen.Recording.2021-09-10.at.11.03.39.movGraphite
Screen.Recording.2021-09-10.at.10.58.36.movwhat's more after switching to a different data source one of the Graphite query remains on the screen. |
d416e2a
to
6d26546
Compare
6d26546
to
57617b6
Compare
This PR makes me so happy ❤️ |
Marking this as ready for review. I'd like it to get in before 8.2 but there are probably a couple of rough edges and some additional love might be needed here and there. |
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 great! 🚀
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.
Really good job on this!!! 👌 I was still able to reproduce
long.mov
Otherwise LGTM! 🚀
Are there any doc changes or do only the change logs and release notes need an update? Thanks for any clarification. |
@achatterjee-grafana there's only one docs change in |
Sounds good. I just wanted to make sure we are not missing docs. Thank you! |
@ivanahuckova I'll merge this one and I'll address the panel length issue in a follow-up pr. Thanks again for catching it! |
Removes Explore specific implementation and reuse the same QueryRows component from dashboards:
![Screenshot 2021-09-14 at 14 12 15](https://user-images.githubusercontent.com/1170767/133263859-8b10dcf3-08b5-4404-8b48-c7f8f08d8f9c.png)
Noticeable behavior differences compared to the previous version:
Screen.Recording.2021-09-10.at.14.45.58.mov
Issues
Graphite has a weird behavior (refId changing / editor freezing)Toggling the second query off and on makes it disappearRemoving the query doesn't remove existing logs resultsTODO
getHighlighterExpressions
getHighlighterExpressions
in changelogExploreQueryFieldProps
ExploreQueryFieldProps
in changelogDeprecation notice
getHighlighterExpressions
in datasource APIs ( used to highlight logs while editing queries) has been deprecated and will be removed in a future release.Deprecation notice
ExploreQueryFieldProps
interface for query editors has been deprecated and will be removed in a future release. UseQueryEditorProps
instead.