From: Sarath Nair <91882341+sarath-nair-sonarsource@users.noreply.github.com> Date: Thu, 15 Aug 2024 09:08:16 +0000 (+0200) Subject: SONAR-22785 Fix description of API docs in users and groups search (#11536) X-Git-Tag: 10.7.0.96327~252 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e68701d1fa03f425013eacc8b6023be359c9ad24;p=sonarqube.git SONAR-22785 Fix description of API docs in users and groups search (#11536) --- diff --git a/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/api/group/request/GroupsSearchRestRequest.java b/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/api/group/request/GroupsSearchRestRequest.java index 2f263615e34..8105557f860 100644 --- a/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/api/group/request/GroupsSearchRestRequest.java +++ b/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/api/group/request/GroupsSearchRestRequest.java @@ -29,7 +29,7 @@ public record GroupsSearchRestRequest( @Nullable @Schema(description = "Filter on name.\n" - + "This parameter can either perform an exact match, or a partial match (contains), it is case insensitive.") + + "This parameter performs a partial match (contains), it is case insensitive.") String q ) { diff --git a/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/api/user/request/UsersSearchRestRequest.java b/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/api/user/request/UsersSearchRestRequest.java index d30b02de891..2d6e0cb2a38 100644 --- a/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/api/user/request/UsersSearchRestRequest.java +++ b/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/api/user/request/UsersSearchRestRequest.java @@ -34,7 +34,7 @@ public record UsersSearchRestRequest( @Nullable @Schema(description = "Filter on login, name and email.\n" - + "This parameter can either perform an exact match, or a partial match (contains), it is case insensitive.") + + "This parameter performs a partial match (contains), it is case insensitive.") String q, @Nullable diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/SearchAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/SearchAction.java index 637a3d791df..09c00ccb4c1 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/SearchAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/SearchAction.java @@ -106,7 +106,7 @@ public class SearchAction implements UsersWsAction { action.createParam(TEXT_QUERY) .setMinimumLength(2) .setDescription("Filter on login, name and email.
" + - "This parameter can either perform an exact match, or a partial match (contains), it is case insensitive."); + "This parameter performs a partial match (contains), it is case insensitive."); action.createParam(DEACTIVATED_PARAM) .setSince("9.7") .setDescription("Return deactivated users instead of active users")