Remove access review framework controls
Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
committed by
Bryan Frimin
parent
9822b39ece
commit
79285d97df
@@ -36,14 +36,13 @@ func (s *Service) CreateCampaign(
|
||||
|
||||
now := time.Now()
|
||||
campaign := &coredata.AccessReviewCampaign{
|
||||
ID: gid.New(scope.GetTenantID(), coredata.AccessReviewCampaignEntityType),
|
||||
OrganizationID: req.OrganizationID,
|
||||
Name: req.Name,
|
||||
Description: req.Description,
|
||||
Status: coredata.AccessReviewCampaignStatusDraft,
|
||||
FrameworkControls: req.FrameworkControls,
|
||||
CreatedAt: now,
|
||||
UpdatedAt: now,
|
||||
ID: gid.New(scope.GetTenantID(), coredata.AccessReviewCampaignEntityType),
|
||||
OrganizationID: req.OrganizationID,
|
||||
Name: req.Name,
|
||||
Description: req.Description,
|
||||
Status: coredata.AccessReviewCampaignStatusDraft,
|
||||
CreatedAt: now,
|
||||
UpdatedAt: now,
|
||||
}
|
||||
|
||||
err := s.pg.WithTx(
|
||||
@@ -160,10 +159,6 @@ func (s *Service) UpdateCampaign(
|
||||
campaign.Description = **req.Description
|
||||
}
|
||||
|
||||
if req.FrameworkControls != nil {
|
||||
campaign.FrameworkControls = *req.FrameworkControls
|
||||
}
|
||||
|
||||
campaign.UpdatedAt = time.Now()
|
||||
|
||||
if err := campaign.Update(ctx, conn, scope); err != nil {
|
||||
|
||||
@@ -27,15 +27,13 @@ type (
|
||||
OrganizationID gid.GID
|
||||
Name string
|
||||
Description string
|
||||
FrameworkControls []string
|
||||
AccessReviewSourceIDs []gid.GID
|
||||
}
|
||||
|
||||
UpdateAccessReviewCampaignRequest struct {
|
||||
CampaignID gid.GID
|
||||
Name **string
|
||||
Description **string
|
||||
FrameworkControls *[]string
|
||||
CampaignID gid.GID
|
||||
Name **string
|
||||
Description **string
|
||||
}
|
||||
|
||||
AddCampaignSourceRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user