Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 7286bfd

Browse files
authored
Merge pull request #2942 from tobespc/issue2937
[0.12.0] add correct endpoint for spring and add tests
2 parents 2114e69 + 1d572f8 commit 7286bfd

File tree

6 files changed

+632
-461
lines changed

6 files changed

+632
-461
lines changed

src/pfe/portal/modules/utils/metricsStatusChecker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const VALID_METRIC_ENDPOINT = {
3838
hosting: METRICS_DASH_HOST.project,
3939
},
4040
javametricsDash: {
41-
endpoint: '/javametrics-dash',
41+
endpoint: '/javametrics-dash/',
4242
hosting: METRICS_DASH_HOST.project,
4343
},
4444
swiftmetricsDash: {
@@ -248,7 +248,7 @@ function getMetricsDashboardHostAndPath(endpoints, projectID, projectLanguage) {
248248

249249
function getDashboardPath(metricsDashHost, projectMetricEndpoint, projectID, language, injectMetrics) {
250250
if (metricsDashHost === METRICS_DASH_HOST.project && !injectMetrics) {
251-
return `${projectMetricEndpoint}/?theme=dark`;
251+
return path.join(projectMetricEndpoint, '?theme=dark');
252252
}
253253

254254
// Currently we only support java and nodejs on the performance dashboard

0 commit comments

Comments
 (0)