Skip to content

Commit 13c93b9

Browse files
committed
fix: merge conflicts
1 parent e116011 commit 13c93b9

File tree

1 file changed

+28
-49
lines changed

1 file changed

+28
-49
lines changed

api/handler/v1beta1/grant.go

Lines changed: 28 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -17,55 +17,34 @@ import (
1717

1818
func (s *GRPCServer) ListGrants(ctx context.Context, req *guardianv1beta1.ListGrantsRequest) (*guardianv1beta1.ListGrantsResponse, error) {
1919
filter := domain.ListGrantsFilter{
20-
<<<<<<< HEAD
21-
Q: req.GetQ(),
22-
Statuses: req.GetStatuses(),
23-
AccountIDs: req.GetAccountIds(),
24-
AccountTypes: req.GetAccountTypes(),
25-
GroupIDs: req.GetGroupIds(),
26-
GroupTypes: req.GetGroupTypes(),
27-
ResourceIDs: req.GetResourceIds(),
28-
Roles: req.GetRoles(),
29-
ProviderTypes: req.GetProviderTypes(),
30-
ProviderURNs: req.GetProviderUrns(),
31-
ResourceTypes: req.GetResourceTypes(),
32-
ResourceURNs: req.GetResourceUrns(),
33-
CreatedBy: req.GetCreatedBy(),
34-
Owner: req.GetOwner(),
35-
OrderBy: req.GetOrderBy(),
36-
Size: int(req.GetSize()),
37-
Offset: int(req.GetOffset()),
38-
IncludeApprovalDetails: req.WithApprovals,
39-
SummaryGroupBys: slicesUtil.GenericsStandardizeSliceNilAble(req.GetSummaryGroupBys()),
40-
SummaryUniques: slicesUtil.GenericsStandardizeSliceNilAble(req.GetSummaryUniques()),
41-
ExpiringInDays: int(req.GetExpiringInDays()),
42-
FieldMasks: slicesUtil.GenericsStandardizeSliceNilAble(req.GetFieldMasks()),
43-
WithPendingAppeal: req.GetWithPendingAppeal(),
44-
RoleStartsWith: req.GetRoleStartsWith(),
45-
RoleEndsWith: req.GetRoleEndsWith(),
46-
RoleContains: req.GetRoleContains(),
47-
StartTime: s.adapter.FromTimeProto(req.GetStartTime()),
48-
EndTime: s.adapter.FromTimeProto(req.GetEndTime()),
49-
=======
50-
Q: req.GetQ(),
51-
Statuses: req.GetStatuses(),
52-
AccountIDs: req.GetAccountIds(),
53-
AccountTypes: req.GetAccountTypes(),
54-
GroupIDs: req.GetGroupIds(),
55-
GroupTypes: req.GetGroupTypes(),
56-
ResourceIDs: req.GetResourceIds(),
57-
Roles: req.GetRoles(),
58-
ProviderTypes: req.GetProviderTypes(),
59-
ProviderURNs: req.GetProviderUrns(),
60-
ResourceTypes: req.GetResourceTypes(),
61-
ResourceURNs: req.GetResourceUrns(),
62-
CreatedBy: req.GetCreatedBy(),
63-
Owner: req.GetOwner(),
64-
OrderBy: req.GetOrderBy(),
65-
Size: int(req.GetSize()),
66-
Offset: int(req.GetOffset()),
67-
WithApprovals: req.WithApprovals,
68-
>>>>>>> 3aa27bcf (fix: lint issues)
20+
Q: req.GetQ(),
21+
Statuses: req.GetStatuses(),
22+
AccountIDs: req.GetAccountIds(),
23+
AccountTypes: req.GetAccountTypes(),
24+
GroupIDs: req.GetGroupIds(),
25+
GroupTypes: req.GetGroupTypes(),
26+
ResourceIDs: req.GetResourceIds(),
27+
Roles: req.GetRoles(),
28+
ProviderTypes: req.GetProviderTypes(),
29+
ProviderURNs: req.GetProviderUrns(),
30+
ResourceTypes: req.GetResourceTypes(),
31+
ResourceURNs: req.GetResourceUrns(),
32+
CreatedBy: req.GetCreatedBy(),
33+
Owner: req.GetOwner(),
34+
OrderBy: req.GetOrderBy(),
35+
Size: int(req.GetSize()),
36+
Offset: int(req.GetOffset()),
37+
WithApprovals: req.WithApprovals,
38+
SummaryGroupBys: slicesUtil.GenericsStandardizeSliceNilAble(req.GetSummaryGroupBys()),
39+
SummaryUniques: slicesUtil.GenericsStandardizeSliceNilAble(req.GetSummaryUniques()),
40+
ExpiringInDays: int(req.GetExpiringInDays()),
41+
FieldMasks: slicesUtil.GenericsStandardizeSliceNilAble(req.GetFieldMasks()),
42+
WithPendingAppeal: req.GetWithPendingAppeal(),
43+
RoleStartsWith: req.GetRoleStartsWith(),
44+
RoleEndsWith: req.GetRoleEndsWith(),
45+
RoleContains: req.GetRoleContains(),
46+
StartTime: s.adapter.FromTimeProto(req.GetStartTime()),
47+
EndTime: s.adapter.FromTimeProto(req.GetEndTime()),
6948
}
7049

7150
grants, total, summary, err := s.listGrants(ctx, filter)

0 commit comments

Comments
 (0)