feature: Link to log outputs (#415)

This commit is contained in:
James Read
2024-10-02 01:17:09 +02:00
committed by GitHub
parent 9723a38ca1
commit c0a18f82a5
3 changed files with 21 additions and 1 deletions

View File

@@ -124,7 +124,19 @@ function convertPathToBreadcrumb (path) {
return result
}
function showExecutionResult (pathName) {
const executionTrackingId = pathName.split('/')[2]
window.executionDialog.fetchExecutionResult(executionTrackingId)
window.executionDialog.show()
}
function showSection (pathName) {
if (pathName.startsWith('/logs/')) {
showExecutionResult(pathName)
pushNewNavigationPath(pathName)
return
}
const path = window.registeredPaths.get(pathName)
if (path === undefined) {
@@ -557,6 +569,7 @@ export function marshalLogsJsonToHtml (json) {
window.executionDialog.renderExecutionResult({
logEntry: window.logEntries[logEntry.executionTrackingId]
})
pushNewNavigationPath('/logs/' + logEntry.executionTrackingId)
}
for (const tag of logEntry.tags) {