From d6bd659df4ab570421273f5d30facb8334cf87be Mon Sep 17 00:00:00 2001 From: Matteo Mara Date: Thu, 30 Mar 2023 17:13:01 +0200 Subject: [PATCH] SONAR-17705 fix description of qualitygates/copy and qualitygates/rename endpoints --- .../main/java/org/sonar/server/qualitygate/ws/CopyAction.java | 2 +- .../main/java/org/sonar/server/qualitygate/ws/RenameAction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/CopyAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/CopyAction.java index 9a9a6792162..f4cc43a521e 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/CopyAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/CopyAction.java @@ -55,7 +55,7 @@ public class CopyAction implements QualityGatesWsAction { public void define(WebService.NewController controller) { WebService.NewAction action = controller.createAction("copy") .setDescription("Copy a Quality Gate.
" + - "Either 'sourceName' or 'id' must be provided. Requires the 'Administer Quality Gates' permission.") + "'sourceName' must be provided. Requires the 'Administer Quality Gates' permission.") .setPost(true) .setChangelog( new Change("10.0", "Field 'id' in the response is deprecated"), diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/RenameAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/RenameAction.java index 4eb8b0efa97..c1996a65767 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/RenameAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/RenameAction.java @@ -49,7 +49,7 @@ public class RenameAction implements QualityGatesWsAction { WebService.NewAction action = controller.createAction("rename") .setPost(true) .setDescription("Rename a Quality Gate.
" + - "Either 'id' or 'currentName' must be specified. Requires the 'Administer Quality Gates' permission.") + "'currentName' must be specified. Requires the 'Administer Quality Gates' permission.") .setSince("4.3") .setChangelog( new Change("10.0", "Field 'id' in the response is deprecated"), -- 2.39.5