Notifications parameters and delete members
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m54s

This commit is contained in:
Arnaud Delcasse
2026-02-28 11:47:17 +01:00
parent 68912e17a0
commit 15d606447b
5 changed files with 264 additions and 98 deletions

View File

@@ -104,6 +104,21 @@ func (s GroupsManagementServerImpl) Unsubscribe(ctx context.Context, req *Unsubs
}, nil
}
func (s GroupsManagementServerImpl) UpdateGroup(ctx context.Context, req *UpdateGroupRequest) (*UpdateGroupResponse, error) {
g := req.Group.ToStorageType()
group, err := s.handler.UpdateGroup(g)
if err != nil {
fmt.Println(err)
return nil, status.Errorf(codes.Internal, "group update failed : %v", err)
}
response, err := GroupFromStorageType(group)
if err != nil {
fmt.Println(err)
return nil, status.Errorf(codes.Internal, "issue while retrieving group : %v", err)
}
return &UpdateGroupResponse{Group: response}, nil
}
func (s GroupsManagementServerImpl) DeleteGroup(ctx context.Context, req *DeleteGroupRequest) (*DeleteGroupResponse, error) {
err := s.handler.DeleteGroup(req.Id)
if err != nil {