[Vega] Add ability to open links in Vega in new window#216200
Merged
andrimal merged 8 commits intoelastic:mainfrom Apr 14, 2025
Merged
[Vega] Add ability to open links in Vega in new window#216200andrimal merged 8 commits intoelastic:mainfrom
andrimal merged 8 commits intoelastic:mainfrom
Conversation
Contributor
|
Vega spec to test: |
Contributor
|
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
Contributor
Author
|
/ci |
Contributor
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
dej611
approved these changes
Apr 14, 2025
Contributor
|
Starting backport for target branches: 8.x |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Apr 14, 2025
## Summary Fix elastic#70745 Enables the option to open the clickable mark links of a Vega Visualization in a new tab. To achieve this functionality: - use the `usermeta.embedOptions.loader` property in the vega chart spec to pass the `"target": "_blank"` configuration: ```javascript "usermeta": { "embedOptions": { "loader": {"target": "_blank"} } } ``` Link opens in a new tab:  ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [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) --------- Co-authored-by: Marco Liberati <dej611@users.noreply.github.com> (cherry picked from commit f8e688f)
Contributor
💚 All backports created successfully
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
Apr 14, 2025
#218132) # Backport This will backport the following commits from `main` to `8.x`: - [[Vega] Add ability to open links in Vega in new window (#216200)](#216200) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Andreana Malama","email":"72010092+andrimal@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-14T14:42:32Z","message":"[Vega] Add ability to open links in Vega in new window (#216200)\n\n## Summary\n\nFix #70745 \n\nEnables the option to open the clickable mark links of a Vega\nVisualization in a new tab.\n\nTo achieve this functionality: \n- use the `usermeta.embedOptions.loader` property in the vega chart spec\nto pass the `\"target\": \"_blank\"` configuration:\n```javascript\n\"usermeta\": {\n \"embedOptions\": {\n \"loader\": {\"target\": \"_blank\"}\n }\n }\n``` \n\nLink opens in a new tab:\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: Marco Liberati <dej611@users.noreply.github.com>","sha":"f8e688f88135bf7675cfd0c6dfb918e23b6ebbb8","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Feature:Vega","Team:Visualizations","backport:version","v9.1.0","v8.19.0"],"title":"[Vega] Add ability to open links in Vega in new window","number":216200,"url":"https://github.com/elastic/kibana/pull/216200","mergeCommit":{"message":"[Vega] Add ability to open links in Vega in new window (#216200)\n\n## Summary\n\nFix #70745 \n\nEnables the option to open the clickable mark links of a Vega\nVisualization in a new tab.\n\nTo achieve this functionality: \n- use the `usermeta.embedOptions.loader` property in the vega chart spec\nto pass the `\"target\": \"_blank\"` configuration:\n```javascript\n\"usermeta\": {\n \"embedOptions\": {\n \"loader\": {\"target\": \"_blank\"}\n }\n }\n``` \n\nLink opens in a new tab:\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: Marco Liberati <dej611@users.noreply.github.com>","sha":"f8e688f88135bf7675cfd0c6dfb918e23b6ebbb8"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216200","number":216200,"mergeCommit":{"message":"[Vega] Add ability to open links in Vega in new window (#216200)\n\n## Summary\n\nFix #70745 \n\nEnables the option to open the clickable mark links of a Vega\nVisualization in a new tab.\n\nTo achieve this functionality: \n- use the `usermeta.embedOptions.loader` property in the vega chart spec\nto pass the `\"target\": \"_blank\"` configuration:\n```javascript\n\"usermeta\": {\n \"embedOptions\": {\n \"loader\": {\"target\": \"_blank\"}\n }\n }\n``` \n\nLink opens in a new tab:\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: Marco Liberati <dej611@users.noreply.github.com>","sha":"f8e688f88135bf7675cfd0c6dfb918e23b6ebbb8"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Andreana Malama <72010092+andrimal@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix #70745
Enables the option to open the clickable mark links of a Vega Visualization in a new tab.
To achieve this functionality:
usermeta.embedOptions.loaderproperty in the vega chart spec to pass the"target": "_blank"configuration:Link opens in a new tab:

Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:*label is applied per the guidelines