Skip to content

Commit 97289f6

Browse files
committed
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.
1 parent 96fad72 commit 97289f6

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

static/js/dashboard.v2.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function pattern_url (key) {
100100
if (key == 'devsecops') {
101101
return '/patterns/devsecops/'
102102
}
103-
if (key == 'manuela') {
103+
if (key == 'industrialedge') {
104104
return '/patterns/industrial-edge/'
105105
}
106106
if (key == 'mcgitops') {
@@ -109,6 +109,16 @@ function pattern_url (key) {
109109
if (key == 'medicaldiag') {
110110
return '/patterns/medical-diagnosis/'
111111
}
112+
if (key == 'ragllm') {
113+
return '/patterns/rag-llm-gitops/'
114+
}
115+
if (key == 'openshiftai') {
116+
return '/patterns/openshift-ai/'
117+
}
118+
if (key == 'agof') {
119+
return '/patterns/ansible-gitops-framework/'
120+
}
121+
112122
return '/patterns/' + key + '/'
113123
}
114124

@@ -431,7 +441,7 @@ function processBadges (badges, options) {
431441
if ( options.get('sets').includes('all') || options.get('sets').includes('early')) {
432442
htmlText += createFilteredHorizontalTable(badges, 'operator', null, true, links)
433443
}
434-
444+
435445
}
436446
document.getElementById(options.get('target')).innerHTML = htmlText
437447
}
@@ -448,7 +458,7 @@ function getBucketOptions (input) {
448458
}
449459
options.set('links', 'public')
450460
options.set('target', 'dataset')
451-
461+
452462
buckets = []
453463
const bucket = input['bucket']
454464
if (bucket != null) {
@@ -508,7 +518,7 @@ function fetchBucketBadges(bucket, inputs) {
508518
function obtainBadges (inputs) {
509519
const options = getBucketOptions(inputs);
510520
const buckets = options.get('buckets')
511-
521+
512522
// Create an array to store promises for each bucket's badges
513523
const badgePromises = [];
514524

0 commit comments

Comments
 (0)