]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9275 WS api/issues/delete_comment create changelog of API changes 2087/head
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Mon, 22 May 2017 07:49:37 +0000 (09:49 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 23 May 2017 07:38:51 +0000 (09:38 +0200)
server/sonar-server/src/main/java/org/sonar/server/issue/ws/DeleteCommentAction.java
server/sonar-server/src/main/resources/org/sonar/server/issue/ws/delete_comment-example.json

index 613a097e0633b51a973af94fe9187e5c36fab91c..97d0b0d08841800721c9e452bd493fa8df7bb4f5 100644 (file)
@@ -24,6 +24,7 @@ import java.util.Objects;
 import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.stream.Stream;
+import org.sonar.api.server.ws.Change;
 import org.sonar.api.server.ws.Request;
 import org.sonar.api.server.ws.Response;
 import org.sonar.api.server.ws.WebService;
@@ -60,10 +61,13 @@ public class DeleteCommentAction implements IssuesWsAction {
   public void define(WebService.NewController context) {
     WebService.NewAction action = context.createAction(ACTION_DELETE_COMMENT)
       .setDescription("Delete a comment.<br/>" +
-        "Requires authentication and the following permission: 'Browse' on the project of the specified issue.<br/>" +
-        "Since 6.3, the response contains the issue with all details, not the removed comment.<br/>" +
-        "Since 6.3, 'key' parameter has been renamed to %s", PARAM_COMMENT)
+        "Requires authentication and the following permission: 'Browse' on the project of the specified issue.")
       .setSince("3.6")
+      .setChangelog(
+        new Change("6.5", "the response field components.uuid is deprecated. Use components.key instead."),
+        new Change("6.5", "the database ids of the components are removed from the response"),
+        new Change("6.3", "the response returns the issue with all its details"),
+        new Change("6.3", "the 'key' parameter is renamed 'comment'"))
       .setHandler(this)
       .setResponseExample(Resources.getResource(this.getClass(), "delete_comment-example.json"))
       .setPost(true);
index 7cab6160070dd6421f4bed41ff601cd41a1a07c2..412ea524298597360ec7381425fbbfb7c1060a32 100644 (file)
@@ -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": {