Skip to content
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

Enhancement: Change a dashboard panel's timefield on the fly #205286

Closed
rseldner opened this issue Dec 30, 2024 · 5 comments
Closed

Enhancement: Change a dashboard panel's timefield on the fly #205286

rseldner opened this issue Dec 30, 2024 · 5 comments
Labels
enhancement New value added to drive a business result Feature:Dashboard Dashboard related features Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@rseldner
Copy link

Describe the feature:
Change a dashboard panel's timefield on the fly

Describe a specific use case for the feature:

It would be nice to be able to edit the timefield of an individual panel on the fly.

The data behind a visualization can have multiple date fields.
Sometimes users need to visualization based on these addition date fields, but the timefield of a visualization is fixed to what is set on the source data view. So to currently accommodate this, a user would need to either:

  • Edit the timefield of a data view - This can be undesireable as it could potentially impact other panels where the change is not needed/relevant. The user might not even have the required privileges.
  • Create multiple data views of the same data with unique timefields - This is cumbersome and would still involve having to edit the visualization's data view, which is impractical.

Mockup:

Image

@rseldner rseldner added enhancement New value added to drive a business result Feature:Dashboard Dashboard related features Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels Dec 30, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 30, 2024
@kibanamachine kibanamachine added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas and removed needs-team Issues missing a team label labels Dec 30, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 30, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 30, 2024
@Heenawter
Copy link
Contributor

Heenawter commented Dec 30, 2024

This will be possible with ES|QL controls - closing in favour of #134706 for now. cc @ghudgins

@rseldner
Copy link
Author

This will be possible with ES|QL controls

@Heenawter 👋 Will such controls apply to all panel types or strictly ESQL panels? Can't quite tell in ESQL Control's PR example: #202875

Won't the controls apply to all panels on a dashboard? The request here is for users to be able to change it per panel.
I see a way around that would be to add the tstart and tend parameters to a viz; however, changing the ESQL syntax requires actually editing the dashboard/visualization, which would require privileges dashboard users may/should not have.

@Heenawter
Copy link
Contributor

Heenawter commented Dec 30, 2024

Will such controls apply to all panel types or strictly ESQL panels?

They will only apply to ES|QL panels.

Won't the controls apply to all panels on a dashboard?

Nope! :) The idea behind ES|QL controls is that you will create an ES|QL variable that can be used in individual panels - when a control is created on that variable, then only the panels that use that variable will be impacted by changes to that control. This will be maniputable by a user, even if they do not have edit privileges for dashboard and/or relevant visualizations.

@rseldner
Copy link
Author

They will only apply to ES|QL panels.

Making the switch will be very cumbersome for large environments, unless we will be introducing a way to switch existing panels from Lens to ESQL.

Nope! :) The idea behind ES|QL controls is that you will create an ES|QL variable that can be used in individual panels - when a control is created on that variable, then only the panels that use that variable will be impacted by changes to that control. This will be maniputable by a user, even if they do not have edit privileges for dashboard and/or relevant visualizations.

Thanks you, that aspect of it sounds promising.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Dashboard Dashboard related features Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

4 participants