[8.8] [Synthetics] adjust view errors detail link for project and ui monitors (#157063) (#157090)

# Backport

This will backport the following commits from `main` to `8.8`:
- [[Synthetics] adjust view errors detail link for project and ui
monitors (#157063)](https://github.com/elastic/kibana/pull/157063)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Dominique
Clarke","email":"dominique.clarke@elastic.co"},"sourceCommit":{"committedDate":"2023-05-08T21:21:35Z","message":"[Synthetics]
adjust view errors detail link for project and ui monitors
(#157063)\n\n## Summary\r\n\r\nAdjusts the View Error Details link on
the Monitor Details page to use\r\nthe correct config
id.\r\n\r\nPreviously, the url was using the monitor query id, which is
different\r\nthan the config id for project
monitors.\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"32d3ac27f5ba8fa94e121972ccaf7ae0b27d95a8","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:uptime","release_note:skip","v8.8.0","v8.7.2","v8.9.0"],"number":157063,"url":"https://github.com/elastic/kibana/pull/157063","mergeCommit":{"message":"[Synthetics]
adjust view errors detail link for project and ui monitors
(#157063)\n\n## Summary\r\n\r\nAdjusts the View Error Details link on
the Monitor Details page to use\r\nthe correct config
id.\r\n\r\nPreviously, the url was using the monitor query id, which is
different\r\nthan the config id for project
monitors.\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"32d3ac27f5ba8fa94e121972ccaf7ae0b27d95a8"}},"sourceBranch":"main","suggestedTargetBranches":["8.8","8.7"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.7","label":"v8.7.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/157063","number":157063,"mergeCommit":{"message":"[Synthetics]
adjust view errors detail link for project and ui monitors
(#157063)\n\n## Summary\r\n\r\nAdjusts the View Error Details link on
the Monitor Details page to use\r\nthe correct config
id.\r\n\r\nPreviously, the url was using the monitor query id, which is
different\r\nthan the config id for project
monitors.\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"32d3ac27f5ba8fa94e121972ccaf7ae0b27d95a8"}}]}]
BACKPORT-->

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
This commit is contained in:
Kibana Machine 2023-05-09 04:17:27 -04:00 committed by GitHub
parent 26c3fbe7e1
commit 857c81adda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,7 @@ export const LastTestRunComponent = ({
color="danger"
href={getErrorDetailsUrl({
basePath,
configId: monitor?.id!,
configId: monitor?.[ConfigKey.CONFIG_ID]!,
locationId: selectedLocation!.id,
stateId: latestPing.state?.id!,
})}