From 95d76c5be1e92dd517a47aef4bc405fad7bef628 Mon Sep 17 00:00:00 2001 From: Matteo Mara Date: Fri, 31 Mar 2023 16:20:36 +0200 Subject: [PATCH] SONAR-18743 fix changelog and response examples of issues endpoints --- .../main/java/org/sonar/server/issue/ws/AddCommentAction.java | 1 + .../src/main/java/org/sonar/server/issue/ws/AssignAction.java | 1 + .../java/org/sonar/server/issue/ws/DeleteCommentAction.java | 1 + .../main/java/org/sonar/server/issue/ws/DoTransitionAction.java | 1 + .../main/java/org/sonar/server/issue/ws/EditCommentAction.java | 1 + .../main/java/org/sonar/server/issue/ws/SetSeverityAction.java | 1 + .../src/main/java/org/sonar/server/issue/ws/SetTagsAction.java | 1 + .../src/main/java/org/sonar/server/issue/ws/SetTypeAction.java | 1 + .../org/sonar/server/issue/ws/add_comment-example.json | 2 -- .../resources/org/sonar/server/issue/ws/assign-example.json | 2 -- .../org/sonar/server/issue/ws/delete_comment-example.json | 2 -- .../org/sonar/server/issue/ws/do_transition-example.json | 2 -- .../org/sonar/server/issue/ws/edit_comment-example.json | 2 -- .../org/sonar/server/issue/ws/set_severity-example.json | 2 -- .../resources/org/sonar/server/issue/ws/set_tags-example.json | 2 -- .../resources/org/sonar/server/issue/ws/set_type-example.json | 2 -- 16 files changed, 8 insertions(+), 16 deletions(-) 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 d151da7f274..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 @@ -73,6 +73,7 @@ public class AddCommentAction implements IssuesWsAction { .setSince("3.6") .setChangelog( 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"), 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.")) 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 2f0624b3e93..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 @@ -76,6 +76,7 @@ public class AssignAction implements IssuesWsAction { .setSince("3.6") .setChangelog( 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"), new Change("6.5", "the response field components.uuid is deprecated. Use components.key instead.")) .setHandler(this) 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 4d3337183fb..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 @@ -61,6 +61,7 @@ public class DeleteCommentAction implements IssuesWsAction { .setSince("3.6") .setChangelog( 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."), 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"), 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 a0fc52c02ef..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 @@ -83,6 +83,7 @@ public class DoTransitionAction implements IssuesWsAction { .setSince("3.6") .setChangelog( 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)), new Change("7.8", format("added '%s', %s, %s and %s transitions for security hotspots ", SET_AS_IN_REVIEW, RESOLVE_AS_REVIEWED, OPEN_AS_VULNERABILITY, RESET_AS_TO_REVIEW)), new Change("7.3", "added transitions for security hotspots"), 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 ce760c91b88..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 @@ -67,6 +67,7 @@ public class EditCommentAction implements IssuesWsAction { .setSince("3.6") .setChangelog( 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"), 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"), 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 8636de316b8..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 @@ -80,6 +80,7 @@ public class SetSeverityAction implements IssuesWsAction { .setSince("3.6") .setChangelog( 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"), new Change("6.5", "the response field components.uuid is deprecated. Use components.key instead.")) .setHandler(this) 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 efb2c551cab..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 @@ -75,6 +75,7 @@ public class SetTagsAction implements IssuesWsAction { "Requires authentication and Browse permission on project") .setChangelog( 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"), new Change("6.5", "the response field components.uuid is deprecated. Use components.key instead."), new Change("6.4", "response contains issue information instead of list of tags")) 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 7f96875b302..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 @@ -84,6 +84,7 @@ public class SetTypeAction implements IssuesWsAction { .setSince("5.5") .setChangelog( 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"), new Change("6.5", "the response field components.uuid is deprecated. Use components.key instead.")) .setHandler(this) 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 cbfd2a75f83..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 @@ -53,7 +53,6 @@ "components": [ { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", - "uuid": "AVfTIlxMwczdZ2UaLhnt", "enabled": true, "qualifier": "FIL", "name": "ServerIssueUpdater.java", @@ -63,7 +62,6 @@ { "id": 23498, "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", - "uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", "enabled": true, "qualifier": "TRK", "name": "SonarLint for IntelliJ IDEA", 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 50f89081597..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 @@ -53,7 +53,6 @@ "components": [ { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", - "uuid": "AVfTIlxMwczdZ2UaLhnt", "enabled": true, "qualifier": "FIL", "name": "ServerIssueUpdater.java", @@ -62,7 +61,6 @@ }, { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", - "uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", "enabled": true, "qualifier": "TRK", "name": "SonarLint for IntelliJ IDEA", 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 50f89081597..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 @@ -53,7 +53,6 @@ "components": [ { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", - "uuid": "AVfTIlxMwczdZ2UaLhnt", "enabled": true, "qualifier": "FIL", "name": "ServerIssueUpdater.java", @@ -62,7 +61,6 @@ }, { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", - "uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", "enabled": true, "qualifier": "TRK", "name": "SonarLint for IntelliJ IDEA", 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 50f89081597..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 @@ -53,7 +53,6 @@ "components": [ { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", - "uuid": "AVfTIlxMwczdZ2UaLhnt", "enabled": true, "qualifier": "FIL", "name": "ServerIssueUpdater.java", @@ -62,7 +61,6 @@ }, { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", - "uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", "enabled": true, "qualifier": "TRK", "name": "SonarLint for IntelliJ IDEA", 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 50f89081597..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 @@ -53,7 +53,6 @@ "components": [ { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", - "uuid": "AVfTIlxMwczdZ2UaLhnt", "enabled": true, "qualifier": "FIL", "name": "ServerIssueUpdater.java", @@ -62,7 +61,6 @@ }, { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", - "uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", "enabled": true, "qualifier": "TRK", "name": "SonarLint for IntelliJ IDEA", 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 50f89081597..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 @@ -53,7 +53,6 @@ "components": [ { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", - "uuid": "AVfTIlxMwczdZ2UaLhnt", "enabled": true, "qualifier": "FIL", "name": "ServerIssueUpdater.java", @@ -62,7 +61,6 @@ }, { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", - "uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", "enabled": true, "qualifier": "TRK", "name": "SonarLint for IntelliJ IDEA", 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 58865766e66..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 @@ -53,7 +53,6 @@ "components": [ { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", - "uuid": "AVfTIlxMwczdZ2UaLhnt", "enabled": true, "qualifier": "FIL", "name": "ServerIssueUpdater.java", @@ -64,7 +63,6 @@ }, { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", - "uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", "enabled": true, "qualifier": "TRK", "name": "SonarLint for IntelliJ IDEA", 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 50f89081597..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 @@ -53,7 +53,6 @@ "components": [ { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij:src/main/java/org/sonarlint/intellij/core/ServerIssueUpdater.java", - "uuid": "AVfTIlxMwczdZ2UaLhnt", "enabled": true, "qualifier": "FIL", "name": "ServerIssueUpdater.java", @@ -62,7 +61,6 @@ }, { "key": "org.sonarsource.sonarlint.intellij:sonarlint-intellij", - "uuid": "8b745480-b598-4e34-af4a-cb2de1808e50", "enabled": true, "qualifier": "TRK", "name": "SonarLint for IntelliJ IDEA", -- 2.39.5