Skip to content

[Dashboard Navigation] Store unwrapped attributes in componentState#164887

Merged
nickpeihl merged 1 commit intoelastic:navigation-embeddablefrom
nickpeihl:navEmbeddable-fix-so
Aug 28, 2023
Merged

[Dashboard Navigation] Store unwrapped attributes in componentState#164887
nickpeihl merged 1 commit intoelastic:navigation-embeddablefrom
nickpeihl:navEmbeddable-fix-so

Conversation

@nickpeihl
Copy link
Contributor

Fixes #164322

Store the unwrapped attributes from by-reference links panels in componentState.

Since the explictInput for a Links panel can be either by-reference or by-value, we need to be sure to share the unwrapped attributes (as in from a by-reference panel) to our component.

@nickpeihl nickpeihl added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// label Aug 25, 2023
@nickpeihl nickpeihl requested a review from Heenawter August 25, 2023 18:24
@nickpeihl nickpeihl requested a review from a team as a code owner August 25, 2023 18:24
@elasticmachine
Copy link
Contributor

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

@kibana-ci
Copy link

kibana-ci commented Aug 25, 2023

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Integration Tests #5 / checking migration metadata changes on all registered SO types detecting migration related changes in registered types
  • [job] [logs] FTR Configs #32 / Controls Range Slider Control create and edit edits title and size of an existing control and retains existing range selection
  • [job] [logs] FTR Configs #32 / Controls Range Slider Control create and edit edits title and size of an existing control and retains existing range selection
  • [job] [logs] FTR Configs #44 / Options list control Dashboard options list creation and editing Options List Control creation and editing experience renames an existing control and retains selection
  • [job] [logs] FTR Configs #44 / Options list control Dashboard options list creation and editing Options List Control creation and editing experience renames an existing control and retains selection
  • [job] [logs] Jest Integration Tests #6 / SO type registrations does not remove types from registrations without updating excludeOnUpgradeQuery

Metrics [docs]

‼️ ERROR: no builds found for mergeBase sha [6fa536c]

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@Heenawter Heenawter 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 - very straightforward 👍

Comment on lines +25 to +26
const links = navEmbeddable.select((state) => state.componentState.links);
const layout = navEmbeddable.select((state) => state.componentState.layout);
Copy link
Contributor

Choose a reason for hiding this comment

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

So much cleaner 🎉

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

Labels

Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t//

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants