diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-08-24 11:53:47 +0200 |
---|---|---|
committer | Janos Gyerik <janos.gyerik@sonarsource.com> | 2017-09-12 11:34:49 +0200 |
commit | 404d315b077c84da3c31b0c0f4dde852d918c8d1 (patch) | |
tree | 176840ffdfb472a469848539dfbb803372c94b93 /server/sonar-web/src/main/js/components/SourceViewer/views/measures-overlay.js | |
parent | 9f5272cac177f024354dd72da2cda2160c5440af (diff) | |
download | sonarqube-404d315b077c84da3c31b0c0f4dde852d918c8d1.tar.gz sonarqube-404d315b077c84da3c31b0c0f4dde852d918c8d1.zip |
SONAR-9736 Build UI for long-living branches (#2390)
Diffstat (limited to 'server/sonar-web/src/main/js/components/SourceViewer/views/measures-overlay.js')
-rw-r--r-- | server/sonar-web/src/main/js/components/SourceViewer/views/measures-overlay.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/views/measures-overlay.js b/server/sonar-web/src/main/js/components/SourceViewer/views/measures-overlay.js index 23190cd383a..d9d7eb25c31 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/views/measures-overlay.js +++ b/server/sonar-web/src/main/js/components/SourceViewer/views/measures-overlay.js @@ -141,7 +141,11 @@ export default ModalView.extend({ .filter(metric => metric.type !== 'DATA' && !metric.hidden) .map(metric => metric.key); - return getMeasures(this.options.component.key, metricsToRequest).then(measures => { + return getMeasures( + this.options.component.key, + metricsToRequest, + this.options.branch + ).then(measures => { let nextMeasures = this.options.component.measures || {}; measures.forEach(measure => { const metric = metrics.find(metric => metric.key === measure.metric); @@ -160,6 +164,7 @@ export default ModalView.extend({ return new Promise(resolve => { const url = window.baseUrl + '/api/issues/search'; const options = { + branch: this.options.branch, componentKeys: this.options.component.key, resolved: false, ps: 1, @@ -191,7 +196,7 @@ export default ModalView.extend({ requestTests() { return new Promise(resolve => { const url = window.baseUrl + '/api/tests/list'; - const options = { testFileKey: this.options.component.key }; + const options = { branch: this.options.branch, testFileKey: this.options.component.key }; $.get(url, options).done(data => { this.tests = data.tests; |