Skip to content

Commit 7b71958

Browse files
committed
fix(group): Created at when listing project for groups
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
1 parent fba2fa2 commit 7b71958

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

app/controlplane/api/controlplane/v1/group.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/controlplane/v1/group.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,6 @@ message ProjectInfo {
267267
ProjectMemberRole role = 4;
268268
// The latest version ID of the project, if available
269269
optional string latest_version_id = 5;
270-
// Timestamp when the project was created
270+
// Timestamp when the membership was created
271271
google.protobuf.Timestamp created_at = 6;
272272
}

app/controlplane/api/gen/frontend/controlplane/v1/group.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.ProjectInfo.jsonschema.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.ProjectInfo.schema.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/pkg/biz/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ type GroupProjectInfo struct {
108108
Role authz.Role
109109
// LatestVersionID is the ID of the latest version of the project, if available
110110
LatestVersionID *uuid.UUID
111-
// CreatedAt is the timestamp when the project was created
111+
// CreatedAt is the timestamp when the membership was created
112112
CreatedAt *time.Time
113113
}
114114

app/controlplane/pkg/data/group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ func (g GroupRepo) ListProjectsByGroup(ctx context.Context, orgID uuid.UUID, gro
666666
Name: pr.Name,
667667
Description: pr.Description,
668668
Role: m.Role,
669-
CreatedAt: toTimePtr(pr.CreatedAt),
669+
CreatedAt: toTimePtr(m.CreatedAt),
670670
}
671671

672672
// If the project has versions, include the latest version ID

0 commit comments

Comments
 (0)