Skip to content

Commit

Permalink
apache#4873 support list group format
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuQhahah committed Sep 26, 2024
1 parent 779671e commit 4e14f9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public List<GroupEntity> listGroupsByNamespace(Namespace namespace){
List<GroupPO> groupPOS = SessionUtils.getWithoutCommit(
GroupMetaMapper.class, mapper->mapper.selectGroupsMetaByMetalakeId(metalakeId)
);
return groupPOS.stream().map(po->POConverters.fromGroupPO(po,AuthorizationUtils.ofUserNamespace(metalakeName))).collect(
return groupPOS.stream().map(po->POConverters.fromGroupPO(po,Collections.emptyList(),AuthorizationUtils.ofUserNamespace(metalakeName))).collect(
Collectors.toList());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
import org.apache.commons.lang3.reflect.FieldUtils;
import org.apache.gravitino.Config;
import org.apache.gravitino.GravitinoEnv;
import org.apache.gravitino.Namespace;
import org.apache.gravitino.authorization.AccessControlManager;
import org.apache.gravitino.authorization.AuthorizationUtils;
import org.apache.gravitino.authorization.Group;
import org.apache.gravitino.dto.authorization.GroupDTO;
import org.apache.gravitino.dto.requests.GroupAddRequest;
Expand Down

0 comments on commit 4e14f9d

Please sign in to comment.