aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-02 12:00:05 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-03 15:35:15 +0100
commit0b3cf3fe412da603e81a9d01ff3ad55a2b4922e3 (patch)
treee9042b1179a1485f864760f6983dd39032ab3dd7 /server/sonar-web
parent5e53506d7357b7b7eb0d22d6b50bf4eb6a652325 (diff)
downloadsonarqube-0b3cf3fe412da603e81a9d01ff3ad55a2b4922e3.tar.gz
sonarqube-0b3cf3fe412da603e81a9d01ff3ad55a2b4922e3.zip
SONAR-8120 api/measures/search now accepts only project keys
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/api/measures.js4
-rw-r--r--server/sonar-web/src/main/js/apps/projects/store/actions.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/api/measures.js b/server/sonar-web/src/main/js/api/measures.js
index f04d579bf08..b9ccc591132 100644
--- a/server/sonar-web/src/main/js/api/measures.js
+++ b/server/sonar-web/src/main/js/api/measures.js
@@ -34,9 +34,9 @@ export function getMeasuresAndMeta (componentKey, metrics, additional = {}) {
return getJSON(url, data);
}
-export const getMeasuresForComponents = (componentKeys, metricKeys) => (
+export const getMeasuresForProjects = (projectKeys, metricKeys) => (
getJSON('/api/measures/search', {
- componentKeys: componentKeys.join(),
+ projectKeys: projectKeys.join(),
metricKeys: metricKeys.join()
})
);
diff --git a/server/sonar-web/src/main/js/apps/projects/store/actions.js b/server/sonar-web/src/main/js/apps/projects/store/actions.js
index e811bd63279..003cdceba64 100644
--- a/server/sonar-web/src/main/js/apps/projects/store/actions.js
+++ b/server/sonar-web/src/main/js/apps/projects/store/actions.js
@@ -25,7 +25,7 @@ import { receiveComponents } from '../../../app/store/components/actions';
import { receiveProjects, receiveMoreProjects } from './projects/actions';
import { updateState } from './state/actions';
import { getProjectsAppState } from '../../../app/store/rootReducer';
-import { getMeasuresForComponents } from '../../../api/measures';
+import { getMeasuresForProjects } from '../../../api/measures';
import { receiveComponentsMeasures } from '../../../app/store/measures/actions';
import { convertToFilter } from './utils';
import { getFavorites } from '../../../api/favorites';
@@ -81,7 +81,7 @@ const fetchProjectMeasures = projects => dispatch => {
}
const projectKeys = projects.map(project => project.key);
- return getMeasuresForComponents(projectKeys, METRICS).then(onReceiveMeasures(dispatch), onFail(dispatch));
+ return getMeasuresForProjects(projectKeys, METRICS).then(onReceiveMeasures(dispatch), onFail(dispatch));
};
const onReceiveProjects = dispatch => response => {