From b9020fa81f1a2e687cb6361dc6db581a008c0cb7 Mon Sep 17 00:00:00 2001 From: Judah Nouriyelian Date: Fri, 18 Aug 2023 18:58:53 +0000 Subject: [PATCH 1/2] remove port from js and update version --- pkg/handler/flake_chart.html | 7 +++---- pkg/report/types.go | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/handler/flake_chart.html b/pkg/handler/flake_chart.html index 56ed4f1..0a9e201 100644 --- a/pkg/handler/flake_chart.html +++ b/pkg/handler/flake_chart.html @@ -873,16 +873,15 @@ await new Promise(resolve => google.charts.setOnLoadCallback(resolve)); let url; - const basePath = ':8080' // Base Server Path. Modify to actual server path if deploying if (desiredEnvironment === undefined) { // URL for displaySummaryChart - url = basePath + '/summary' + url = '/summary' } else if (desiredTest === undefined) { // URL for displayEnvironmentChart - url = basePath + '/env' + '?env=' + desiredEnvironment + '&tests_in_top=' + desiredTestNumber; + url = '/env' + '?env=' + desiredEnvironment + '&tests_in_top=' + desiredTestNumber; } else { // URL for displayTestAndEnvironmentChart - url = basePath + '/test' + '?env=' + desiredEnvironment + '&test=' + desiredTest; + url = '/test' + '?env=' + desiredEnvironment + '&test=' + desiredTest; } // Fetch data from the determined URL diff --git a/pkg/report/types.go b/pkg/report/types.go index 4ec4b14..b1eb23c 100644 --- a/pkg/report/types.go +++ b/pkg/report/types.go @@ -1,7 +1,7 @@ package report // Version is gopogh version -var Version = "v0.17.0" +var Version = "v0.23.0" // Build includes commit sha date var Build string From f679ad12a47b917073f26518eb95368d490ed527 Mon Sep 17 00:00:00 2001 From: Judah Nouriyelian Date: Fri, 18 Aug 2023 19:08:00 +0000 Subject: [PATCH 2/2] fix error in missing variable --- pkg/handler/flake_chart.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/handler/flake_chart.html b/pkg/handler/flake_chart.html index 0a9e201..0948c1d 100644 --- a/pkg/handler/flake_chart.html +++ b/pkg/handler/flake_chart.html @@ -901,7 +901,7 @@ } else { displayTestAndEnvironmentChart(data, query); } - url = basePath + '/version' + url = '/version' const verResponse = await fetch(url); if (!verResponse.ok) {