From e516eae6ca78292248fb75759948255f06b763bb Mon Sep 17 00:00:00 2001 From: Eric Giffon Date: Wed, 27 Dec 2023 15:26:41 +0100 Subject: [PATCH] SONAR-21132 Deprecate param severity in api/rules/update --- .../src/main/java/org/sonar/server/rule/ws/UpdateAction.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/UpdateAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/UpdateAction.java index 8af573cf247..6d8861591a1 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/UpdateAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/UpdateAction.java @@ -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 -- 2.39.5