Skip to content

[ES|QL] Discover to dashboard with controls, saving the histogram#237070

Merged
stratoula merged 26 commits intoelastic:mainfrom
stratoula:discover-dashboard-chart-with-controls
Oct 10, 2025
Merged

[ES|QL] Discover to dashboard with controls, saving the histogram#237070
stratoula merged 26 commits intoelastic:mainfrom
stratoula:discover-dashboard-chart-with-controls

Conversation

@stratoula
Copy link
Contributor

@stratoula stratoula commented Oct 1, 2025

Summary

Closes #235477

Allows to navigate to a dashboard and carry also the controls with the embeddable state.

This enables to carry the controls when the user tries to save the Lens chart from Discover which is controlled by an ES|QL control.

meow

Checklist

@stratoula stratoula changed the title [ES|QL] Navigate to dashboard with controls Oct 2, 2025
@stratoula stratoula changed the title [ES|QL] Navigates to dashboard with controls Oct 2, 2025
@elastic elastic deleted a comment from elasticmachine Oct 3, 2025
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#9440

[✅] src/platform/test/functional/apps/discover/tabs/config.ts: 50/50 tests passed.

see run history

@stratoula stratoula added v9.3.0 Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana t// enhancement New value added to drive a business result release_note:enhancement backport:skip This PR does not require backporting Feature:Discover Discover Application and removed enhancement New value added to drive a business result labels Oct 8, 2025
@stratoula stratoula marked this pull request as ready for review October 8, 2025 05:45
@stratoula stratoula requested a review from a team as a code owner October 8, 2025 05:45
Copy link
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

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

Code review only, LGTM for the @elastic/security-threat-hunting-investigations team

@elastic elastic deleted a comment from elasticmachine Oct 10, 2025
Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

LGTM for datavis team. Manually tested the new behaviour, also tested with multiple charts bringing the same control to a dashboard. Verified functional tests.

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

kibana-presentation changes LGTM - approving with understanding that follow on PR will remove navigateToWithMultipleEmbeddablePackage and update navigateToWithEmbeddablePackage to only support an array of embeddables.
code review and tested in chrome

@stratoula stratoula enabled auto-merge (squash) October 10, 2025 14:00
@elasticmachine
Copy link
Contributor

elasticmachine commented Oct 10, 2025

⏳ Build in-progress, with failures

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #93 / endpoint Endpoint permissions: when running with user/role [t2_analyst] should display endpoint data on Host Details

History

@stratoula stratoula disabled auto-merge October 10, 2025 15:20
@stratoula stratoula merged commit 5f03bb1 into elastic:main Oct 10, 2025
11 of 12 checks passed
stratoula added a commit that referenced this pull request Oct 16, 2025
## Summary

Follow up of #237070

This is a cleanup after the above got merged. We are:
- Removing the `navigateToWithEmbeddablePackage ` in favor of
`navigateToWithMultipleEmbeddablePackage `. So now we navigate with an
array of states
- Removes the `getIncomingState ` in favor of `getIncomingPackagesState
`
- Small changes to the consumers to respect the above


### Checklist
- [ ] [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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
mgadewoll pushed a commit to tkajtoch/kibana that referenced this pull request Oct 17, 2025
## Summary

Follow up of elastic#237070

This is a cleanup after the above got merged. We are:
- Removing the `navigateToWithEmbeddablePackage ` in favor of
`navigateToWithMultipleEmbeddablePackage `. So now we navigate with an
array of states
- Removes the `getIncomingState ` in favor of `getIncomingPackagesState
`
- Small changes to the consumers to respect the above


### Checklist
- [ ] [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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
…astic#237070)

## Summary

Closes elastic#235477

Allows to navigate to a dashboard and carry also the controls with the
embeddable state.

This enables to carry the controls when the user tries to save the Lens
chart from Discover which is controlled by an ES|QL control.


![meow](https://github.com/user-attachments/assets/3513e2a6-a66d-42f3-8ffa-01394453f534)


### Checklist

- [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>
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Oct 23, 2025
…astic#237070)

## Summary

Closes elastic#235477

Allows to navigate to a dashboard and carry also the controls with the
embeddable state.

This enables to carry the controls when the user tries to save the Lens
chart from Discover which is controlled by an ES|QL control.


![meow](https://github.com/user-attachments/assets/3513e2a6-a66d-42f3-8ffa-01394453f534)


### Checklist

- [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>
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Oct 23, 2025
## Summary

Follow up of elastic#237070

This is a cleanup after the above got merged. We are:
- Removing the `navigateToWithEmbeddablePackage ` in favor of
`navigateToWithMultipleEmbeddablePackage `. So now we navigate with an
array of states
- Removes the `getIncomingState ` in favor of `getIncomingPackagesState
`
- Small changes to the consumers to respect the above


### Checklist
- [ ] [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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Oct 27, 2025
…astic#237070)

## Summary

Closes elastic#235477

Allows to navigate to a dashboard and carry also the controls with the
embeddable state.

This enables to carry the controls when the user tries to save the Lens
chart from Discover which is controlled by an ES|QL control.


![meow](https://github.com/user-attachments/assets/3513e2a6-a66d-42f3-8ffa-01394453f534)


### Checklist

- [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>
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Oct 27, 2025
## Summary

Follow up of elastic#237070

This is a cleanup after the above got merged. We are:
- Removing the `navigateToWithEmbeddablePackage ` in favor of
`navigateToWithMultipleEmbeddablePackage `. So now we navigate with an
array of states
- Removes the `getIncomingState ` in favor of `getIncomingPackagesState
`
- Small changes to the consumers to respect the above


### Checklist
- [ ] [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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
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:Discover Discover Application Feature:Embedding Embedding content via iFrame Feature:ES|QL ES|QL related features in Kibana needs_docs release_note:enhancement Team:ESQL ES|QL related features in Kibana t// v9.3.0