commit | 4bee62cbbc21979b841843dd5faaf79470a35966 | [log] [tgz] |
---|---|---|
author | Ben Rohlfs <brohlfs@google.com> | Wed Nov 08 08:45:59 2023 +0100 |
committer | Ben Rohlfs <brohlfs@google.com> | Wed Nov 08 08:47:37 2023 +0100 |
tree | c26167545bbfff3b84633c37b1fb6e0b352d4e5a | |
parent | 084a37253dc94ac52cfaa1c9d516fcb8b0318b31 [diff] |
Adapt to change in `setUserProvidedLimit()` method API See change 391157. Release-Notes: skip Change-Id: Ibfff17878cb8f6784c362e38c0e295874a37ffd8
diff --git a/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java b/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java index da654a5..c3e2e3c 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java +++ b/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java
@@ -149,7 +149,7 @@ @Override public Collection<GroupReference> suggest(String name, @Nullable ProjectState project) { try { - return queryProvider.get().setUserProvidedLimit(MAX) + return queryProvider.get().setUserProvidedLimit(MAX, /* applyDefaultLimit */ true) .query(AccountPredicates.andActive(queryBuilder.defaultQuery(name))).entities().stream() .map(SingleUserGroup::accountToGroup) .collect(toList());