diff options
author | Dimitris Kavvathas <dimitris.kavvathas@sonarsource.com> | 2023-03-09 17:19:37 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-03-13 20:02:45 +0000 |
commit | dd791e68ca7a5b0375e7cba70a2f8f27d4c75c26 (patch) | |
tree | a84c55cd9df1cbfc9958e22122f2bc8d3c080ed0 /sonar-ws | |
parent | 82c7e9e96b598e50cdc90f7927213d21e7c6ff10 (diff) | |
download | sonarqube-dd791e68ca7a5b0375e7cba70a2f8f27d4c75c26.tar.gz sonarqube-dd791e68ca7a5b0375e7cba70a2f8f27d4c75c26.zip |
SONAR-18638 Drop deprecated fields in Rules WS API.
Drop "effortToFixDescription" and replace with "gapDescription".
Drop "debtRemFnCoeff" and replace with "remFnGapMultiplier".
Drop "defaultDebtRemFnCoeff" and replace with "defaultRemFnGapMultiplier".
Drop "debtRemFnOffset" and replace with "remFnBaseEffort".
Drop "defaultDebtRemFnOffset" and replace with "defaultRemFnBaseEffort".
Correct the version when the field 'scope' was added.
Drop "debtOverloaded" and replace with "remFnOverloaded".
Deprecate "defaultDebtRemFnType" and "debtRemFnType" and replace with "defaultRemFnType" and "remFnType" accordingly.
Deprecate "defaultDebtRemFn" and "debtRemFn" and replace with "defaultRemFn" and "remFn" accordingly.
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/rules/SearchRequest.java | 2 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-rules.proto | 26 |
2 files changed, 10 insertions, 18 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/SearchRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/SearchRequest.java index d42160d816a..068caa90a59 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/SearchRequest.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/SearchRequest.java @@ -158,11 +158,9 @@ public class SearchRequest { * <ul> * <li>"actives"</li> * <li>"createdAt"</li> - * <li>"debtOverloaded"</li> * <li>"debtRemFn"</li> * <li>"defaultDebtRemFn"</li> * <li>"defaultRemFn"</li> - * <li>"effortToFixDescription"</li> * <li>"gapDescription"</li> * <li>"htmlDesc"</li> * <li>"htmlNote"</li> diff --git a/sonar-ws/src/main/protobuf/ws-rules.proto b/sonar-ws/src/main/protobuf/ws-rules.proto index 96c6fb64797..961cd327428 100644 --- a/sonar-ws/src/main/protobuf/ws-rules.proto +++ b/sonar-ws/src/main/protobuf/ws-rules.proto @@ -96,22 +96,16 @@ message Rule { optional string unusedDebtCharName = 27; optional string unusedDebtSubCharName = 28; - // Deprecated since 5.5, replaced by defaultRemFnType - optional string defaultDebtRemFnType = 29; - // Deprecated since 5.5, replaced by defaultRemFnGapMultiplier - optional string defaultDebtRemFnCoeff = 30; - // Deprecated since 5.5, replaced by defaultRemFnBaseEffort - optional string defaultDebtRemFnOffset = 31; - // Deprecated since 5.5, replaced by gapDescription - optional string effortToFixDescription = 32; - // Deprecated since 5.5, replaced by remFnOverloaded - optional bool debtOverloaded = 33; - // Deprecated since 5.5, replaced by remFnType - optional string debtRemFnType = 34; - // Deprecated since 5.5, replaced by remFnGapMultiplier - optional string debtRemFnCoeff = 35; - // Deprecated since 5.5, replaced by remFnBaseEffort - optional string debtRemFnOffset = 36; + // Deprecated since 10.0, replaced by defaultRemFnType + optional string defaultDebtRemFnType = 29 [deprecated=true]; + reserved 30; + reserved 31; + reserved 32; + reserved 33; + // Deprecated since 10.0, replaced by remFnType + optional string debtRemFnType = 34 [deprecated=true]; + reserved 35; + reserved 36; optional sonarqube.ws.commons.RuleType type = 37; optional string defaultRemFnType = 38; optional string defaultRemFnGapMultiplier = 39; |