From e68701d1fa03f425013eacc8b6023be359c9ad24 Mon Sep 17 00:00:00 2001 From: Sarath Nair <91882341+sarath-nair-sonarsource@users.noreply.github.com> Date: Thu, 15 Aug 2024 11:08:16 +0200 Subject: [PATCH] SONAR-22785 Fix description of API docs in users and groups search (#11536) --- .../server/v2/api/group/request/GroupsSearchRestRequest.java | 2 +- .../server/v2/api/user/request/UsersSearchRestRequest.java | 2 +- .../src/main/java/org/sonar/server/user/ws/SearchAction.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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") -- 2.39.5