Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dashboard navigation] By-reference Links panels add input attributes to Dashboard saved objects #164322

Closed
nickpeihl opened this issue Aug 21, 2023 · 2 comments
Labels
bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Project:Dashboard Navigation Related to the Dashboard Navigation Project Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@nickpeihl
Copy link
Member

Bug affects the navigation-embeddable feature branch only. Not present in main.

When adding a by-reference Links panel to a dashboard, the panelsJSON for the dashboard still contains the entire embeddable input as well as the panelRefName.

For example, here is a parsed snippet of a panelsJSON from a dashboard saved object containing a by-reference links panel. Notice that the attributes are included as well as the panelRefName.

{
    "version": "8.10.0",
    "type": "navigation_embeddable",
    "gridData": {
        "x": 0,
        "y": 0,
        "w": 24,
        "h": 15,
        "i": "491de79e-9a6f-4efd-b25f-874190a48781"
    },
    "panelIndex": "491de79e-9a6f-4efd-b25f-874190a48781",
    "embeddableConfig": {
        "attributes": {
            "title": "linksss",
            "description": "",
            "links": [
                {
                    "type": "dashboardLink",
                    "id": "55fcffb6-ca69-42ed-9318-e57ab3890586",
                    "destination": "722b74f0-b882-11e8-a6d9-e546fe2bba5f",
                    "order": 0
                },
                {
                    "type": "dashboardLink",
                    "id": "cb01500b-f8fc-404d-8770-2a02562e8537",
                    "destination": "edf84fe0-e1a0-11e7-b6d5-4dc382ef7f5b",
                    "order": 1
                }
            ],
            "layout": "vertical"
        },
        "disabledActions": [
            null,
            "OPEN_FLYOUT_ADD_DRILLDOWN"
        ],
        "enhancements": {}
    },
    "panelRefName": "panel_491de79e-9a6f-4efd-b25f-874190a48781"
}

This likely went unnoticed in #160896.

@nickpeihl nickpeihl added bug Fixes for quality problems that affect the customer experience Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:medium Medium Level of Effort impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Project:Dashboard Navigation Related to the Dashboard Navigation Project labels Aug 21, 2023
@elasticmachine
Copy link
Contributor

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

nickpeihl added a commit that referenced this issue Aug 28, 2023
…164887)

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
Copy link
Member Author

Fixed by #164887

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Project:Dashboard Navigation Related to the Dashboard Navigation Project Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

2 participants