Skip to content

[canvas] unable to load by-ref embeddable when no references are provided #257772

@nreese

Description

@nreese

x-pack/platform/test/functional/apps/canvas/embeddables/lens.ts test case 'renders lens visualization using savedLens expression' loads 'Test Workpad' workpad.

workpad contents:

  • references: []
  • embeddable config
    {
      savedObjectId: 'my-lens-vis',
       timeRange: { from: '2014-01-01', to: '2018-01-01' }
    }
    

Running this config through lens transforms returns the following error "Error: Why are attributes undefined?" because lens thinks its a by-value embeddable because savedObjectRef is missing. Instead, canvas should convert savedObjectId: 'my-lens-vis' into the reference shape lens transform is expecting.

Marked as critical because its blocking #255555

Metadata

Metadata

Assignees

Labels

Project:Dashboards APITeam:PresentationPresentation Team for Dashboard, Input Controls, and Canvas t//bugFixes for quality problems that affect the customer experience

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions