From 97289f67333b99921a8a8bb47541443ba840af61 Mon Sep 17 00:00:00 2001 From: Akos Eros Date: Fri, 7 Feb 2025 16:17:50 +0100 Subject: [PATCH] Fix the urls being created for patterns on the CI status page There was some naming change in the uploaded badge json, with this the 404 errors will be fixed when clicking these patterns in the CI status page. --- static/js/dashboard.v2.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/static/js/dashboard.v2.js b/static/js/dashboard.v2.js index 158c074ae..c33f347c8 100644 --- a/static/js/dashboard.v2.js +++ b/static/js/dashboard.v2.js @@ -100,7 +100,7 @@ function pattern_url (key) { if (key == 'devsecops') { return '/patterns/devsecops/' } - if (key == 'manuela') { + if (key == 'industrialedge') { return '/patterns/industrial-edge/' } if (key == 'mcgitops') { @@ -109,6 +109,16 @@ function pattern_url (key) { if (key == 'medicaldiag') { return '/patterns/medical-diagnosis/' } + if (key == 'ragllm') { + return '/patterns/rag-llm-gitops/' + } + if (key == 'openshiftai') { + return '/patterns/openshift-ai/' + } + if (key == 'agof') { + return '/patterns/ansible-gitops-framework/' + } + return '/patterns/' + key + '/' } @@ -431,7 +441,7 @@ function processBadges (badges, options) { if ( options.get('sets').includes('all') || options.get('sets').includes('early')) { htmlText += createFilteredHorizontalTable(badges, 'operator', null, true, links) } - + } document.getElementById(options.get('target')).innerHTML = htmlText } @@ -448,7 +458,7 @@ function getBucketOptions (input) { } options.set('links', 'public') options.set('target', 'dataset') - + buckets = [] const bucket = input['bucket'] if (bucket != null) { @@ -508,7 +518,7 @@ function fetchBucketBadges(bucket, inputs) { function obtainBadges (inputs) { const options = getBucketOptions(inputs); const buckets = options.get('buckets') - + // Create an array to store promises for each bucket's badges const badgePromises = [];