Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
606 changes: 322 additions & 284 deletions app/controlplane/api/controlplane/v1/response_messages.pb.go

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions app/controlplane/api/controlplane/v1/response_messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ message WorkflowContractItem {
string name = 2;
string description = 6;
google.protobuf.Timestamp created_at = 3;
google.protobuf.Timestamp updated_at = 10;
int32 latest_revision = 4;
google.protobuf.Timestamp latest_revision_created_at = 8;
// Workflows associated with this contract
Expand Down Expand Up @@ -234,6 +235,7 @@ message User {
string id = 1;
string email = 2;
google.protobuf.Timestamp created_at = 3;
google.protobuf.Timestamp updated_at = 6;
string first_name = 4;
string last_name = 5;
}
Expand Down Expand Up @@ -261,6 +263,7 @@ message OrgItem {
string id = 1;
string name = 2;
google.protobuf.Timestamp created_at = 3;
google.protobuf.Timestamp updated_at = 6;
PolicyViolationBlockingStrategy default_policy_violation_strategy = 4;
repeated string policy_allowed_hostnames = 5;

Expand Down
2 changes: 1 addition & 1 deletion app/controlplane/api/controlplane/v1/user.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/controlplane/api/controlplane/v1/user.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2024 The Chainloop Authors.
// Copyright 2024-2025 The Chainloop Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/controlplane/api/controlplane/v1/user_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion app/controlplane/internal/service/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,17 @@ func (s *ContextService) Current(ctx context.Context, _ *pb.ContextServiceCurren

func bizOrgToPb(m *biz.Organization) *pb.OrgItem {
return &pb.OrgItem{Id: m.ID, Name: m.Name, CreatedAt: timestamppb.New(*m.CreatedAt),
UpdatedAt: timestamppb.New(*m.UpdatedAt),
DefaultPolicyViolationStrategy: bizPolicyViolationBlockingStrategyToPb(m.BlockOnPolicyViolation),
PolicyAllowedHostnames: m.PoliciesAllowedHostnames,
}
}

func bizUserToPb(u *biz.User) *pb.User {
return &pb.User{Id: u.ID, Email: u.Email, CreatedAt: timestamppb.New(*u.CreatedAt), FirstName: u.FirstName, LastName: u.LastName}
return &pb.User{Id: u.ID, Email: u.Email,
CreatedAt: timestamppb.New(*u.CreatedAt), FirstName: u.FirstName, LastName: u.LastName,
UpdatedAt: timestamppb.New(*u.UpdatedAt),
}
}

func bizPolicyViolationBlockingStrategyToPb(blockOnPolicyViolation bool) pb.OrgItem_PolicyViolationBlockingStrategy {
Expand Down
1 change: 1 addition & 0 deletions app/controlplane/internal/service/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func bizMembershipToPb(m *biz.Membership) *pb.OrgMembershipItem {
item := &pb.OrgMembershipItem{
Id: m.ID.String(), Current: m.Current,
CreatedAt: timestamppb.New(*m.CreatedAt),
UpdatedAt: timestamppb.New(*m.UpdatedAt),
Org: bizOrgToPb(m.Org),
Role: bizRoleToPb(m.Role),
}
Expand Down
Loading
Loading