aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-es
diff options
context:
space:
mode:
authorEric Giffon <eric.giffon@sonarsource.com>2023-07-18 15:16:44 +0200
committersonartech <sonartech@sonarsource.com>2023-07-19 20:03:05 +0000
commitefd1e3f1d2887efa96e6c284d6885f9471788cf4 (patch)
treebf6c2f1f9b9638537484dbc981b656a06b625caf /server/sonar-webserver-es
parentc470a582ef582096a0fe8b0f10fa91650519fbb5 (diff)
downloadsonarqube-efd1e3f1d2887efa96e6c284d6885f9471788cf4.tar.gz
sonarqube-efd1e3f1d2887efa96e6c284d6885f9471788cf4.zip
SONAR-19934 Rename ws param componentKeys to components
Diffstat (limited to 'server/sonar-webserver-es')
-rw-r--r--server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueQueryFactory.java4
-rw-r--r--server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueQueryFactory.java b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueQueryFactory.java
index 76cc62d76c7..fb2ce21a14a 100644
--- a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueQueryFactory.java
+++ b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueQueryFactory.java
@@ -73,7 +73,7 @@ import static org.sonar.api.utils.DateUtils.parseEndingDateOrDateTime;
import static org.sonar.api.utils.DateUtils.parseStartingDateOrDateTime;
import static org.sonar.api.web.UserRole.USER;
import static org.sonar.db.newcodeperiod.NewCodePeriodType.REFERENCE_BRANCH;
-import static org.sonarqube.ws.client.issue.IssuesWsParameters.PARAM_COMPONENT_KEYS;
+import static org.sonarqube.ws.client.issue.IssuesWsParameters.PARAM_COMPONENTS;
import static org.sonarqube.ws.client.issue.IssuesWsParameters.PARAM_COMPONENT_UUIDS;
import static org.sonarqube.ws.client.issue.IssuesWsParameters.PARAM_CREATED_AFTER;
import static org.sonarqube.ws.client.issue.IssuesWsParameters.PARAM_CREATED_IN_LAST;
@@ -251,7 +251,7 @@ public class IssueQueryFactory {
boolean effectiveOnComponentOnly = false;
checkArgument(atMostOneNonNullElement(componentKeys, componentUuids),
- "At most one of the following parameters can be provided: %s and %s", PARAM_COMPONENT_KEYS, PARAM_COMPONENT_UUIDS);
+ "At most one of the following parameters can be provided: %s and %s", PARAM_COMPONENTS, PARAM_COMPONENT_UUIDS);
if (componentKeys != null) {
allComponents.addAll(getComponentsFromKeys(session, componentKeys, branch, pullRequest));
diff --git a/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java b/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java
index a7d8ddbeb82..e8a560d08af 100644
--- a/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java
+++ b/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java
@@ -284,7 +284,7 @@ public class IssueQueryFactoryTest {
assertThatThrownBy(() -> underTest.create(request))
.isInstanceOf(IllegalArgumentException.class)
- .hasMessageContaining("At most one of the following parameters can be provided: componentKeys and componentUuids");
+ .hasMessageContaining("At most one of the following parameters can be provided: components and componentUuids");
}
@Test