Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-08 12:08:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-08 12:08:18 +0300
commitae6b82598ff1a9844c132e53799c252225b2c4c1 (patch)
treeee9faae6518819de06fd6f1ded511251bf100ef6 /app/assets/javascripts/monitoring
parentf9e55cc3c9ec3258051c60562b011bef22075f2a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/monitoring')
-rw-r--r--app/assets/javascripts/monitoring/stores/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/monitoring/stores/utils.js b/app/assets/javascripts/monitoring/stores/utils.js
index c425c819c65..7f75a501635 100644
--- a/app/assets/javascripts/monitoring/stores/utils.js
+++ b/app/assets/javascripts/monitoring/stores/utils.js
@@ -45,7 +45,7 @@ export const removeLeadingSlash = (str) => (str || '').replace(/^\/+/, '');
/**
* GraphQL environments API returns only id and name.
* For the environments dropdown we need metrics_path.
- * This method parses the results and add neccessart attrs
+ * This method parses the results and add necessary attrs
*
* @param {Array} response Environments API result
* @param {String} projectPath Current project path
@@ -57,7 +57,7 @@ export const parseEnvironmentsResponse = (response = [], projectPath) =>
return {
...env,
id,
- metrics_path: `${projectPath}/environments/${id}/metrics`,
+ metrics_path: `${projectPath}/-/metrics?environment=${id}`,
};
});