coder/coderd/database
Cian Johnston 92aa1eba97
fix(cli): port-forward: update workspace last_used_at (#12659)
This PR updates the coder port-forward command to periodically inform coderd that the workspace is being used:

- Adds workspaceusage.Tracker which periodically batch-updates workspace LastUsedAt
- Adds coderd endpoint to signal workspace usage
- Updates coder port-forward to periodically hit this endpoint
- Modifies BatchUpdateWorkspacesLastUsedAt to avoid overwriting with stale data

Co-authored-by: Danny Kopping <danny@coder.com>
2024-03-20 16:44:12 +00:00
..
db2sdk chore: remove organization requirement from convertGroup() (#12195) 2024-02-21 15:58:11 -06:00
dbauthz chore: enforce that provisioners can only acquire jobs in their own organization (#12600) 2024-03-18 12:48:13 -05:00
dbfake chore: enforce that provisioners can only acquire jobs in their own organization (#12600) 2024-03-18 12:48:13 -05:00
dbgen chore: enforce that provisioners can only acquire jobs in their own organization (#12600) 2024-03-18 12:48:13 -05:00
dbmem fix(cli): port-forward: update workspace last_used_at (#12659) 2024-03-20 16:44:12 +00:00
dbmetrics fix: ensure agent token is from latest build in middleware (#12443) 2024-03-14 12:27:32 -04:00
dbmock fix: ensure agent token is from latest build in middleware (#12443) 2024-03-14 12:27:32 -04:00
dbpurge test(coderd): skip flaky dau test (#12517) 2024-03-11 12:54:38 +00:00
dbtestutil feat: add logging to pgPubsub (#11953) 2024-01-31 15:49:16 +04:00
dbtime refactor(coderd/database): split `Time` and `Now` into `dbtime` package (#9482) 2023-09-01 16:50:12 +00:00
gen/dump fix: implicit schema in dump (#12646) 2024-03-18 16:25:08 +01:00
gentest chore: unit test to enforce authorized queries match args (#11211) 2023-12-15 20:31:07 +00:00
migrations chore: remove max_ttl from templates (#12644) 2024-03-20 10:37:57 -05:00
postgres chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
provisionerjobs feat: integrate Acquirer for provisioner jobs (#9717) 2023-09-19 10:25:57 +04:00
pubsub fix: stop holding Pubsub mutex while calling pq.Listener (#12518) 2024-03-12 09:44:12 +04:00
queries fix(cli): port-forward: update workspace last_used_at (#12659) 2024-03-20 16:44:12 +00:00
.gitignore feat: add audit logging database schema (#1225) 2022-05-02 19:30:46 +00:00
db.go feat: add provisioner job hang detector (#7927) 2023-06-25 13:17:00 +00:00
db_test.go refactor(coderd/database): split `Time` and `Now` into `dbtime` package (#9482) 2023-09-01 16:50:12 +00:00
dump.sql chore: remove max_ttl from templates (#12644) 2024-03-20 10:37:57 -05:00
errors.go feat(coderd/database): generate foreign key constraints and add database.IsForeignKeyViolation (#9657) 2023-09-13 13:28:46 +01:00
foreign_key_constraint.go chore: add organization_id column to provisioner daemons (#12356) 2024-03-06 12:04:50 -06:00
generate.sh chore: avoid dbmock test errors in dbgen (#10923) 2023-11-28 17:04:25 +00:00
lock.go fix: avoid race between replicas on start (#12344) 2024-02-28 16:14:11 +00:00
modelmethods.go feat: add oauth2 token exchange (#12196) 2024-02-20 14:58:43 -09:00
modelqueries.go chore: remove max_ttl from templates (#12644) 2024-03-20 10:37:57 -05:00
modelqueries_internal_test.go chore: Rewrite rbac rego -> SQL clause (#5138) 2022-11-28 12:12:34 -06:00
models.go chore: remove max_ttl from templates (#12644) 2024-03-20 10:37:57 -05:00
no_slim.go chore(coderd/database): introduce compile-time guard against import in slim build (#9521) 2023-09-04 19:01:11 +00:00
no_slim_slim.go chore(coderd/database): introduce compile-time guard against import in slim build (#9521) 2023-09-04 19:01:11 +00:00
querier.go fix: ensure agent token is from latest build in middleware (#12443) 2024-03-14 12:27:32 -04:00
querier_test.go chore: enforce that provisioners can only acquire jobs in their own organization (#12600) 2024-03-18 12:48:13 -05:00
queries.sql.go fix(cli): port-forward: update workspace last_used_at (#12659) 2024-03-20 16:44:12 +00:00
sqlc.yaml chore: remove max_ttl from templates (#12644) 2024-03-20 10:37:57 -05:00
tx.go feat: expose Everyone group through UI (#9117) 2023-08-17 13:25:16 -05:00
tx_test.go chore: mockgen archived, moved to new location (#11415) 2024-01-04 18:35:56 -06:00
types.go feat: add support for optional external auth providers (#12021) 2024-02-21 11:18:38 -07:00
unique_constraint.go feat: add oauth2 token exchange (#12196) 2024-02-20 14:58:43 -09:00