]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21132 Deprecate param severity in api/rules/update
authorEric Giffon <eric.giffon@sonarsource.com>
Wed, 27 Dec 2023 14:26:41 +0000 (15:26 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 28 Dec 2023 20:03:00 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/UpdateAction.java

index 8af573cf247fab9a8e8efe9486e27d3b305aaf6a..6d8861591a1b2d6613fa7097f4a791d8578bf4bf 100644 (file)
@@ -92,6 +92,7 @@ public class UpdateAction implements RulesWsAction {
         "Requires the 'Administer Quality Profiles' permission")
       .setChangelog(
         new Change("10.2", "The field 'severity' and 'type' in the response have been deprecated, use 'impacts' instead."),
+        new Change("10.4", String.format("The parameter '%s' is deprecated.", PARAM_SEVERITY)),
         new Change("10.4", "Updating a removed rule is now possible.")
       )
       .setSince("4.4")
@@ -145,6 +146,7 @@ public class UpdateAction implements RulesWsAction {
     action
       .createParam(PARAM_SEVERITY)
       .setDescription("Rule severity (Only when updating a custom rule)")
+      .setDeprecatedSince("10.4")
       .setPossibleValues(Severity.ALL);
 
     action