Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit44924cd

Browse files
authored
chore: add updated_at to codersdk users (#13928)
* chore: add updated_at to codersdk users
1 parent3e1fae7 commit44924cd

File tree

14 files changed

+71
-2
lines changed

14 files changed

+71
-2
lines changed

‎cli/testdata/coder_users_list_--help.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USAGE:
88
OPTIONS:
99
-c, --column string-array (default: username,email,created_at,status)
1010
Columns to display in table output. Available columns: id, username,
11-
email, created at, status.
11+
email, created at,updated at,status.
1212

1313
-o, --output string (default: table)
1414
Output format. Available formats: table, json.

‎cli/testdata/coder_users_list_--output_json.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"name": "Test User",
77
"email": "testuser@coder.com",
88
"created_at": "[timestamp]",
9+
"updated_at": "[timestamp]",
910
"last_seen_at": "[timestamp]",
1011
"status": "active",
1112
"login_type": "password",
@@ -27,6 +28,7 @@
2728
"name": "",
2829
"email": "testuser2@coder.com",
2930
"created_at": "[timestamp]",
31+
"updated_at": "[timestamp]",
3032
"last_seen_at": "[timestamp]",
3133
"status": "dormant",
3234
"login_type": "password",

‎coderd/apidoc/docs.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/db2sdk/db2sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ func ReducedUser(user database.User) codersdk.ReducedUser {
151151
Email:user.Email,
152152
Name:user.Name,
153153
CreatedAt:user.CreatedAt,
154+
UpdatedAt:user.UpdatedAt,
154155
LastSeenAt:user.LastSeenAt,
155156
Status:codersdk.UserStatus(user.Status),
156157
LoginType:codersdk.LoginType(user.LoginType),

‎codersdk/users.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ type ReducedUser struct {
5151
Namestring`json:"name"`
5252
Emailstring`json:"email" validate:"required" table:"email" format:"email"`
5353
CreatedAt time.Time`json:"created_at" validate:"required" table:"created at" format:"date-time"`
54+
UpdatedAt time.Time`json:"updated_at" table:"updated at" format:"date-time"`
5455
LastSeenAt time.Time`json:"last_seen_at" format:"date-time"`
5556

5657
StatusUserStatus`json:"status" table:"status" enums:"active,suspended"`

‎docs/api/audit.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎docs/api/enterprise.md

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎docs/api/schemas.md

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎docs/api/users.md

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎docs/cli/users_list.md

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp