Skip to content

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

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

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

Conversation

@ThomThomson
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.2:

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:10
@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

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.

Comment is no longer correct and can be removed

// TODO remove when lens as code transforms are ready for production
const transformType = embeddableType === 'lens' ? 'lens-dashboard-app' : embeddableType;
const transforms = embeddableService.getTransforms(transformType);
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.

Setting type not needed since its value does not change

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.

kibana-presentation changes LGTM
code review only

@ThomThomson
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Mar 24, 2026

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #16 / legacy expressions logs warnings when transformation fails and returns the original embeddable config
  • [job] [logs] Jest Tests #16 / legacy expressions logs warnings when transformation fails and returns the original embeddable config
  • [job] [logs] Jest Tests #16 / legacy expressions savedLens migrates savedLens to an embeddable expression with transforms applied
  • [job] [logs] Jest Tests #16 / legacy expressions savedLens migrates savedLens to an embeddable expression with transforms applied
  • [job] [logs] Jest Tests #16 / legacy expressions savedLens migrates savedLens with an explicit saved object id without references
  • [job] [logs] Jest Tests #16 / legacy expressions savedLens migrates savedLens with an explicit saved object id without references
  • [job] [logs] Jest Tests #16 / legacy expressions savedLens migrates savedLens with an explicit timerange
  • [job] [logs] Jest Tests #16 / legacy expressions savedLens migrates savedLens with an explicit timerange
  • [job] [logs] Jest Tests #16 / legacy expressions savedLens migrates savedLens with an explicit title
  • [job] [logs] Jest Tests #16 / legacy expressions savedLens migrates savedLens with an explicit title
  • [job] [logs] Jest Tests #16 / transformWorkpadOut embeddable applies transformOut to embeddable config
  • [job] [logs] Jest Tests #16 / transformWorkpadOut embeddable applies transformOut to embeddable config

Metrics [docs]

✅ unchanged

History

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.

3 participants