Variable controls in Discover#3440
Merged
florent-leborgne merged 8 commits intoelastic:mainfrom Oct 15, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive documentation for variable controls in Discover, enabling users to create dynamic queries with reusable controls that can be shared between Discover and Dashboards.
- Adds new section documenting how to create, edit, and use variable controls in Discover
- Creates shared content snippets for variable control configuration and examples to reduce duplication
- Documents the workflow for importing Discover queries with controls into dashboards
Reviewed Changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| explore-analyze/discover/try-esql.md | Adds complete variable controls documentation for Discover including creation, editing, and dashboard import |
| explore-analyze/dashboards/add-controls.md | Updates dashboard controls documentation to use shared snippets and adds import workflow |
| explore-analyze/_snippets/variable-control-form.md | Creates shared snippet for variable control configuration parameters |
| explore-analyze/_snippets/variable-control-examples.md | Creates shared snippet with ESQL query examples using variable controls |
| explore-analyze/_snippets/import-discover-query-controls-into-dashboard.md | Creates shared snippet documenting the import workflow from Discover to Dashboard |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Contributor
🔍 Preview links for changed docs |
stratoula
approved these changes
Oct 10, 2025
Contributor
stratoula
left a comment
There was a problem hiding this comment.
Lovely! Added some small comments, nothing crucial
explore-analyze/_snippets/import-discover-query-controls-into-dashboard.md
Show resolved
Hide resolved
Co-authored-by: Stratou <stratoula1@gmail.com>
Co-authored-by: Stratou <stratoula1@gmail.com>
benironside
approved these changes
Oct 10, 2025
Contributor
benironside
left a comment
There was a problem hiding this comment.
LGTM, left some suggestions for your consideration! Hope they're helpful
explore-analyze/_snippets/import-discover-query-controls-into-dashboard.md
Outdated
Show resolved
Hide resolved
explore-analyze/_snippets/import-discover-query-controls-into-dashboard.md
Outdated
Show resolved
Hide resolved
…dashboard.md Co-authored-by: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com>
Co-authored-by: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com>
Co-authored-by: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com>
…dashboard.md Co-authored-by: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com>
rhr323
pushed a commit
to rhr323/docs-content
that referenced
this pull request
Oct 27, 2025
This PR: - Adds a section about creating variable controls in Discover, with sub-sections on how to edit them and how to bring these controls over to a dashboard - Transforms certain pieces of content into content snippets that are shared between Discover and Dashboards docs as variable controls are used in both apps: code examples, control parameters. - Adds the section about "how to bring Discover sessions along with their controls to a dashboard" to the "Add controls" page in dashboards docs as well. This content is single-sourced so only maintained in one place. - Re-adds a "preview" flag to the Variable controls section in dashboard docs, that one was mistakenly removed in another PR Find page previews in one of the comments below Note: Tested on staging environment on Oct 10 Closes: elastic#3096 --------- Co-authored-by: Stratou <stratoula1@gmail.com> Co-authored-by: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com>
naemono
pushed a commit
to naemono/docs-content
that referenced
this pull request
Oct 28, 2025
This PR: - Adds a section about creating variable controls in Discover, with sub-sections on how to edit them and how to bring these controls over to a dashboard - Transforms certain pieces of content into content snippets that are shared between Discover and Dashboards docs as variable controls are used in both apps: code examples, control parameters. - Adds the section about "how to bring Discover sessions along with their controls to a dashboard" to the "Add controls" page in dashboards docs as well. This content is single-sourced so only maintained in one place. - Re-adds a "preview" flag to the Variable controls section in dashboard docs, that one was mistakenly removed in another PR Find page previews in one of the comments below Note: Tested on staging environment on Oct 10 Closes: elastic#3096 --------- Co-authored-by: Stratou <stratoula1@gmail.com> Co-authored-by: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR:
Find page previews in one of the comments below
Note: Tested on staging environment on Oct 10
Closes: #3096