]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-10996 Deprecate the facetMode parameter of api/issues/search
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Thu, 20 Jun 2019 16:25:57 +0000 (11:25 -0500)
committersonartech <sonartech@sonarsource.com>
Fri, 28 Jun 2019 06:45:45 +0000 (08:45 +0200)
server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchAction.java
sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java

index 93a7dc2c45229fab1eec0a9d7845e3e74208ec3d..e160d7fe300c1054774fdea304f9243c716054b4 100644 (file)
@@ -221,6 +221,7 @@ public class SearchAction implements IssuesWsAction, Startable {
       .setPossibleValues(SUPPORTED_FACETS);
     action.createParam(FACET_MODE)
       .setDefaultValue(FACET_MODE_COUNT)
+      .setDeprecatedSince("7.9")
       .setDescription("Choose the returned value for facet items, either count of issues or sum of remediation effort.")
       .setPossibleValues(FACET_MODE_COUNT, FACET_MODE_EFFORT);
     action.addSortParams(IssueQuery.SORTS, null, true);
index 4fce187d28ddbb8a01d6c702f1d31620f6e08ffe..b582d00ac7430773b79cec4a64d1be0739b064af 100644 (file)
@@ -99,6 +99,10 @@ public class IssuesWsParameters {
   public static final String PARAM_ASC = "asc";
   public static final String PARAM_ADDITIONAL_FIELDS = "additionalFields";
 
+  /**
+   * @deprecated since 7.9
+   */
+  @Deprecated
   public static final String FACET_MODE = "facetMode";
   public static final String FACET_MODE_COUNT = "count";
   public static final String FACET_MODE_EFFORT = "effort";