Skip to content

[Links] Fix link settings not persisting#211041

Merged
Heenawter merged 4 commits intoelastic:mainfrom
Heenawter:fix-links-persist-settings_2025-02-13
Feb 13, 2025
Merged

[Links] Fix link settings not persisting#211041
Heenawter merged 4 commits intoelastic:mainfrom
Heenawter:fix-links-persist-settings_2025-02-13

Conversation

@Heenawter
Copy link
Copy Markdown
Contributor

@Heenawter Heenawter commented Feb 13, 2025

Closes #211022

Summary

This PR fixes a bug with persisting Link options where, because we weren't providing the "initial" state to the options editor, it was always starting with the default state - therefore, editing something other than the options would reset the link options back to the default.

I tested this in 8.14 and the bug was present there, too - based on the file history / git blame, this bug has been around from the very beginning 🙈

Before:

Screen.Recording.2025-02-13.at.12.10.44.PM.mov

After:

Screen.Recording.2025-02-13.at.12.07.23.PM.mov

Checklist

  • Unit or functional tests were updated or added to match the most common scenarios
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

@Heenawter Heenawter added release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// loe:small Small Level of Effort impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. backport:prev-major Project:Dashboard Navigation Related to the Dashboard Navigation Project labels Feb 13, 2025
@Heenawter Heenawter self-assigned this Feb 13, 2025
@Heenawter Heenawter added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. and removed impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. labels Feb 13, 2025
@Heenawter Heenawter marked this pull request as ready for review February 13, 2025 19:16
@Heenawter Heenawter requested a review from a team as a code owner February 13, 2025 19:16
@elasticmachine
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

kibana-presentation changes LGTM, thanks for adding unit tests
code review only

@Heenawter Heenawter enabled auto-merge (squash) February 13, 2025 20:02
@Heenawter Heenawter merged commit c6e6a77 into elastic:main Feb 13, 2025
@elasticmachine
Copy link
Copy Markdown
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
links 75.3KB 75.3KB +74.0B
presentationUtil 84.1KB 84.2KB +42.0B
total +116.0B

History

cc @Heenawter

@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.16, 8.17, 8.18, 8.x

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

@Heenawter Heenawter deleted the fix-links-persist-settings_2025-02-13 branch February 13, 2025 21:25
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 13, 2025
Closes elastic#211022

## Summary

This PR fixes a bug with persisting Link options where, because we
weren't providing the "initial" state to the options editor, it was
always starting with the default state - therefore, editing something
**other** than the options would reset the link options back to the
default.

I tested this in `8.14` and the bug was present there, too - based on
[the file history / git
blame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),
this bug has been around from the very beginning 🙈

**Before:**

https://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6

**After:**

https://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit c6e6a77)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 13, 2025
Closes elastic#211022

## Summary

This PR fixes a bug with persisting Link options where, because we
weren't providing the "initial" state to the options editor, it was
always starting with the default state - therefore, editing something
**other** than the options would reset the link options back to the
default.

I tested this in `8.14` and the bug was present there, too - based on
[the file history / git
blame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),
this bug has been around from the very beginning 🙈

**Before:**

https://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6

**After:**

https://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit c6e6a77)
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Some backports could not be created

