coder/coderd/coderdtest
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
..
oidctest chore: add faking 429 responses from fake idp (#12365) 2024-02-29 09:45:53 -06:00
authorize.go chore: correct 500 -> 404 on workspace agent mw (#11129) 2023-12-12 15:14:32 -06:00
authorize_test.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
coderdtest.go fix(cli): port-forward: update workspace last_used_at (#12659) 2024-03-20 16:44:12 +00:00
coderdtest_test.go chore: rename `AwaitTemplateVersionJobCompleted` and `AwaitWorkspaceBuildJobCompleted` (#10003) 2023-10-03 11:02:56 -06:00
swagger_test.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
swaggerparser.go feat: add debug endpoint for single tailnet (#10485) 2023-11-13 17:14:12 -06:00