Unverified Commit ff037bd3 authored by Jen's avatar Jen Committed by GitHub
Browse files

Add additional scopes to Group Search (#1022)

parent a6fb4a7d
......@@ -758,7 +758,7 @@ public interface Constants {
*/
public enum GroupSearchScope {
PROJECTS, ISSUES, MERGE_REQUESTS, MILESTONES, USERS;
PROJECTS, ISSUES, MERGE_REQUESTS, MILESTONES, WIKI_BLOBS, COMMITS, BLOBS, NOTES, USERS;
private static JacksonJsonEnumHelper<GroupSearchScope> enumHelper = new JacksonJsonEnumHelper<>(GroupSearchScope.class);
......
......@@ -184,6 +184,19 @@ public class SearchApi extends AbstractApi {
return (new Pager<Milestone>(this, Milestone.class, itemsPerPage, formData.asMap(),
"groups", getGroupIdOrPath(groupIdOrPath), "search"));
case BLOBS:
case WIKI_BLOBS:
return (new Pager<SearchBlob>(this, SearchBlob.class, itemsPerPage, formData.asMap(),
"groups", getGroupIdOrPath(groupIdOrPath), "search"));
case COMMITS:
return (new Pager<Commit>(this, Commit.class, itemsPerPage, formData.asMap(),
"groups", getGroupIdOrPath(groupIdOrPath), "search"));
case NOTES:
return (new Pager<Note>(this, Note.class, itemsPerPage, formData.asMap(),
"groups", getGroupIdOrPath(groupIdOrPath), "search"));
case USERS:
return (new Pager<User>(this, User.class, itemsPerPage, formData.asMap(),
"groups", getGroupIdOrPath(groupIdOrPath), "search"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment