Skip to content

[ES|QL][Discover] Supports controls#229598

Merged
stratoula merged 106 commits intoelastic:mainfrom
stratoula:controls-in-discover
Sep 19, 2025
Merged

[ES|QL][Discover] Supports controls#229598
stratoula merged 106 commits intoelastic:mainfrom
stratoula:controls-in-discover

Conversation

@stratoula
Copy link
Contributor

@stratoula stratoula commented Jul 28, 2025

Summary

Part of #225948

Enables controls in Discover from the editor.

image

The users can save the charts with variables in a dashboard but the controls are not been transferred. We will deal with it on a follow up PR. The same behavior is on dashboards too so there is a consistency there 😄.

Flaky tests runner
#229598 (comment)

Note: The Expand width to fit available space is not working but I will hide it for Discover only in a follow up PR

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@stratoula stratoula added the Feature:ES|QL ES|QL related features in Kibana label Aug 5, 2025
… src/core/server/integration_tests/ci_checks'
Copy link
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the latest SO changes, this LGTM on the Data Discovery side 👍 Great work!

Although funnily enough, the test you commented out in 48bf66d was for the stateful version, and not the serverless one that was previously failing, but it still passed CI 😅 I guess that confirms it is still related to flakiness in main. Feel free to comment the serverless one out too before your next merge in case it fails again. And apologies for the flakiness, we'll get it resolved soon.

@kertal kertal requested a review from lukasolson September 17, 2025 17:18
Copy link
Contributor

@lukasolson lukasolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@stratoula
Copy link
Contributor Author

@davismcphee done! (Very funny and weird indeed 😄 )

@stratoula
Copy link
Contributor Author

stratoula commented Sep 18, 2025

@davismcphee and now it fails 😄

I am sorry I had to revert 🤷‍♀️

And now it fails again 🤦‍♀️

Copy link
Contributor

@gsoldevila gsoldevila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Core changes LGTM! new model version added in 'search' SO.

Copy link
Contributor

@vadimkibana vadimkibana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESQL changes LGTM.

Copy link
Contributor

@Heenawter Heenawter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elastic/kibana-presentation code changes LGTM. Noticed three potential bugs, though.

@stratoula stratoula requested a review from a team as a code owner September 19, 2025 07:21
Copy link
Contributor

@delanni delanni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

limits.yml 👍

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #27 / Serverless Observability - Deployment-agnostic API integration tests SLO Find SLOs using kql query searches SLOs using kqlQuery

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
discover 1559 1563 +4

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/unified-histogram 94 95 +1
savedSearch 101 102 +1
total +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
controls 486.6KB 486.6KB +30.0B
discover 1.1MB 1.2MB +3.6KB
esql 521.3KB 521.6KB +293.0B
lens 1.5MB 1.5MB +21.0B
savedSearch 6.8KB 6.9KB +83.0B
unifiedSearch 353.3KB 353.9KB +563.0B
total +4.6KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
discover 23.3KB 23.4KB +137.0B
lens 61.0KB 61.1KB +38.0B
savedSearch 10.0KB 10.0KB +74.0B
unifiedSearch 22.4KB 22.5KB +42.0B
total +291.0B
Unknown metric groups

API count

id before after diff
@kbn/unified-histogram 121 122 +1
savedSearch 104 105 +1
total +2

ESLint disabled line counts

id before after diff
discover 16 17 +1

Total ESLint disabled count

id before after diff
discover 18 19 +1

History

@stratoula stratoula merged commit f82a862 into elastic:main Sep 19, 2025
12 checks passed
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Sep 24, 2025
## Summary

Part of elastic#225948

Enables controls in Discover from the editor.

<img width="1252" height="122" alt="image"
src="https://github.com/user-attachments/assets/76792f2e-abd0-406b-8a9f-84c53a06dfc4"
/>

The users can save the charts with variables in a dashboard but the
controls are not been transferred. We will deal with it on a follow up
PR. The same behavior is on dashboards too so there is a consistency
there 😄.


Flaky tests runner
elastic#229598 (comment)

Note: The Expand width to fit available space is not working but I will
hide it for Discover only in a follow up PR

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Hannah Mudge <hannah.wright@elastic.co>
Co-authored-by: Davis McPhee <davis.mcphee@elastic.co>
Co-authored-by: Lukas Olson <lukas@elastic.co>
niros1 pushed a commit that referenced this pull request Sep 30, 2025
## Summary

Part of #225948

Enables controls in Discover from the editor.

<img width="1252" height="122" alt="image"
src="https://github.com/user-attachments/assets/76792f2e-abd0-406b-8a9f-84c53a06dfc4"
/>

The users can save the charts with variables in a dashboard but the
controls are not been transferred. We will deal with it on a follow up
PR. The same behavior is on dashboards too so there is a consistency
there 😄.


Flaky tests runner
#229598 (comment)

Note: The Expand width to fit available space is not working but I will
hide it for Discover only in a follow up PR

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Hannah Mudge <hannah.wright@elastic.co>
Co-authored-by: Davis McPhee <davis.mcphee@elastic.co>
Co-authored-by: Lukas Olson <lukas@elastic.co>
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
## Summary

Part of elastic#225948

Enables controls in Discover from the editor.

<img width="1252" height="122" alt="image"
src="https://github.com/user-attachments/assets/76792f2e-abd0-406b-8a9f-84c53a06dfc4"
/>

The users can save the charts with variables in a dashboard but the
controls are not been transferred. We will deal with it on a follow up
PR. The same behavior is on dashboards too so there is a consistency
there 😄.


Flaky tests runner
elastic#229598 (comment)

Note: The Expand width to fit available space is not working but I will
hide it for Discover only in a follow up PR

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Hannah Mudge <hannah.wright@elastic.co>
Co-authored-by: Davis McPhee <davis.mcphee@elastic.co>
Co-authored-by: Lukas Olson <lukas@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:ES|QL ES|QL related features in Kibana needs_docs release_note:feature Makes this part of the condensed release notes Team:ESQL ES|QL related features in Kibana t// v9.2.0