Conversation
Maybe others will know what you talk about, but on my side I don't get the point of doing that. Can you explain a bit further what will be the point to hide a query. For me it's like putting a comment some lines of code, you can do it, but it's not clean and you should do it. |
|
@Nexucis so the main idea of this feature is support of the visibility toggle is a killer feature when working with those kind of plugins - users would create multiple queries, and using the math query combine results together or execute math operations, but they don't really care about seeing the results from the queries on the graph, they want to see only the result of the expression, thats why we need a visibility toggle, a way for the user to define which queries he wants to see and doesn't want to see. the legend on the graph does it aswell, but the main difference is that the legend visibility is not kept in the definition itself, and also each query could have multiple series, making it redundant to select/unselect multiple series together. |
|
Ah yeah ok makes more sense explained like that, thanks. I think it will be much simpler for the definition and query and the number of PRs / release to make, once we are extracting the datasource and dashboard definitions to another repo. |
…tton Signed-off-by: OrReuben <orreuven1243@gmail.com>

Description
Attached to perses/perses#3884
Matches grafana's hide query button.
The idea is to let the user the ability to hide/show queries on the query level, and to make it stored in the JSON definition. this is in order to support stuff like math queries or any kind of other query that references a query result.
Screenshots
Checklist
[<catalog_entry>] <commit message>naming convention using one of thefollowing
catalog_entryvalues:FEATURE,ENHANCEMENT,BUGFIX,BREAKINGCHANGE,DOC,IGNORE.UI Changes
See e2e docs for more details. Common issues include: