Skip to content

[9.0] [visualize] fix unsaved state when adding by-value visualize embeddable to dashboard (#211264)#211612

Merged
kibanamachine merged 4 commits intoelastic:9.0from
kibanamachine:backport/9.0/pr-211264
Feb 20, 2025
Merged

[9.0] [visualize] fix unsaved state when adding by-value visualize embeddable to dashboard (#211264)#211612
kibanamachine merged 4 commits intoelastic:9.0from
kibanamachine:backport/9.0/pr-211264

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

…le to dashboard (elastic#211264)

Follow up to elastic#210125

[8.16](elastic#211057) and
[8.17](elastic#211054) backports for
elastic#210125 were failing functional
test
https://github.com/elastic/kibana/blob/8.17/test/functional/apps/dashboard/group1/dashboard_unsaved_listing.ts#L142.
The functional test adds a by-value and by-reference legacy
visualization to a new dashboard. Upon saving the dashboard, the
dashboard still showed unsaved changes.

The reason this test did not fail main and other branches is that
elastic#208116 removed the "by-value"
part of the test (since its no longer possible to add a by-value legacy
visualization from within a dashboard). It is still possible to recreate
the issue in main with the following steps
1) Click "Visualize Library" in left nav
2) Click "Create visualization" button.
3) Click "Legacy" tab
4) Click "Aggregation based"
5) Click "Area"
6) Click web logs sample data view
7) Click "Save"
8) Set title
9) Under "Add to dashboard", click "New", click save
10) save dashboard. Notice how dashboard still has unsaved changes.

8.16 and 8.17 required a [new
commit](elastic@1fd631c)
to resolve the issue by updating the `linkedToLibrary` to ignore
undefined values.

This PR fixes the issue for the other branches that have already been
merged.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 6789c94)
@nreese
Copy link
Copy Markdown
Contributor

nreese commented Feb 18, 2025

@elasticmachine merge upstream

@nreese
Copy link
Copy Markdown
Contributor

nreese commented Feb 18, 2025

@elasticmachine merge upstream

@nreese
Copy link
Copy Markdown
Contributor

nreese commented Feb 18, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

There are no new commits on the base branch.

@nreese
Copy link
Copy Markdown
Contributor

nreese commented Feb 19, 2025

@elasticmachine merge upstream

@kibanamachine kibanamachine merged commit f7f8976 into elastic:9.0 Feb 20, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #22 / Security Solution - Telemetry Indices metadata task telemetry @ess indices metadata should publish ilm policy events

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
visualizations 363.2KB 363.2KB +37.0B

History

cc @nreese

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