From 199ad32e0451e5c6e99fe56aa3e636008564acc6 Mon Sep 17 00:00:00 2001 From: Ilja Neumann Date: Wed, 14 Oct 2020 15:41:47 +0200 Subject: [PATCH] Temporarily disable groups query --- accounts/pkg/service/v0/groups.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/accounts/pkg/service/v0/groups.go b/accounts/pkg/service/v0/groups.go index 1c1132e98..e5ba000ba 100644 --- a/accounts/pkg/service/v0/groups.go +++ b/accounts/pkg/service/v0/groups.go @@ -2,14 +2,12 @@ package service import ( "context" - "github.com/owncloud/ocis/accounts/pkg/storage" - "path/filepath" - "regexp" - "github.com/gofrs/uuid" "github.com/golang/protobuf/ptypes/empty" merrors "github.com/micro/go-micro/v2/errors" "github.com/owncloud/ocis/accounts/pkg/proto/v0" + "github.com/owncloud/ocis/accounts/pkg/storage" + "path/filepath" ) func (s Service) expandMembers(g *proto.Group) { @@ -60,11 +58,14 @@ func (s Service) ListGroups(c context.Context, in *proto.ListGroupsRequest, out searchResults, _ = s.index.FindByPartial(&proto.Group{}, "DisplayName", "*") } - var startsWithIDQuery = regexp.MustCompile(`^startswith\(id,'(.*)'\)$`) - match := startsWithIDQuery.FindStringSubmatch(in.Query) - if len(match) == 2 { - searchResults = []string{match[1]} - } + /* + var startsWithIDQuery = regexp.MustCompile(`^startswith\(id,'(.*)'\)$`) + match := startsWithIDQuery.FindStringSubmatch(in.Query) + if len(match) == 2 { + searchResults = []string{match[1]} + } + + */ for _, hit := range searchResults { g := &proto.Group{}