Skip to content

[9.3] [canvas] fix unable to load embeddable when no references are provided (#257779)#258593

Open
ThomThomson wants to merge 6 commits intoelastic:9.3from
ThomThomson:backport/9.3/pr-257779
Open

[9.3] [canvas] fix unable to load embeddable when no references are provided (#257779)#258593
ThomThomson wants to merge 6 commits intoelastic:9.3from
ThomThomson:backport/9.3/pr-257779

Conversation

@ThomThomson
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

elastic#257779)

Adds BWC code to canvas that adds library reference when `savedObjectId` is provided but no reference exists.

(cherry picked from commit 56c6e4f)

# Conflicts:
#	x-pack/platform/plugins/private/canvas/server/embeddable/transform_workpad_out.ts
#	x-pack/platform/test/functional/apps/canvas/embeddables/lens.ts
@ThomThomson ThomThomson added the backport This PR is a backport of another PR label Mar 19, 2026
@ThomThomson ThomThomson enabled auto-merge (squash) March 19, 2026 17:04
@nreese
Copy link
Copy Markdown
Contributor

nreese commented Mar 23, 2026

@elasticmachine merge upstream

@nreese
Copy link
Copy Markdown
Contributor

nreese commented Mar 23, 2026

/ci

const embeddableType = fn.arguments.type[0] as string;
const transforms = embeddableService.getTransforms(embeddableType);
fn.arguments.type[0] = embeddableType;
// Temporary escape hatch for lens as code
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be removed. lens-dashboard-app does not exist in 9.3


const embeddableConfig = decode(fn.arguments.config[0] as string);
const embeddableType = fn.arguments.type[0] as string;
fn.arguments.type[0] = embeddableType;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no need to set type since type is no longer changing

await canvas.addNewPage();
await canvas.goToPreviousPage();
await header.waitUntilLoadingHasFinished();
// Test Workpad does not provide time range
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comments not needed and can be removed

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Mar 23, 2026

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Integration Tests #10 / Basic smoke test it can start Kibana running against serverless ES
  • [job] [logs] Jest Integration Tests #10 / Basic smoke test it can start Kibana running against serverless ES
  • [job] [logs] Jest Integration Tests #5 / ES capabilities for serverless ES returns the correct capabilities
  • [job] [logs] Jest Integration Tests #5 / ES capabilities for serverless ES returns the correct capabilities
  • [job] [logs] Jest Integration Tests #11 / serverless - ZDT upgrades - basic document migration migrates the documents
  • [job] [logs] Jest Integration Tests #11 / serverless - ZDT upgrades - basic document migration migrates the documents
  • [job] [logs] Jest Integration Tests #9 / serverless - ZDT upgrades - standard workflow follows the expected stages and transitions
  • [job] [logs] Jest Integration Tests #9 / serverless - ZDT upgrades - standard workflow follows the expected stages and transitions

Metrics [docs]

✅ unchanged

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants