From 4192ce3baa0fb53db59e17fbe7ba532b33e75f87 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 20 Jun 2019 11:25:57 -0500 Subject: [PATCH] SONAR-10996 Deprecate the facetMode parameter of api/issues/search --- .../src/main/java/org/sonar/server/issue/ws/SearchAction.java | 1 + .../org/sonarqube/ws/client/issue/IssuesWsParameters.java | 4 ++++ 2 files changed, 5 insertions(+) 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"; -- 2.39.5