Status Branch Result
8.16 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.16:
- [visualize] fix Save to library action from a by value panel breaks the chart panel (#210125)
- [Fleet] Fix unattended Transforms in integration packages not automatically restarting after reauthorizing (#210217)
- [Security Solution] Cypress: Also cleanup proxy handler projects (#192213)
- [Discover Session] Fix "Untitled" export title when exporting CSV on a dashboard (#210143)
8.17 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.17:
- [visualize] fix Save to library action from a by value panel breaks the chart panel (#210125)
- [Fleet] Fix unattended Transforms in integration packages not automatically restarting after reauthorizing (#210217)
- [Discover Session] Fix "Untitled" export title when exporting CSV on a dashboard (#210143)
8.18
8.x

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 211041

Questions ?

Please refer to the Backport tool documentation

Heenawter added a commit to Heenawter/kibana that referenced this pull request Feb 13, 2025
Closes elastic#211022

## Summary

This PR fixes a bug with persisting Link options where, because we
weren't providing the "initial" state to the options editor, it was
always starting with the default state - therefore, editing something
**other** than the options would reset the link options back to the
default.

I tested this in `8.14` and the bug was present there, too - based on
[the file history / git
blame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),
this bug has been around from the very beginning 🙈

**Before:**

https://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6

**After:**

https://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit c6e6a77)

# Conflicts:
#	src/plugins/links/public/components/editor/link_editor.test.tsx
Heenawter added a commit to Heenawter/kibana that referenced this pull request Feb 13, 2025
Closes elastic#211022

## Summary

This PR fixes a bug with persisting Link options where, because we
weren't providing the "initial" state to the options editor, it was
always starting with the default state - therefore, editing something
**other** than the options would reset the link options back to the
default.

I tested this in `8.14` and the bug was present there, too - based on
[the file history / git
blame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),
this bug has been around from the very beginning 🙈

**Before:**

https://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6

**After:**

https://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit c6e6a77)

# Conflicts:
#	src/platform/plugins/shared/presentation_util/public/components/dashboard_drilldown_options/dashboard_drilldown_options.tsx
#	src/plugins/links/public/components/editor/link_editor.test.tsx
@Heenawter
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
8.17
8.16

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

Questions ?

Please refer to the Backport tool documentation

@Heenawter
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.0

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

Questions ?

Please refer to the Backport tool documentation

Heenawter added a commit to Heenawter/kibana that referenced this pull request Feb 13, 2025
Closes elastic#211022

## Summary

This PR fixes a bug with persisting Link options where, because we
weren't providing the "initial" state to the options editor, it was
always starting with the default state - therefore, editing something
**other** than the options would reset the link options back to the
default.

I tested this in `8.14` and the bug was present there, too - based on
[the file history / git
blame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),
this bug has been around from the very beginning 🙈

**Before:**

https://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6

**After:**

https://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit c6e6a77)
kibanamachine added a commit that referenced this pull request Feb 13, 2025
# Backport

This will backport the following commits from `main` to `8.18`:
- [[Links] Fix link settings not persisting
(#211041)](#211041)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Hannah
Mudge","email":"Heenawter@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-13T21:03:31Z","message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","loe:small","impact:low","backport:prev-major","Project:Dashboard
Navigation","v9.1.0"],"title":"[Links] Fix link settings not
persisting","number":211041,"url":"https://github.com/elastic/kibana/pull/211041","mergeCommit":{"message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211041","number":211041,"mergeCommit":{"message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291"}}]}]
BACKPORT-->

Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Feb 13, 2025
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Links] Fix link settings not persisting
(#211041)](#211041)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Hannah
Mudge","email":"Heenawter@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-13T21:03:31Z","message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","loe:small","impact:low","backport:prev-major","Project:Dashboard
Navigation","v9.1.0"],"title":"[Links] Fix link settings not
persisting","number":211041,"url":"https://github.com/elastic/kibana/pull/211041","mergeCommit":{"message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211041","number":211041,"mergeCommit":{"message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291"}}]}]
BACKPORT-->

Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 14, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

1 similar comment
@kibanamachine
Copy link
Copy Markdown
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

Heenawter added a commit that referenced this pull request Feb 18, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [[Links] Fix link settings not persisting
(#211041)](#211041)

<!--- Backport version: 9.6.4 -->

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

<!--BACKPORT [{"author":{"name":"Hannah
Mudge","email":"Heenawter@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-13T21:03:31Z","message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","loe:small","impact:low","backport:prev-major","Project:Dashboard
Navigation","v9.1.0"],"title":"[Links] Fix link settings not
persisting","number":211041,"url":"https://github.com/elastic/kibana/pull/211041","mergeCommit":{"message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211041","number":211041,"mergeCommit":{"message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291"}},{"url":"https://github.com/elastic/kibana/pull/211103","number":211103,"branch":"8.18","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/211104","number":211104,"branch":"8.x","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/211106","number":211106,"branch":"8.17","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/211107","number":211107,"branch":"8.16","state":"OPEN"}]}]
BACKPORT-->
Heenawter added a commit that referenced this pull request Feb 18, 2025
# Backport

This will backport the following commits from `main` to `8.17`:
- [[Links] Fix link settings not persisting
(#211041)](#211041)

<!--- Backport version: 9.6.4 -->

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

<!--BACKPORT [{"author":{"name":"Hannah
Mudge","email":"Heenawter@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-13T21:03:31Z","message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","loe:small","impact:low","backport:prev-major","Project:Dashboard
Navigation","v9.1.0"],"title":"[Links] Fix link settings not
persisting","number":211041,"url":"https://github.com/elastic/kibana/pull/211041","mergeCommit":{"message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211041","number":211041,"mergeCommit":{"message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291"}},{"url":"https://github.com/elastic/kibana/pull/211103","number":211103,"branch":"8.18","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/211104","number":211104,"branch":"8.x","state":"OPEN"}]}]
BACKPORT-->
Heenawter added a commit that referenced this pull request Feb 18, 2025
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Links] Fix link settings not persisting
(#211041)](#211041)

<!--- Backport version: 9.6.4 -->

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

<!--BACKPORT [{"author":{"name":"Hannah
Mudge","email":"Heenawter@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-13T21:03:31Z","message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","loe:small","impact:low","backport:prev-major","Project:Dashboard
Navigation","v9.1.0"],"title":"[Links] Fix link settings not
persisting","number":211041,"url":"https://github.com/elastic/kibana/pull/211041","mergeCommit":{"message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211041","number":211041,"mergeCommit":{"message":"[Links]
Fix link settings not persisting (#211041)\n\nCloses
https://github.com/elastic/kibana/issues/211022\r\n\r\n##
Summary\r\n\r\nThis PR fixes a bug with persisting Link options where,
because we\r\nweren't providing the \"initial\" state to the options
editor, it was\r\nalways starting with the default state - therefore,
editing something\r\n**other** than the options would reset the link
options back to the\r\ndefault.\r\n\r\nI tested this in `8.14` and the
bug was present there, too - based on\r\n[the file history /
git\r\nblame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),\r\nthis
bug has been around from the very beginning
🙈\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49\r\n\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"c6e6a77c546450af30936fdedeef93221f83d291"}},{"url":"https://github.com/elastic/kibana/pull/211103","number":211103,"branch":"8.18","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/211104","number":211104,"branch":"8.x","state":"OPEN"}]}]
BACKPORT-->
@kibanamachine kibanamachine added v9.0.0 v8.17.3 v8.16.5 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Feb 18, 2025
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
Closes elastic#211022

## Summary

This PR fixes a bug with persisting Link options where, because we
weren't providing the "initial" state to the options editor, it was
always starting with the default state - therefore, editing something
**other** than the options would reset the link options back to the
default.

I tested this in `8.14` and the bug was present there, too - based on
[the file history / git
blame](https://github.com/elastic/kibana/blame/main/src/platform/plugins/private/links/public/components/editor/link_editor.tsx#L60),
this bug has been around from the very beginning 🙈

**Before:**


https://github.com/user-attachments/assets/360af02e-ae0f-470c-91a3-a52fc9b3d8c6


**After:**


https://github.com/user-attachments/assets/d1e93bfa-566a-4506-99e3-47f92c922d49



### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Project:Dashboard Navigation Related to the Dashboard Navigation Project release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.16.5 v8.17.3 v8.18.0 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Link panel option resets after editing

4 participants