From bd3ca4ff6c3a615099a2d282a370c5e553e0c0f5 Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Fri, 19 May 2017 18:13:00 +0200 Subject: SONAR-9277 WS api/issues/edit_comment deprecate components.uuid field and drop database ids in response --- .../src/main/java/org/sonar/server/issue/ws/EditCommentAction.java | 5 +++-- .../resources/org/sonar/server/issue/ws/edit_comment-example.json | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server') diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java index f895b12dcad..849ad01acf8 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java @@ -71,8 +71,9 @@ public class EditCommentAction implements IssuesWsAction { .setSince("3.6") .setChangelog( new Change("6.3", "the response returns the issue with all its details"), - new Change("6.3", format("the 'key' parameter has been renamed %s", PARAM_COMMENT)) - ) + new Change("6.3", format("the 'key' parameter has been renamed %s", PARAM_COMMENT)), + new Change("6.5", "the database ids of the components are removed from the response"), + new Change("6.5", "the response field components.uuid is deprecated. Use components.key instead.")) .setHandler(this) .setResponseExample(Resources.getResource(this.getClass(), "edit_comment-example.json")) .setPost(true); diff --git a/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/edit_comment-example.json b/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/edit_comment-example.json index 7cab6160070..412ea524298 100644 --- a/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/edit_comment-example.json +++ b/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/edit_comment-example.json @@ -4,7 +4,6 @@ "rule": "squid:S2301", "severity": "MAJOR", "component": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", - "componentId": 87163, "project": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", "line": 78, "textRange": { -- cgit v1.2.3