]> source.dussan.org Git - sonarqube.git/commitdiff
Revert "SONAR-19050 Add characteristic to response of issue web services"
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 26 Apr 2023 15:59:24 +0000 (10:59 -0500)
committersonartech <sonartech@sonarsource.com>
Fri, 28 Apr 2023 20:02:57 +0000 (20:02 +0000)
This reverts commit af47db74edfe3556ae56906c231805c43e601650.

18 files changed:
server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/AddCommentAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/AssignAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/BasePullAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/DeleteCommentAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/DoTransitionAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetSeverityAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetTagsAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetTypeAction.java
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/add_comment-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/assign-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/delete_comment-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/do_transition-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/edit_comment-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/search-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_severity-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_tags-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_type-example.json

index ec6069bf65bb39d7af3458b543d6df42ebf66062..18d576a1032c077dd3225853225b55a48e8709bd 100644 (file)
@@ -72,7 +72,6 @@ public class AddCommentAction implements IssuesWsAction {
         "Requires authentication and the following permission: 'Browse' on the project of the specified issue.")
       .setSince("3.6")
       .setChangelog(
-        new Change("10.1", "Field 'characteristic' added to issues in the response"),
         new Change("9.6", "Response field 'ruleDescriptionContextKey' added"),
         new Change("8.8", "The response field components.uuid is removed"),
         new Change("6.3", "the response returns the issue with all its details"),
index 39fb37ff5f4f9d7258a76dcaa5f708755efe05af..9e1c9ca3231c0e7a2aef6160899650df3e294b55 100644 (file)
@@ -75,7 +75,6 @@ public class AssignAction implements IssuesWsAction {
       .setDescription("Assign/Unassign an issue. Requires authentication and Browse permission on project")
       .setSince("3.6")
       .setChangelog(
-        new Change("10.1", "Field 'characteristic' added to issues in the response"),
         new Change("9.6", "Response field 'ruleDescriptionContextKey' added"),
         new Change("8.8", "The response field components.uuid is removed"),
         new Change("6.5", "the database ids of the components are removed from the response"),
index f506e27951a9bb7ffab11d4b23cb14397862c48d..920366f0d9d17f7435b680a5cbac1da1d395f50f 100644 (file)
@@ -26,7 +26,6 @@ import java.util.List;
 import java.util.Set;
 import java.util.function.Consumer;
 import javax.annotation.Nullable;
-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;
@@ -85,9 +84,6 @@ public abstract class BasePullAction implements IssuesWsAction {
       .createAction(actionName)
       .setHandler(this)
       .setInternal(true)
-      .setChangelog(
-        new Change("10.1", "Field 'characteristic' added to issues in the response")
-        )
       .setResponseExample(getClass().getResource(resourceExample))
       .setDescription(format("This endpoint fetches and returns all (unless filtered by optional params) the %s for a given branch. " +
         "The %s returned are not paginated, so the response size can be big. Requires project 'Browse' permission.", issueType, issueType))
index 62c3a662755db4f101a4cafa92f31401c7e786de..a6efef345bf4eec559fc16df80a7a6a9eee0564d 100644 (file)
@@ -60,7 +60,6 @@ public class DeleteCommentAction implements IssuesWsAction {
         "Requires authentication and the following permission: 'Browse' on the project of the specified issue.")
       .setSince("3.6")
       .setChangelog(
-        new Change("10.1", "Field 'characteristic' added to issues in the response"),
         new Change("9.6", "Response field 'ruleDescriptionContextKey' added"),
         new Change("8.8", "The response field components.uuid is removed"),
         new Change("6.5", "the response field components.uuid is deprecated. Use components.key instead."),
index 278dbba2f1a6ef1dd345bbcc1ce75b74ba56c216..f9db25c4734f8fdc9d12164ff39183e88a1cc3e7 100644 (file)
@@ -82,7 +82,6 @@ public class DoTransitionAction implements IssuesWsAction {
         "The transitions involving security hotspots require the permission 'Administer Security Hotspot'.")
       .setSince("3.6")
       .setChangelog(
-        new Change("10.1", "Field 'characteristic' added to issues in the response"),
         new Change("9.6", "Response field 'ruleDescriptionContextKey' added"),
         new Change("8.8", "The response field components.uuid is removed"),
         new Change("8.1", format("transitions '%s' and '%s' are no more supported", SET_AS_IN_REVIEW, OPEN_AS_VULNERABILITY)),
index 29f0404aee1fc43a62079b765e419ac3a7d9db42..b5b7fe2df241c974a61e1831f76a90db47dcb754 100644 (file)
@@ -66,7 +66,6 @@ public class EditCommentAction implements IssuesWsAction {
         "Requires authentication and the following permission: 'Browse' on the project of the specified issue.")
       .setSince("3.6")
       .setChangelog(
-        new Change("10.1", "Field 'characteristic' added to issues in the response"),
         new Change("9.6", "Response field 'ruleDescriptionContextKey' added"),
         new Change("8.8", "The response field components.uuid is removed"),
         new Change("6.3", "the response returns the issue with all its details"),
index 3149d5db3c9a72a8cb27a1e27fd4d2f69a4d2ad5..a00dd2afa7d7d9fd7fc83ff7a13eb0d03143d23e 100644 (file)
@@ -79,7 +79,6 @@ public class SetSeverityAction implements IssuesWsAction {
         "</ul>")
       .setSince("3.6")
       .setChangelog(
-        new Change("10.1", "Field 'characteristic' added to issues in the response"),
         new Change("9.6", "Response field 'ruleDescriptionContextKey' added"),
         new Change("8.8", "The response field components.uuid is removed"),
         new Change("6.5", "the database ids of the components are removed from the response"),
index da921bc570d6fc5ab157c5a5f347d9194852dc74..7bbc682406239b22bcdc950b0758c80892b3fb36 100644 (file)
@@ -74,7 +74,6 @@ public class SetTagsAction implements IssuesWsAction {
       .setDescription("Set tags on an issue. <br/>" +
         "Requires authentication and Browse permission on project")
       .setChangelog(
-        new Change("10.1", "Field 'characteristic' added to issues in the response"),
         new Change("9.6", "Response field 'ruleDescriptionContextKey' added"),
         new Change("8.8", "The response field components.uuid is removed"),
         new Change("6.5", "the database ids of the components are removed from the response"),
index 873f53d2aa9a075b6ce5911012d7b0c959f2126f..6807f29186d5bb005882eaa74a7b7163b7b3ba69 100644 (file)
@@ -83,7 +83,6 @@ public class SetTypeAction implements IssuesWsAction {
         "</ul>")
       .setSince("5.5")
       .setChangelog(
-        new Change("10.1", "Field 'characteristic' added to issues in the response"),
         new Change("9.6", "Response field 'ruleDescriptionContextKey' added"),
         new Change("8.8", "The response field components.uuid is removed"),
         new Change("6.5", "the database ids of the components are removed from the response"),
index aef1969c677486501204971e4e11beba78daa503..38de0633acf76fc2110c597b35de3b18e5f29f0a 100644 (file)
@@ -48,8 +48,7 @@
     "creationDate": "2016-11-25T13:50:24+0100",
     "updateDate": "2017-01-09T13:51:12+0100",
     "type": "CODE_SMELL",
-    "ruleDescriptionContextKey": "spring",
-    "characteristic": "CLEAR"
+    "ruleDescriptionContextKey": "spring"
   },
   "components": [
     {
index 68cdeb1f1cecff92255f9f5190a9d46a73ab251a..f591d112dbbe4587744276b4ff852a8f7c3edbb4 100644 (file)
@@ -48,8 +48,7 @@
     "creationDate": "2016-11-25T13:50:24+0100",
     "updateDate": "2017-01-09T13:51:12+0100",
     "type": "CODE_SMELL",
-    "ruleDescriptionContextKey": "spring",
-    "characteristic": "CLEAR"
+    "ruleDescriptionContextKey": "spring"
   },
   "components": [
     {
index 68cdeb1f1cecff92255f9f5190a9d46a73ab251a..f591d112dbbe4587744276b4ff852a8f7c3edbb4 100644 (file)
@@ -48,8 +48,7 @@
     "creationDate": "2016-11-25T13:50:24+0100",
     "updateDate": "2017-01-09T13:51:12+0100",
     "type": "CODE_SMELL",
-    "ruleDescriptionContextKey": "spring",
-    "characteristic": "CLEAR"
+    "ruleDescriptionContextKey": "spring"
   },
   "components": [
     {
index 68cdeb1f1cecff92255f9f5190a9d46a73ab251a..f591d112dbbe4587744276b4ff852a8f7c3edbb4 100644 (file)
@@ -48,8 +48,7 @@
     "creationDate": "2016-11-25T13:50:24+0100",
     "updateDate": "2017-01-09T13:51:12+0100",
     "type": "CODE_SMELL",
-    "ruleDescriptionContextKey": "spring",
-    "characteristic": "CLEAR"
+    "ruleDescriptionContextKey": "spring"
   },
   "components": [
     {
index 68cdeb1f1cecff92255f9f5190a9d46a73ab251a..f591d112dbbe4587744276b4ff852a8f7c3edbb4 100644 (file)
@@ -48,8 +48,7 @@
     "creationDate": "2016-11-25T13:50:24+0100",
     "updateDate": "2017-01-09T13:51:12+0100",
     "type": "CODE_SMELL",
-    "ruleDescriptionContextKey": "spring",
-    "characteristic": "CLEAR"
+    "ruleDescriptionContextKey": "spring"
   },
   "components": [
     {
index d3d230fa52c43261ed644191866b278cae3dc77f..3e90745a0622fad79aabc26057aa2614bac91c5b 100644 (file)
@@ -93,8 +93,7 @@
         }
       ],
       "quickFixAvailable": false,
-      "ruleDescriptionContextKey": "spring",
-      "characteristic": "CLEAR"
+      "ruleDescriptionContextKey": "spring"
     }
   ],
   "components": [
index 68cdeb1f1cecff92255f9f5190a9d46a73ab251a..f591d112dbbe4587744276b4ff852a8f7c3edbb4 100644 (file)
@@ -48,8 +48,7 @@
     "creationDate": "2016-11-25T13:50:24+0100",
     "updateDate": "2017-01-09T13:51:12+0100",
     "type": "CODE_SMELL",
-    "ruleDescriptionContextKey": "spring",
-    "characteristic": "CLEAR"
+    "ruleDescriptionContextKey": "spring"
   },
   "components": [
     {
index 5ad480ff14ad718b7fd6494bd178bfb932eb9c8b..d690eb9b06a826808e100bab1d58e36f0b245924 100644 (file)
@@ -48,8 +48,7 @@
     "creationDate": "2016-11-25T13:50:24+0100",
     "updateDate": "2017-01-09T13:51:12+0100",
     "type": "CODE_SMELL",
-    "ruleDescriptionContextKey": "spring",
-    "characteristic": "CLEAR"
+    "ruleDescriptionContextKey": "spring"
   },
   "components": [
     {
index 68cdeb1f1cecff92255f9f5190a9d46a73ab251a..f591d112dbbe4587744276b4ff852a8f7c3edbb4 100644 (file)
@@ -48,8 +48,7 @@
     "creationDate": "2016-11-25T13:50:24+0100",
     "updateDate": "2017-01-09T13:51:12+0100",
     "type": "CODE_SMELL",
-    "ruleDescriptionContextKey": "spring",
-    "characteristic": "CLEAR"
+    "ruleDescriptionContextKey": "spring"
   },
   "components": [
     {