From: Duarte Meneses Date: Thu, 20 Jun 2019 16:25:57 +0000 (-0500) Subject: SONAR-10996 Deprecate the facetMode parameter of api/issues/search X-Git-Tag: 8.0~512 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4192ce3baa0fb53db59e17fbe7ba532b33e75f87;p=sonarqube.git SONAR-10996 Deprecate the facetMode parameter of api/issues/search --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchAction.java b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchAction.java index 93a7dc2c452..e160d7fe300 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchAction.java @@ -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); diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java index 4fce187d28d..b582d00ac74 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java @@ -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";