aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-09-30 14:35:02 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-09-30 14:35:13 +0200
commit3fb81b5cf3b558488b73046e410caa5af04957ab (patch)
tree742516846a7c2f85434b8e6275ca3a48b3697ffc
parent82f8355cfd97c22c87f523076328d138f7f213f0 (diff)
downloadsonarqube-3fb81b5cf3b558488b73046e410caa5af04957ab.tar.gz
sonarqube-3fb81b5cf3b558488b73046e410caa5af04957ab.zip
SONAR-5646 add widget id to response of api/dashboards/show
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/dashboard/ws/DashboardsShowAction.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/dashboard/ws/DashboardsShowAction.java b/server/sonar-server/src/main/java/org/sonar/server/dashboard/ws/DashboardsShowAction.java
index a1c02826972..45e3f39aad5 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/dashboard/ws/DashboardsShowAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/dashboard/ws/DashboardsShowAction.java
@@ -24,7 +24,6 @@ import org.sonar.api.server.ws.Request;
import org.sonar.api.server.ws.Response;
import org.sonar.api.server.ws.WebService;
import org.sonar.api.utils.text.JsonWriter;
-import org.sonar.core.component.ComponentDto;
import org.sonar.core.dashboard.DashboardDto;
import org.sonar.core.dashboard.WidgetDto;
import org.sonar.core.dashboard.WidgetPropertyDto;
@@ -94,6 +93,7 @@ public class DashboardsShowAction implements DashboardsAction {
dbClient.widgetPropertyDao().findByDashboard(dbSession, dashboard.getKey()));
for (WidgetDto widget : widgets) {
json.beginObject();
+ json.prop("id", widget.getId());
json.prop("key", widget.getWidgetKey());
json.prop("name", widget.getName());
json.prop("desc", widget.getDescription());