Skip to content

[TSVB] Serialise the actual vis on clone#227882

Merged
markov00 merged 5 commits intoelastic:mainfrom
markov00:2025_07_14-fix_clone_TSVB_panel
Jul 18, 2025
Merged

[TSVB] Serialise the actual vis on clone#227882
markov00 merged 5 commits intoelastic:mainfrom
markov00:2025_07_14-fix_clone_TSVB_panel

Conversation

@markov00
Copy link
Contributor

@markov00 markov00 commented Jul 14, 2025

Summary

The issue was a regression caused by #215947 where the wrong serialized state was used when cloning the panel

fix #227831
fixes #226970

@markov00 markov00 added bug Fixes for quality problems that affect the customer experience Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.0.4 and removed v9.0.4 labels Jul 15, 2025
@markov00 markov00 marked this pull request as ready for review July 15, 2025 12:42
@markov00 markov00 requested a review from a team as a code owner July 15, 2025 12:42
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@markov00 markov00 requested review from ThomThomson and nreese and removed request for nreese July 15, 2025 12:42
@mariairiartef
Copy link
Contributor

I was testing locally and although the clone part is working as expected, when I change the cloned chart dataview and then I refresh, it looks like it is not saved.

Screen.Recording.2025-07-15.at.15.14.08.mov

@elastic elastic deleted a comment from elasticmachine Jul 15, 2025
Copy link
Contributor

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

Code changes LGTM

@markov00 markov00 removed the request for review from ThomThomson July 16, 2025 12:06
@markov00
Copy link
Contributor Author

@mariairiartef I've created an issue specific for that #228203

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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 338.2KB 338.2KB +17.0B

@ThomThomson
Copy link
Contributor

ThomThomson commented Jul 16, 2025

this also fixes #226970

@markov00 markov00 merged commit 120bb3d into elastic:main Jul 18, 2025
13 checks passed
@markov00 markov00 deleted the 2025_07_14-fix_clone_TSVB_panel branch July 18, 2025 08:11
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16365636650

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 18, 2025
## Summary

The issue was a regression caused by
elastic#215947 where the wrong serialized
state was used when cloning the panel

fix elastic#227831
fixes elastic#226970

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 120bb3d)
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 18, 2025
## Summary

The issue was a regression caused by
elastic#215947 where the wrong serialized
state was used when cloning the panel

fix elastic#227831
fixes elastic#226970

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 120bb3d)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 18, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[TSVB] Serialise the actual vis on clone
(#227882)](#227882)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Marco
Vettorello","email":"marco.vettorello@elastic.co"},"sourceCommit":{"committedDate":"2025-07-18T08:11:33Z","message":"[TSVB]
Serialise the actual vis on clone (#227882)\n\n## Summary\n\nThe issue
was a regression caused
by\nhttps://github.com//pull/215947 where the wrong
serialized\nstate was used when cloning the panel\n\nfix
https://github.com/elastic/kibana/issues/227831\nfixes
https://github.com/elastic/kibana/issues/226970\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"120bb3d18ecf32769baaf6c38e70772fa2cffeaa","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:Visualizations","release_note:skip","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[TSVB]
Serialise the actual vis on
clone","number":227882,"url":"https://github.com/elastic/kibana/pull/227882","mergeCommit":{"message":"[TSVB]
Serialise the actual vis on clone (#227882)\n\n## Summary\n\nThe issue
was a regression caused
by\nhttps://github.com//pull/215947 where the wrong
serialized\nstate was used when cloning the panel\n\nfix
https://github.com/elastic/kibana/issues/227831\nfixes
https://github.com/elastic/kibana/issues/226970\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"120bb3d18ecf32769baaf6c38e70772fa2cffeaa"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227882","number":227882,"mergeCommit":{"message":"[TSVB]
Serialise the actual vis on clone (#227882)\n\n## Summary\n\nThe issue
was a regression caused
by\nhttps://github.com//pull/215947 where the wrong
serialized\nstate was used when cloning the panel\n\nfix
https://github.com/elastic/kibana/issues/227831\nfixes
https://github.com/elastic/kibana/issues/226970\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"120bb3d18ecf32769baaf6c38e70772fa2cffeaa"}}]}]
BACKPORT-->

Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
kibanamachine added a commit that referenced this pull request Jul 18, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [[TSVB] Serialise the actual vis on clone
(#227882)](#227882)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Marco
Vettorello","email":"marco.vettorello@elastic.co"},"sourceCommit":{"committedDate":"2025-07-18T08:11:33Z","message":"[TSVB]
Serialise the actual vis on clone (#227882)\n\n## Summary\n\nThe issue
was a regression caused
by\nhttps://github.com//pull/215947 where the wrong
serialized\nstate was used when cloning the panel\n\nfix
https://github.com/elastic/kibana/issues/227831\nfixes
https://github.com/elastic/kibana/issues/226970\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"120bb3d18ecf32769baaf6c38e70772fa2cffeaa","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:Visualizations","release_note:skip","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[TSVB]
Serialise the actual vis on
clone","number":227882,"url":"https://github.com/elastic/kibana/pull/227882","mergeCommit":{"message":"[TSVB]
Serialise the actual vis on clone (#227882)\n\n## Summary\n\nThe issue
was a regression caused
by\nhttps://github.com//pull/215947 where the wrong
serialized\nstate was used when cloning the panel\n\nfix
https://github.com/elastic/kibana/issues/227831\nfixes
https://github.com/elastic/kibana/issues/226970\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"120bb3d18ecf32769baaf6c38e70772fa2cffeaa"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227882","number":227882,"mergeCommit":{"message":"[TSVB]
Serialise the actual vis on clone (#227882)\n\n## Summary\n\nThe issue
was a regression caused
by\nhttps://github.com//pull/215947 where the wrong
serialized\nstate was used when cloning the panel\n\nfix
https://github.com/elastic/kibana/issues/227831\nfixes
https://github.com/elastic/kibana/issues/226970\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"120bb3d18ecf32769baaf6c38e70772fa2cffeaa"}}]}]
BACKPORT-->

Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
Bluefinger pushed a commit to Bluefinger/kibana that referenced this pull request Jul 22, 2025
## Summary

The issue was a regression caused by
elastic#215947 where the wrong serialized
state was used when cloning the panel

fix elastic#227831
fixes elastic#226970

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
## Summary

The issue was a regression caused by
elastic#215947 where the wrong serialized
state was used when cloning the panel

fix elastic#227831
fixes elastic#226970

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TSVB] Duplicate a by-reference panel results in a TSVB using a different index [Dashboard] Error when duplicating input controls panel

6 participants