From f388723bf50a9f17243e1bee05c05fce47ef62f9 Mon Sep 17 00:00:00 2001 From: Kush Sharma Date: Sun, 19 Nov 2023 13:10:18 +0530 Subject: [PATCH] fix: list appeal filter for created by - created by was in list appeal filter was getting ignored and should be fixed now Signed-off-by: Kush Sharma --- api/handler/v1beta1/appeal.go | 1 + cli/client.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/handler/v1beta1/appeal.go b/api/handler/v1beta1/appeal.go index 7439e31b6..463ceafb8 100644 --- a/api/handler/v1beta1/appeal.go +++ b/api/handler/v1beta1/appeal.go @@ -76,6 +76,7 @@ func (s *GRPCServer) ListAppeals(ctx context.Context, req *guardianv1beta1.ListA Size: int(req.GetSize()), Offset: int(req.GetOffset()), OrderBy: req.GetOrderBy(), + CreatedBy: req.GetCreatedBy(), } appeals, total, err := s.listAppeals(ctx, filters) if err != nil { diff --git a/cli/client.go b/cli/client.go index 28350bb0e..844e39b29 100644 --- a/cli/client.go +++ b/cli/client.go @@ -4,9 +4,10 @@ import ( "context" "errors" "fmt" - "google.golang.org/grpc/metadata" "time" + "google.golang.org/grpc/metadata" + guardianv1beta1 "github.com/raystack/guardian/api/proto/raystack/guardian/v1beta1" "github.com/spf13/cobra" "google.golang.org/grpc"