-
Notifications
You must be signed in to change notification settings - Fork 69
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
Let user to specify "format as" in query builder #300
Comments
This is a UX problem in my opinion. If the user selects "Time series" but the returned data doesn't contain the right fields for that format do we throw an error? Do we switch back to Table view? Both? The current reliance on user's having stored the README rules in their brains isn't ideal either. We could do something where we have the three formats as a dropdown in the header of the query builder and when you switch between them show some help text for each one? Ideally we work with UX on how this works. |
I suggest providing a dropdown in the header so that user can pick format in advance. Based on selection, there might be either a info box displayed with details on query requirements, or we can be more proactive validating whether query does have everything we need. (not sure if doable as user can provide his query) @asimpson |
@jkaflik I'll post back here once I have a chat with UX. The next step after that will be figuring out when this can get worked on. |
Hopefully I'll be able to reconnect with UX next week. Sorry for the delay. |
Other things we can do based on the query selector:
|
Hi @asimpson did you had a chance to speak to UX? |
We need this for the traces view as well which enforces a similar req. https://grafana.com/docs/grafana/latest/explore/trace-integration/#data-api |
@jkaflik I have not, I will try to chat with them Wednesday. |
What happened:
Currently, the user is forced to follow the predefined algorithm that figures out the expected data format based on fields available in the query and its name. (please see Screenshots section)
This requires the user to remember the rules to follow described in README.md.
What you expected to happen:
The user should be able to intentionally select what is the data format expected by him. Please see the screenshot attached from a view in Altinity's CH data source plugin.
Screenshots
Grafana CH plugin:
Altinity's data source plugin:
The text was updated successfully, but these errors were encountered: