From 2c3436ea36afff3507c0bd92474d8f43c8ac3825 Mon Sep 17 00:00:00 2001 From: Nikodemas Tuckus Date: Tue, 20 Aug 2024 16:31:59 +0200 Subject: [PATCH] Update wmarchive link building --- cpueff-goweb/config.json | 4 ++-- cpueff-goweb/controllers/stepchain_page_controllers.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cpueff-goweb/config.json b/cpueff-goweb/config.json index b979cf97..f9b307e1 100644 --- a/cpueff-goweb/config.json +++ b/cpueff-goweb/config.json @@ -37,7 +37,7 @@ "link_grafana": "Grafana", "link_grafana_with_site": "Grafana", "link_reqmgr": "RegMgr", - "link_es_wmarchive": "WMArc", - "link_es_wmarchive_jobtype": "WMArc" + "link_es_wmarchive": "WMArc", + "link_es_wmarchive_jobtype": "WMArc" } } diff --git a/cpueff-goweb/controllers/stepchain_page_controllers.go b/cpueff-goweb/controllers/stepchain_page_controllers.go index 3c8daab2..ea91cd94 100644 --- a/cpueff-goweb/controllers/stepchain_page_controllers.go +++ b/cpueff-goweb/controllers/stepchain_page_controllers.go @@ -145,10 +145,11 @@ func utilScTaskCmsrunJobtypeExternalLinks(cpuEffs []models.StepchainTaskWithCmsr links.StrEndDate, dataTimestamp.EndDate, links.StrTaskNamePrefix, utilGetTaskNamePrefix(cpuEffs[i].Task), links.StrTaskName, cpuEffs[i].Task, + links.StrJobType, cpuEffs[i].JobType, ) // Kibana needs full task name, but reqmgr2 accepts only "X" from task name of "/X/Y" // Assign complete link HTML dom to the 'Links' column : "ReqMgr - WMArchive(MONIT)" - cpuEffs[i].Links = template.HTML(replacer.Replace(links.LinkReqMgr + " - " + links.LinkEsWmarchive)) + cpuEffs[i].Links = template.HTML(replacer.Replace(links.LinkReqMgr + " - " + links.LinkEsWmarchiveJobType)) } }