* feat: Add connection_timeout and troubleshooting_url to agent
This commit adds the connection timeout and troubleshooting url fields
to coder agents.
If an initial connection cannot be established within connection timeout
seconds, then the agent status will be marked as `"timeout"`.
The troubleshooting URL will be present, if configured in the Terraform
template, it can be presented to the user when the agent state is either
`"timeout"` or `"disconnected"`.
Fixes#4678
* Use empty page message on workspaces page
* Add prop for story
* AuditPage
* UsersPage
* Lint and format
* Fix tests
* Remove log
* Try to fix story
* Fix the right story
* Start on backend
* Hook up frontend
* Add to frontend test
* Add go test, wip
* Fix some test bugs
* Fix test
* Format
* Add to authorize.go
* copy user array into local variable
* Authorize route
* Log count error
* Authorize better
* Tweaks to authorization
* More authorization tweaks
* Make gen
* Fix test
Co-authored-by: Garrett <garrett@coder.com>
* feat: Add bufferring to provisioner job logs
This should improve overall build performance, and especially under load.
It removes the old `id` column on the `provisioner_job_logs` table
and replaces it with an auto-incrementing big integer to preserve order.
Funny enough, we never had to care about order before because inserts
would at minimum be 1ms different. Now they aren't, so the order needs
to be preserved.
* Fix log bufferring
* Fix frontend log streaming
* Fix JS test
* refactor: extend Overrides for MuiSkeleton
Looking at the types provided with `@material-ui/core`, it is indeed
missing `MuiSkeleton`. I'm not sure why. I found this issues upstream: https://github.com/mui/material-ui/issues/24959
I also tried upgrading the package to the latest - 4.12.4 I believe but
that didn't fix it either.
I resorted to extending the `Overrides` type based on what I saw in the
most recent version of the declaration file. This is a temporary fix but
opts back in to type safety instead of resorting to `@ts-ignore`.
* formatting
* Extract PageButton
* Fix import
* Extract utils
* Format
* Separate pagination - wip
* Spawn pagination machine - buggy filter
* Make labels optional
* Layout, fix send reset bug
* Format
* Fix refresh data bug
* Remove debugging line
* Fix url updates
setSearchParams overwrites all search params, rather than merging
* Update Audit Page
* Simplify pagination widget
* Fix workspaces story
* Fix Audit story
* Fix pagination story and pagebutton highlight
* Fix pagination tests
* Add to utils tests
* Format
* Add tests
* Start adding pagination - type error
* Tweak machine
* Refactor paginated api calls
* Show pagination when count is undefined
* fix stories
* Fix api helper
* Add test
* Format
* Make widget show all the time to avoid blink
* added test for stopping a workspace build
* formatted sfriendly string; added tests
* logging unmarshal error in auditLogDescription
* prettier
* got rid of extra workspace word
* PR feedback
* fixed mistake; wrote tests in penance
* fix be