Mathias Fredriksson
2d3dc436a8
feat: Implement unified pagination and add template versions support ( #1308 )
...
* feat: Implement pagination for template versions
* feat: Use unified pagination between users and template versions
* Sync codepaths between users and template versions
* Create requestOption type in codersdk and add test
* Fix created_at edge case for pagination cursor in queries
* feat: Add support for json omitempty and embedded structs in apitypings (#1318 )
* Add scripts/apitypings/main.go to Makefile
2022-05-10 07:44:09 +00:00
Kyle Carberry
dc115b8ca0
fix: Use proper endpoint for user workspaces ( #1356 )
...
This was a silly mistake in a prior PR, so the code wasn't
actually being called!
2022-05-10 03:10:47 +00:00
Kyle Carberry
b675aec4dd
feat: Add endpoint to get all workspaces a user can access ( #1354 )
...
This iterates through user organizations to get permitted
workspaces. This will allow admins to manage user workspaces!
2022-05-10 02:38:20 +00:00
Kyle Carberry
e6f1ce1fb2
fix: Allow coderd to exit on error channel ( #1355 )
...
coderd would fail silently if this was called, because connections
would never drain. HashiCorp's hc-install package broke today,
and we couldn't notice because this was hanging!
2022-05-10 02:19:20 +00:00
dependabot[bot]
3660483b97
chore: bump github.com/moby/moby ( #1339 )
...
Bumps [github.com/moby/moby](https://github.com/moby/moby ) from 20.10.14+incompatible to 20.10.15+incompatible.
- [Release notes](https://github.com/moby/moby/releases )
- [Changelog](https://github.com/moby/moby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/moby/moby/compare/v20.10.14...v20.10.15 )
---
updated-dependencies:
- dependency-name: github.com/moby/moby
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v0.5.5
2022-05-09 19:01:33 -05:00
dependabot[bot]
48f004bb3d
chore: bump github.com/charmbracelet/charm from 0.12.0 to 0.12.1 ( #1341 )
...
Bumps [github.com/charmbracelet/charm](https://github.com/charmbracelet/charm ) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/charmbracelet/charm/releases )
- [Changelog](https://github.com/charmbracelet/charm/blob/main/.goreleaser.yml )
- [Commits](https://github.com/charmbracelet/charm/compare/v0.12.0...v0.12.1 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/charm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-09 19:00:11 -05:00
dependabot[bot]
5653c4455a
chore: bump google.golang.org/api from 0.77.0 to 0.78.0 ( #1340 )
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.77.0 to 0.78.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.77.0...v0.78.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-09 18:50:32 -05:00
dependabot[bot]
9b30ff8e59
chore: bump @typescript-eslint/parser from 5.22.0 to 5.23.0 in /site ( #1353 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.22.0 to 5.23.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.23.0/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-09 18:29:40 -05:00
Kyle Carberry
ddb9631d7a
fix: Group subcommands for cognitive ease ( #1351 )
2022-05-09 17:42:02 -05:00
Colin Adler
20caee1502
feat: add audit exporting and filtering ( #1314 )
2022-05-09 22:05:01 +00:00
dependabot[bot]
ac27f645eb
chore: bump @typescript-eslint/parser from 5.21.0 to 5.22.0 in /site ( #1343 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.21.0 to 5.22.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.22.0/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-09 16:41:54 -05:00
David Wahler
d847d2b1c5
chore: add dwahler as contributor ( #1352 )
2022-05-09 20:57:03 +00:00
Kira Pilot
f5693dff3d
chore: added contributer ( #1349 )
2022-05-09 14:49:23 -04:00
Bruno Quaresma
e54324d880
refactor: Add roles into the user response ( #1347 )
2022-05-09 16:38:14 +00:00
Spike Curtis
ad8d9dd71a
feat: make it harder to skip graceful shutdown accidentally ( #1327 )
...
* feat: make it harder to skip graceful shutdown accidentally
Signed-off-by: Spike Curtis <spike@coder.com >
* fixup: don't use unbuffered signal channel
Signed-off-by: Spike Curtis <spike@coder.com >
2022-05-06 13:45:18 -07:00
Bruno Quaresma
00806580f5
refactor: Return the display_name and name in the roles endpoint ( #1328 )
2022-05-06 19:18:00 +00:00
Kyle Carberry
97ee5600c7
fix: Remove "CODER_URL" and "CODER_TOKEN" ( #1330 )
...
These aren't being used, so it's best to remove for now.
It caused issues with dogfooding from v1 too!
2022-05-06 18:46:21 +00:00
Bruno Quaresma
cf5aca799d
Add reset user password action ( #1320 )
2022-05-06 13:23:03 -05:00
Bruno Quaresma
57bb108465
feat: Add update user password endpoint ( #1310 )
2022-05-06 09:20:08 -05:00
Presley Pizzo
a2be7c0294
fix: create and read workspace page ( #1294 )
...
* Change name of existing workspace call
* Add new api call (has handler already)
* WorkspacesPage -> WorkspacePage
* starting to replace swr
* Add other api calls
* Fix api call
* Replace swr with xstate
* Format
* Test - wip
* Fix route in template page
* Fix endpoint in create workspace
* Fix tests
* Lint
2022-05-06 10:02:17 -04:00
Mathias Fredriksson
3dbcddc310
fix: Confirm password in cli create first user step ( #1220 )
...
Fixes #1182
2022-05-06 15:47:38 +03:00
Kyle Carberry
914a2f477c
fix: Restore terminal on interrupt when connecting ( #1312 )
...
Fixes #1292 .
2022-05-05 20:11:44 -05:00
Ben Potter
f965066517
feat: add screenshot to readme ( #1313 )
...
* feat: add screenshot to readme
* change
2022-05-06 01:09:27 +00:00
Ben Potter
568574c118
fix: use CODER_AGENT_TOKEN for docker example ( #1295 )
2022-05-04 22:42:58 +00:00
Colin Adler
0ccf0102d7
fix: ensure correct version of sqlc is executed ( #1287 )
...
If `/usr/local/bin` is searched before `$GOPATH/bin` in your `$PATH` the
wrong version of `sqlc` can be executed.
2022-05-04 20:09:13 +00:00
Kyle Carberry
d7f63217f1
feat: Add code splitting to reduce bundle size ( #1285 )
...
This splits our pages to use separate JavaScript bundles. It
initially splits the terminal, which reduces our primary
bundle size by ~400KB.
We should do this for all pages, but that can come in a future
change. This leaves the loading page empty for now, which I
think is fine. None of our pages are large enough that the blank
screen temporarily would be concerning.
2022-05-04 14:24:31 -05:00
Bruno Quaresma
f911c8a781
feat: Add suspend user action ( #1275 )
2022-05-04 16:10:38 +00:00
Presley Pizzo
34b91fd577
feat: add margins to pages ( #1217 )
...
* Add Margin, use constants
* Change throughout
* Add to a page, lint
* Format
2022-05-04 11:36:54 -04:00
Kyle Carberry
4c35b8174a
fix: Prefix paths in find on macOS ( #1284 )
...
This fixes paths not resolving in macOS, causing
the build target to fail. This also renames the
site target to specify the index.html, which is
the output artifact of building the site.
v0.5.4
2022-05-04 09:47:48 -05:00
Kyle Carberry
e860cc4814
fix: Build site in release ( #1283 )
...
This was using Mac Make, which is missing some options:
https://github.com/coder/coder/runs/6265845123?check_suite_focus=true#step:10:6
2022-05-04 14:23:48 +00:00
Colin Adler
9d2e788fea
feat: allow verbose logging in coder server ( #1280 )
2022-05-03 16:13:30 -05:00
Steven Masley
d0293e4d33
feat: Implement list roles & enforce authorize examples ( #1273 )
2022-05-03 16:10:19 -05:00
Colin Adler
0f9e30e54f
fix: use correct enable bool for pprof ( #1279 )
2022-05-03 19:54:10 +00:00
Colin Adler
e530ab2838
chore: add api specific 404 ( #1272 )
...
Prevents weird errors when routes are moved, like
https://github.com/coder/coder/issues/1205
2022-05-03 09:22:08 -05:00
dependabot[bot]
ba80c799d7
chore: bump typescript from 4.6.3 to 4.6.4 in /site ( #1252 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.6.3 to 4.6.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.3...v4.6.4 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-03 09:11:39 -05:00
Kyle Carberry
60aa40a56f
fix: Remove microsecond wait in peer.(*Channel) ( #1270 )
...
This was implemented when our WebRTC code was much less hardened.
It's likely this was a cause of some other problem.
Closes #1076 .
2022-05-03 14:00:59 +00:00
Colin Adler
eda85a0141
fix: force logs to flush on close in peer.(*Conn) ( #1268 )
2022-05-03 08:36:48 -05:00
Colin Adler
9319c39257
fix: additional provisionerd test double closes ( #1267 )
2022-05-03 08:02:54 -05:00
Colin Adler
55ad97bbd7
feat: add pprof and prometheus metrics to coder server ( #1266 )
2022-05-03 12:48:02 +00:00
Kyle Carberry
5dcaf940b6
fix: Build site in deploy ( #1265 )
v0.5.3
2022-05-02 23:12:13 +00:00
Kyle Carberry
fd49a18b47
feat: Add "state" command to pull and push workspace state ( #1264 )
...
It's possible for a workspace to become in an invalid state.
This is something we'll detect for jobs, and allow monitoring of.
These commands will allow admins to manually reconcile state.
2022-05-02 17:51:58 -05:00
Kyle Carberry
43c6bff5ae
fix: Use "terraform state pull" instead of "terraform show" ( #1262 )
...
Although the terraform-exec docs don't indicate this, the result of
"terraform show" isn't actually the state... it's a trimmed version
of the state that excludes resource identifiers, essentially removing
all state that did exist.
Tests will be written to ensure Terraform state reconciliation can occur.
This will happen in another PR, as dogfood is currently broken because of this.
2022-05-02 20:02:38 +00:00
Kyle Carberry
fc642edf51
fix: Use GoReleaser Action in deploy script ( #1263 )
...
This reduces conflictions with our Makefile, which is presently
primarily a user script.
2022-05-02 20:00:08 +00:00
Colin Adler
81bef1c83e
feat: add audit logging database schema ( #1225 )
2022-05-02 19:30:46 +00:00
Kyle Carberry
e4e60256ac
fix: Use "make build" on deploy ( #1261 )
...
This was a missed item in https://github.com/coder/coder/pull/1259 .
2022-05-02 14:04:45 -05:00
Kyle Carberry
dacc025cf3
fix: Adjust Makefile tagets to use dependencies ( #1259 )
...
It was getting slow to run `make gen` and other operations,
but this resolves it by targeting files properly.
2022-05-02 13:23:13 -05:00
dependabot[bot]
2293d7efd1
chore: bump github.com/gohugoio/hugo from 0.97.3 to 0.98.0 ( #1247 )
...
Bumps [github.com/gohugoio/hugo](https://github.com/gohugoio/hugo ) from 0.97.3 to 0.98.0.
- [Release notes](https://github.com/gohugoio/hugo/releases )
- [Changelog](https://github.com/gohugoio/hugo/blob/master/goreleaser.yml )
- [Commits](https://github.com/gohugoio/hugo/compare/v0.97.3...v0.98.0 )
---
updated-dependencies:
- dependency-name: github.com/gohugoio/hugo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-02 17:49:02 +00:00
dependabot[bot]
9032b7e33f
chore: bump github.com/open-policy-agent/opa from 0.39.0 to 0.40.0 ( #1245 )
...
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa ) from 0.39.0 to 0.40.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases )
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.39.0...v0.40.0 )
---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-02 17:36:02 +00:00
dependabot[bot]
6dd378c194
chore: bump google.golang.org/api from 0.75.0 to 0.77.0 ( #1249 )
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.75.0 to 0.77.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.75.0...v0.77.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-02 17:32:27 +00:00
Kyle Carberry
3d96785bf5
fix: Add lock around read/write of circular buffer ( #1258 )
...
This fixes a race seen in:
https://github.com/coder/coder/runs/6260926628?check_suite_focus=true#step:10:666
2022-05-02 17:31:04 +00:00