aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-06-24 09:55:53 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-06-25 10:36:56 +0200
commit5a9eaac4ac4696c88fb9c4e4499e0e5725c5673e (patch)
tree5253259313cf1c4d313f93078ecb6d628c365ec5 /server/sonar-web
parent9273b7fa6ddc25715837e49d6ba083bb888b0c30 (diff)
downloadsonarqube-5a9eaac4ac4696c88fb9c4e4499e0e5725c5673e.tar.gz
sonarqube-5a9eaac4ac4696c88fb9c4e4499e0e5725c5673e.zip
SONAR-6195 Adjust UI to request fields as needed
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/controller.js6
-rw-r--r--server/sonar-web/src/main/js/components/source-viewer/main.js5
2 files changed, 7 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/controller.js b/server/sonar-web/src/main/js/apps/issues/controller.js
index 1ddcdb180bf..8c4993ad2dc 100644
--- a/server/sonar-web/src/main/js/apps/issues/controller.js
+++ b/server/sonar-web/src/main/js/apps/issues/controller.js
@@ -5,7 +5,9 @@ define([
], function (Controller, ComponentViewer, HomeView) {
var $ = jQuery,
- EXTRA_FIELDS = 'actions,transitions,actionPlanName',
+ FIELDS = 'component,componentId,project,subProject,rule,status,resolution,author,reporter,assignee,debt,line,' +
+ 'message,severity,actionPlan,creationDate,updateDate,closeDate,tags,comments,attr,actions,transitions,' +
+ 'actionPlanName',
FACET_DATA_FIELDS = ['components', 'projects', 'users', 'rules', 'actionPlans', 'languages'];
return Controller.extend({
@@ -21,7 +23,7 @@ define([
ps: this.pageSize,
s: 'FILE_LINE',
asc: true,
- extra_fields: EXTRA_FIELDS,
+ f: FIELDS,
facets: this._facetsFromServer().join()
};
},
diff --git a/server/sonar-web/src/main/js/components/source-viewer/main.js b/server/sonar-web/src/main/js/components/source-viewer/main.js
index 67ad617c9d2..523d76e63dd 100644
--- a/server/sonar-web/src/main/js/components/source-viewer/main.js
+++ b/server/sonar-web/src/main/js/components/source-viewer/main.js
@@ -274,7 +274,9 @@ define([
options = {
data: {
componentUuids: this.model.id,
- extra_fields: 'actions,transitions,actionPlanName',
+ f: 'component,componentId,project,subProject,rule,status,resolution,author,reporter,assignee,debt,' +
+ 'line,message,severity,actionPlan,creationDate,updateDate,closeDate,tags,comments,attr,actions,' +
+ 'transitions,actionPlanName',
resolved: false,
s: 'FILE_LINE',
asc: true,
@@ -712,4 +714,3 @@ define([
});
});
-