-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[Related Dashboards] fix href in the dashboard locator #228718
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
Conversation
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
...ns/observability/public/pages/alert_details/components/related_dashboards/dashboard_tile.tsx
Outdated
Show resolved
Hide resolved
<a | ||
href="#" | ||
href={dashboardLocator?.getRedirectUrl({ | ||
dashboardId: dashboard.id, | ||
})} | ||
target="_blank" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why aren't we using EuiLink
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used EuiLink in this commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16414380708 |
## Summary Fixes elastic#228619 This PR fixes the issue with right click and opening in a new tab (cherry picked from commit 12683c0)
## Summary Fixes elastic#228619 This PR fixes the issue with right click and opening in a new tab (cherry picked from commit 12683c0)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
#228745) # Backport This will backport the following commits from `main` to `9.1`: - [[Related Dashboards] fix href in the dashboard locator (#228718)](#228718) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Panagiota Mitsopoulou","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-07-21T10:20:11Z","message":"[Related Dashboards] fix href in the dashboard locator (#228718)\n\n## Summary\n\nFixes https://github.com/elastic/kibana/issues/228619\n\nThis PR fixes the issue with right click and opening in a new tab","sha":"12683c04dc1560152f32328dfece363a07a44806","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0"],"title":"[Related Dashboards] fix href in the dashboard locator","number":228718,"url":"https://github.com/elastic/kibana/pull/228718","mergeCommit":{"message":"[Related Dashboards] fix href in the dashboard locator (#228718)\n\n## Summary\n\nFixes https://github.com/elastic/kibana/issues/228619\n\nThis PR fixes the issue with right click and opening in a new tab","sha":"12683c04dc1560152f32328dfece363a07a44806"}},"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/228718","number":228718,"mergeCommit":{"message":"[Related Dashboards] fix href in the dashboard locator (#228718)\n\n## Summary\n\nFixes https://github.com/elastic/kibana/issues/228619\n\nThis PR fixes the issue with right click and opening in a new tab","sha":"12683c04dc1560152f32328dfece363a07a44806"}}]}] BACKPORT--> Co-authored-by: Panagiota Mitsopoulou <[email protected]>
<EuiLink | ||
data-test-subj="o11yDashboardTileLink" | ||
href={dashboardLocator?.getRedirectUrl({ | ||
dashboardId: dashboard.id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also pass the time range for the alert here? The dashboard locator supports adding a time range.
## Summary Fixes elastic#228619 This PR fixes the issue with right click and opening in a new tab
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
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. |
… (#228744) # Backport This will backport the following commits from `main` to `8.19`: - [[Related Dashboards] fix href in the dashboard locator (#228718)](#228718) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Panagiota Mitsopoulou","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-07-21T10:20:11Z","message":"[Related Dashboards] fix href in the dashboard locator (#228718)\n\n## Summary\n\nFixes https://github.com/elastic/kibana/issues/228619\n\nThis PR fixes the issue with right click and opening in a new tab","sha":"12683c04dc1560152f32328dfece363a07a44806","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0"],"title":"[Related Dashboards] fix href in the dashboard locator","number":228718,"url":"https://github.com/elastic/kibana/pull/228718","mergeCommit":{"message":"[Related Dashboards] fix href in the dashboard locator (#228718)\n\n## Summary\n\nFixes https://github.com/elastic/kibana/issues/228619\n\nThis PR fixes the issue with right click and opening in a new tab","sha":"12683c04dc1560152f32328dfece363a07a44806"}},"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/228718","number":228718,"mergeCommit":{"message":"[Related Dashboards] fix href in the dashboard locator (#228718)\n\n## Summary\n\nFixes https://github.com/elastic/kibana/issues/228619\n\nThis PR fixes the issue with right click and opening in a new tab","sha":"12683c04dc1560152f32328dfece363a07a44806"}}]}] BACKPORT--> Co-authored-by: Panagiota Mitsopoulou <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
## Summary Fixes elastic#228619 This PR fixes the issue with right click and opening in a new tab
## Summary Fixes elastic#228619 This PR fixes the issue with right click and opening in a new tab
Summary
Fixes #228619
This PR fixes the issue with right click and opening in a new tab