Skip to content

Commit 44924cd

Browse files
authored
chore: add updated_at to codersdk users (#13928)
* chore: add updated_at to codersdk users
1 parent 3e1fae7 commit 44924cd

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 about customizing 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 about customizing 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
Name string `json:"name"`
5252
Email string `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
Status UserStatus `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 about customizing 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 about customizing 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 about customizing 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 about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy