Skip to content

[Canvas] Remove legacy embeddable functions#257294

Merged
cqliu1 merged 14 commits intoelastic:mainfrom
cqliu1:canvas/remove-legacy-embeddable-functions
Mar 12, 2026
Merged

[Canvas] Remove legacy embeddable functions#257294
cqliu1 merged 14 commits intoelastic:mainfrom
cqliu1:canvas/remove-legacy-embeddable-functions

Conversation

@cqliu1
Copy link
Copy Markdown
Contributor

@cqliu1 cqliu1 commented Mar 11, 2026

Summary

Closes #257291.

Follow up to #252191 where we automatically convert legacy savedLens, savedVisualizations, and savedMap expressions into generic embeddable expressions. This PR removes savedLens, savedVisualizations, savedMap, and savedSearch functions and any related code.

Note: The savedSearch function was created but never exposed to the user, so no migration is necessary for savedSearch, and it can be safely removed.

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests were updated or added to match the most common scenarios
  • If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines
  • Review the backport guidelines and apply applicable backport:* labels.

Identify risks

Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.

@cqliu1 cqliu1 marked this pull request as ready for review March 11, 2026 21:32
@cqliu1 cqliu1 requested a review from a team as a code owner March 11, 2026 21:32
@cqliu1 cqliu1 added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// loe:small Small Level of Effort impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Feature:Canvas labels Mar 11, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@cqliu1 cqliu1 added v9.4.0 release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Mar 11, 2026
Copy link
Copy Markdown
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.

LGTM
code review only

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Mar 12, 2026

⏳ Build in-progress, with failures

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #119 / Journey[infra_hosts_view] Navigate to Hosts view and load 500 hosts
  • [job] [logs] FTR Configs #119 / Journey[infra_hosts_view] Navigate to Hosts view and load 500 hosts
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Burn Rate Embeddable - creates a dashboard with an SLO burn rate embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Burn Rate Embeddable - creates a dashboard with an SLO burn rate embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Error Budget Embeddable - creates a dashboard with an SLO error budget embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Error Budget Embeddable - creates a dashboard with an SLO error budget embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Overview Embeddable - creates a dashboard with an SLO group overview embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Overview Embeddable - creates a dashboard with an SLO group overview embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Overview Embeddable - creates a dashboard with an SLO single overview embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Overview Embeddable - creates a dashboard with an SLO single overview embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Overview Embeddable - creates a dashboard with minimal group overview panel config
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Overview Embeddable - creates a dashboard with minimal group overview panel config
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Overview Embeddable - defaults slo_instance_id to * when omitted in single overview panel config
  • [job] [logs] Scout: [ observability / slo ] plugin / local-serverless-observability_complete - SLO Overview Embeddable - defaults slo_instance_id to * when omitted in single overview panel config
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Burn Rate Embeddable - creates a dashboard with an SLO burn rate embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Burn Rate Embeddable - creates a dashboard with an SLO burn rate embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Error Budget Embeddable - creates a dashboard with an SLO error budget embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Error Budget Embeddable - creates a dashboard with an SLO error budget embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Overview Embeddable - creates a dashboard with an SLO group overview embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Overview Embeddable - creates a dashboard with an SLO group overview embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Overview Embeddable - creates a dashboard with an SLO single overview embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Overview Embeddable - creates a dashboard with an SLO single overview embeddable panel via REST API
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Overview Embeddable - creates a dashboard with minimal group overview panel config
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Overview Embeddable - creates a dashboard with minimal group overview panel config
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Overview Embeddable - defaults slo_instance_id to * when omitted in single overview panel config
  • [job] [logs] Scout: [ observability / slo ] plugin / local-stateful-classic - SLO Overview Embeddable - defaults slo_instance_id to * when omitted in single overview panel config

History

@cqliu1 cqliu1 merged commit 62773f0 into elastic:main Mar 12, 2026
16 checks passed
sorenlouv pushed a commit that referenced this pull request Mar 17, 2026
## Summary

Closes #257291.

Follow up to #252191 where we automatically convert legacy `savedLens`,
`savedVisualizations`, and `savedMap` expressions into generic
`embeddable` expressions. This PR removes `savedLens`,
`savedVisualizations`, `savedMap`, and `savedSearch` functions and any
related code.

Note: The `savedSearch` function was created but never exposed to the
user, so no migration is necessary for `savedSearch`, and it can be
safely removed.


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] 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)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
jeramysoucy pushed a commit to jeramysoucy/kibana that referenced this pull request Mar 26, 2026
## Summary

Closes elastic#257291.

Follow up to elastic#252191 where we automatically convert legacy `savedLens`,
`savedVisualizations`, and `savedMap` expressions into generic
`embeddable` expressions. This PR removes `savedLens`,
`savedVisualizations`, `savedMap`, and `savedSearch` functions and any
related code.

Note: The `savedSearch` function was created but never exposed to the
user, so no migration is necessary for `savedSearch`, and it can be
safely removed.


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] 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)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

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:Canvas impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Canvas] Remove legacy embeddable functions

4 participants