From 7f5b8b819b9511948ec11da5bf665645bef08613 Mon Sep 17 00:00:00 2001 From: Harold Wanyama Date: Thu, 4 Apr 2024 17:00:24 +0300 Subject: [PATCH] Bug/Signature Repo config - Updated signature repo arguments Signed-off-by: Harold Wanyama --- .../cmd/gitlab_repository_check/handler/handler.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cla-backend-go/cmd/gitlab_repository_check/handler/handler.go b/cla-backend-go/cmd/gitlab_repository_check/handler/handler.go index e3334581e..f4b261403 100644 --- a/cla-backend-go/cmd/gitlab_repository_check/handler/handler.go +++ b/cla-backend-go/cmd/gitlab_repository_check/handler/handler.go @@ -9,6 +9,7 @@ import ( "strconv" "github.com/communitybridge/easycla/cla-backend-go/signatures" + "github.com/communitybridge/easycla/cla-backend-go/v2/approvals" "github.com/communitybridge/easycla/cla-backend-go/v2/common" "github.com/communitybridge/easycla/cla-backend-go/project/repository" @@ -143,8 +144,11 @@ func Handler(ctx context.Context) error { RefreshToken: configFile.LFGroup.RefreshToken, }) + approvalsTableName := "cla-" + stage + "-approvals" + usersService := users.NewService(usersRepo, eventsService) - signaturesRepo := signatures.NewRepository(awsSession, stage, v1CompanyRepo, usersRepo, eventsService, gitV1Repository, githubOrganizationsRepo, gerritService) + approvalsRepo := approvals.NewRepository(stage, awsSession, approvalsTableName) + signaturesRepo := signatures.NewRepository(awsSession, stage, v1CompanyRepo, usersRepo, eventsService, gitV1Repository, githubOrganizationsRepo, gerritService, approvalsRepo) v2RepositoriesService := v2Repositories.NewService(gitV1Repository, gitV2Repository, v1ProjectClaGroupRepo, githubOrganizationsRepo, gitlabOrganizationRepo, eventsService) // gitlabOrganizationsService := gitlab_organizations.NewService(gitlabOrganizationRepo, v2RepositoriesService, v1ProjectClaGroupRepo) gitlabOrganizationService := gitlab_organizations.NewService(gitlabOrganizationRepo, v2RepositoriesService, v1ProjectClaGroupRepo, storeRepo, usersService, signaturesRepo, v1CompanyRepo)