aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/source-viewer
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-05-07 14:36:11 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-05-07 14:37:19 +0200
commitf5919d8f7cc67d9a6163b4c78813b0951519dc9d (patch)
tree83c0b72410a762920abe00e78e60e3809d9682e2 /server/sonar-web/src/main/js/source-viewer
parent53d98ef624ba29f8437b44c6dd6e7e048f23c2cd (diff)
downloadsonarqube-f5919d8f7cc67d9a6163b4c78813b0951519dc9d.tar.gz
sonarqube-f5919d8f7cc67d9a6163b4c78813b0951519dc9d.zip
SONAR-6416 migrate web to new tests WS
Diffstat (limited to 'server/sonar-web/src/main/js/source-viewer')
-rw-r--r--server/sonar-web/src/main/js/source-viewer/measures-overlay.js13
1 files changed, 5 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/source-viewer/measures-overlay.js b/server/sonar-web/src/main/js/source-viewer/measures-overlay.js
index 04fdcc0cf9c..eec15c61f47 100644
--- a/server/sonar-web/src/main/js/source-viewer/measures-overlay.js
+++ b/server/sonar-web/src/main/js/source-viewer/measures-overlay.js
@@ -166,8 +166,8 @@ define([
requestTests: function () {
var that = this,
- url = baseUrl + '/api/tests/show',
- options = { key: this.model.key() };
+ url = baseUrl + '/api/tests/list',
+ options = { testFileUuid: this.model.id };
return $.get(url, options).done(function (data) {
that.model.set({ tests: data.tests });
that.testSorting = 'status';
@@ -221,16 +221,13 @@ define([
showTest: function (e) {
var that = this,
- name = $(e.currentTarget).data('name'),
+ testUuid = $(e.currentTarget).data('id'),
url = baseUrl + '/api/tests/covered_files',
- options = {
- key: this.model.key(),
- test: name
- };
+ options = { testUuid: testUuid };
this.testsScroll = $(e.currentTarget).scrollParent().scrollTop();
return $.get(url, options).done(function (data) {
that.coveredFiles = data.files;
- that.selectedTest = _.findWhere(that.model.get('tests'), { name: name });
+ that.selectedTest = _.findWhere(that.model.get('tests'), { testUuid: testUuid });
that.render();
});
},