From: Duarte Meneses Date: Wed, 26 Apr 2023 15:59:24 +0000 (-0500) Subject: Revert "SONAR-19050 Add characteristic to response of issue web services" X-Git-Tag: 10.1.0.73491~383 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fc9c03eb181750614e9692a5a12bde7c3524731c;p=sonarqube.git Revert "SONAR-19050 Add characteristic to response of issue web services" This reverts commit af47db74edfe3556ae56906c231805c43e601650. --- diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/AddCommentAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/AddCommentAction.java index ec6069bf65b..18d576a1032 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/AddCommentAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/AddCommentAction.java @@ -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"), diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/AssignAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/AssignAction.java index 39fb37ff5f4..9e1c9ca3231 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/AssignAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/AssignAction.java @@ -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"), diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/BasePullAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/BasePullAction.java index f506e27951a..920366f0d9d 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/BasePullAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/BasePullAction.java @@ -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)) diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/DeleteCommentAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/DeleteCommentAction.java index 62c3a662755..a6efef345bf 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/DeleteCommentAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/DeleteCommentAction.java @@ -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."), diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/DoTransitionAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/DoTransitionAction.java index 278dbba2f1a..f9db25c4734 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/DoTransitionAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/DoTransitionAction.java @@ -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)), diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java index 29f0404aee1..b5b7fe2df24 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/EditCommentAction.java @@ -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"), diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetSeverityAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetSeverityAction.java index 3149d5db3c9..a00dd2afa7d 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetSeverityAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetSeverityAction.java @@ -79,7 +79,6 @@ public class SetSeverityAction implements IssuesWsAction { "") .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"), diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetTagsAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetTagsAction.java index da921bc570d..7bbc6824062 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetTagsAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetTagsAction.java @@ -74,7 +74,6 @@ public class SetTagsAction implements IssuesWsAction { .setDescription("Set tags on an issue.
" + "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"), diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetTypeAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetTypeAction.java index 873f53d2aa9..6807f29186d 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetTypeAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetTypeAction.java @@ -83,7 +83,6 @@ public class SetTypeAction implements IssuesWsAction { "") .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"), diff --git a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/add_comment-example.json b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/add_comment-example.json index aef1969c677..38de0633acf 100644 --- a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/add_comment-example.json +++ b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/add_comment-example.json @@ -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": [ { diff --git a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/assign-example.json b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/assign-example.json index 68cdeb1f1ce..f591d112dbb 100644 --- a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/assign-example.json +++ b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/assign-example.json @@ -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": [ { diff --git a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/delete_comment-example.json b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/delete_comment-example.json index 68cdeb1f1ce..f591d112dbb 100644 --- a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/delete_comment-example.json +++ b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/delete_comment-example.json @@ -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": [ { diff --git a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/do_transition-example.json b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/do_transition-example.json index 68cdeb1f1ce..f591d112dbb 100644 --- a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/do_transition-example.json +++ b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/do_transition-example.json @@ -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": [ { diff --git a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/edit_comment-example.json b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/edit_comment-example.json index 68cdeb1f1ce..f591d112dbb 100644 --- a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/edit_comment-example.json +++ b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/edit_comment-example.json @@ -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": [ { diff --git a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/search-example.json b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/search-example.json index d3d230fa52c..3e90745a062 100644 --- a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/search-example.json +++ b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/search-example.json @@ -93,8 +93,7 @@ } ], "quickFixAvailable": false, - "ruleDescriptionContextKey": "spring", - "characteristic": "CLEAR" + "ruleDescriptionContextKey": "spring" } ], "components": [ diff --git a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_severity-example.json b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_severity-example.json index 68cdeb1f1ce..f591d112dbb 100644 --- a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_severity-example.json +++ b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_severity-example.json @@ -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": [ { diff --git a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_tags-example.json b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_tags-example.json index 5ad480ff14a..d690eb9b06a 100644 --- a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_tags-example.json +++ b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_tags-example.json @@ -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": [ { diff --git a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_type-example.json b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_type-example.json index 68cdeb1f1ce..f591d112dbb 100644 --- a/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_type-example.json +++ b/server/sonar-webserver-webapi/src/main/resources/org/sonar/server/issue/ws/set_type-example.json @@ -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": [ {