13bb4492c9
chore: remove apitypings specific go.mod ( #15899 )
...
Keeping the deps in sync between this and the primary go.mod is
a headache.
adds Tailscale generated types
2024-12-18 07:18:31 -06:00
077e594856
chore: switch to guts for typescript types generation ( #15801 )
...
switch to guts for typescript type generation
omitempty vs null must now be explicit
2024-12-11 14:39:21 -06:00
4cb807670d
chore: generate countries.tsx from Go code ( #15274 )
...
Closes https://github.com/coder/coder/issues/15074
We have a hard-coded list of countries at
https://github.com/coder/coder/blob/main/site/src/pages/SetupPage/countries.tsx .
This means Go code in coder/coder doesn't have an easy way of utilizing
it.
## Solution
Generate countries.tsx from Go code. Generated by `scripts/apitypings`
2024-11-15 12:05:21 -06:00
1c3dc8392e
chore: remove dangling eslint-ignore comments ( #14334 )
2024-08-19 16:08:53 -06:00
95a7c0c4f0
chore: use tabs for prettier and biome ( #14283 )
2024-08-15 14:53:53 -06:00
43ef00401c
chore: linting fixes ( #13450 )
2024-06-03 14:33:37 -05:00
407e61ecd4
feat(cli): support bundle: dump healthcheck summary ( #12963 )
...
* refactor(codersdk): extract common fields from HealthReport and friends
* feat(codersdk/healthsdk): add Summarize() method
* feat(cli): support bundle: dump healthcheck summary
2024-04-16 13:31:56 +01:00
d9da054c9d
chore: update generated array type definitions in TypeScript to be readonly ( #12947 )
...
* chore: types generated handling readonly slices
* add -update flag to update goldens
* revert excess gens
* fix: update most UI types to account for readonly modifiers
* fix: remove accidental mutation from NavBarView
* fix: remove mutation warning for BatchUpdateConfirmation stories
* fix: remove mutation warning for BactchUpdateConfirmation
* fix: format ActiveUserChart
* fix: update import to make linter happy
* fix: update fmt issue
* fix: disable file write lint rule from unit test
---------
Co-authored-by: Parkreiner <throwawayclover@gmail.com >
2024-04-15 09:46:10 -04:00
4d5a7b2d56
chore(codersdk): move all tailscale imports out of codersdk
( #12735 )
...
Currently, importing `codersdk` just to interact with the API requires
importing tailscale, which causes builds to fail unless manually using
our fork.
2024-03-26 12:44:31 -05:00
496232446d
chore(cli): replace clibase with external coder/serpent
( #12252 )
2024-03-15 11:24:38 -05:00
2cb9bfd517
refactor(coderd): move healthcheck report structs to codersdk ( #12279 )
...
Moves healthcheck report-related structs from coderd/healthcheck to codersdk
This prevents an import cycle when adding a codersdk.Client method to hit /api/v2/debug/health.
2024-02-23 13:13:28 +00:00
04fd96a014
feat(coderd): add provisioner_daemons to /debug/health endpoint ( #11393 )
...
Adds a healthcheck for provisioner daemons to /debug/health endpoint.
2024-01-08 09:29:04 +00:00
feaa9894a4
fix(site/src/api/typesGenerated): generate HealthSection enums ( #11049 )
...
Relates to #8971
- Introduces a codersdk.HealthSection enum type
- Refactors existing references using strings to use new HealthSection type
2023-12-05 20:00:27 +00:00
2e4e0b2d2c
fix(scripts/apitypings): force health.Message and health.Severity to correct types ( #11043 )
...
* Force typegen types for some fields of derp health report
* Explicitly allocate slices for RegionReport.{Errors,Warnings} to avoid nulls in API response
2023-12-05 16:31:48 +00:00
411ce46442
feat(coderd/healthcheck): add health check for proxy ( #10846 )
...
Adds a health check for workspace proxies:
- Healthy iff all proxies are healthy and the same version,
- Warning if some proxies are unhealthy,
- Error if all proxies are unhealthy, or do not all have the same version.
2023-11-24 15:06:51 +00:00
78df68348a
feat: include health severity in reports ( #10817 )
2023-11-23 16:08:41 +01:00
fbd34139b5
refactor(site): use generated Healthcheck API entities ( #10650 )
2023-11-13 15:58:57 +01:00
beac36027f
chore: generate any interface as Deployment Option in TypeScript ( #9917 )
...
* chore: handle interfaces as "any" in typescript
Use generated Deployment Option
2023-09-28 16:14:28 -05:00
b63dfe7b75
perf(cli): optimize CPU consumption of help pages ( #9607 )
...
This change reduces the CPU consumption of --help by ~50%.
Also, this change removes ANSI escape codes from our golden files. I
don't think those were worth the inability to parallelize golden file tests and
global state fragility.
2023-09-14 19:48:29 -05:00
18c34ee456
chore: support external types in typescript codegen ( #9633 )
...
* chore: support external types in typescript codegen
* fix enums on external packages
* Support clibase.struct
* Add regexp
* Make gen with updated generator
2023-09-12 18:21:09 -05:00
39e3b049a5
refactor(coderd/healthcheck): move derp report to derphealth package ( #9506 )
...
This change helps remove one indirect use of coderd/database in the slim
CLI.
No size change (yet).
Ref: #9380
2023-09-04 21:41:50 +03:00
6ba92ef924
ci: enable gocognit ( #9359 )
...
And, bring the server under 300:
* Removed the undocumented "disable" STUN address in favor of the
--disable-direct flag.
2023-08-27 14:46:44 -05:00
22e781eced
chore: add /v2 to import module path ( #9072 )
...
* chore: add /v2 to import module path
go mod requires semantic versioning with versions greater than 1.x
This was a mechanical update by running:
```
go install github.com/marwan-at-work/mod/cmd/mod@latest
mod upgrade
```
Migrate generated files to import /v2
* Fix gen
2023-08-18 18:55:43 +00:00
8ee500c59d
fix: generate typescript types for healthcheck pkg ( #8846 )
2023-08-03 16:20:46 -05:00
0115adf9d7
chore(.golangci.yaml): make gocyclo slightly more sensitive ( #8383 )
2023-07-08 22:43:34 +00:00
f0bd258ff1
feat: move proxy settings page to deployment options ( #8246 )
...
* feat: Move workspace proxy page to deployment options
Workspace proxy settings page is now an admin feature
* WorkspaceProxy response extends region
2023-06-30 11:32:35 -04:00
e55d921537
chore: Typescript generator TODOs resolved, adding explainations ( #6633 )
...
* chore: Explain usage of eslint comments
* Conform comment
* Fix wording
* Linting
2023-03-17 09:28:16 -05:00
3de29307b5
chore: Remove some of the external enum comments in typescript ( #6530 )
...
* chore: Remove some of the external enum comments in typescript
handle clibase types manually
2023-03-09 10:46:23 -06:00
3b73321a6c
feat: refactor deployment config ( #6347 )
2023-03-07 15:10:01 -06:00
f05609b4da
chore: format Go more aggressively
2023-02-18 18:32:09 -06:00
026b1cd2a4
chore: update to go 1.20 ( #5968 )
...
Co-authored-by: Colin Adler <colin1adler@gmail.com >
2023-02-02 12:36:27 -06:00
546a8931aa
chore: move vscode local out of experiments ( #5773 )
...
We've been dogfooding the VS Code extension for a while,
and it seems stable enough that it's overall positive
to release!
2023-01-20 04:32:59 +00:00
56b996532f
feat: add --experiments flag to replace --experimental ( #5767 )
...
- Deprecates the --experimental flag
- Adds a new flag --experiments which supports passing multiple comma-separated values or a wildcard value.
- Exposes a new endpoint /api/v2/experiments that returns the list of enabled experiments.
- Deprecates the field Features.Experimental in favour of this new API.
- Updates apidocgen to support type aliases (shoutout to @mtojek).
- Modifies apitypings to support generating slice types.
- Updates develop.sh to pass additional args after -- to $CODERD_SHIM.
2023-01-18 19:12:53 +00:00
501cfa9e8d
refactor: deduplicate / type license feature code ( #5734 )
2023-01-17 17:04:29 -06:00
9578ce9f77
OAuth now uses client TLS certs (if configured) ( #5042 )
...
* OAuth now uses client TLS certs (if configured)
* Update docs
* Cleaning
* Fix lint errors and generate static files
* Fix lint error and regenerate more static files
* Suppress lint error
2022-11-13 14:15:06 -06:00
ffe461ae58
chore(site): enable eslint-plugin-eslint-comments ( #4799 )
...
* chore(site): enable eslint-plugin-eslint-comments
* chore: add descriptions to eslint-disable comments
* chore: update eslint-disable comments in main.go
2022-10-28 17:46:51 -03:00
8282e46813
chore: add audit log tests ( #4764 )
...
* 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
2022-10-27 15:57:41 -04:00
7bc5b89f7a
feat: Support config files with viper ( #4696 )
2022-10-21 17:08:23 -05:00
e8537067ef
Revert "Revert "Revert "feat: Support config files with viper"" ( #4693 )" ( #4695 )
...
This reverts commit 372fb1f345
.
2022-10-21 16:07:38 -05:00
372fb1f345
Revert "Revert "feat: Support config files with viper"" ( #4693 )
2022-10-21 20:55:20 +00:00
a2fb444911
Revert "feat: Support config files with viper ( #4558 )" ( #4692 )
...
This reverts commit c8e299c8f1
.
2022-10-21 20:04:27 +00:00
c8e299c8f1
feat: Support config files with viper ( #4558 )
2022-10-21 19:26:39 +00:00
369b5d1c2d
chore: Add generics to typescript generator ( #4664 )
...
* feat: Support generating generics in interfaces
* Switch struct to a template
* Support generics in apitypings
2022-10-20 08:15:24 -05:00
a70278e0e1
feat: make flags in one place ( #4452 )
2022-10-11 15:16:19 +00:00
78a24941fe
feat: Add codersdk.NullTime
, change workspace build deadline ( #3552 )
...
Fixes #2015
Co-authored-by: Joe Previte <jjprevite@gmail.com >
2022-08-25 19:10:42 +03:00
b101a6f3f4
POST license API endpoint ( #3570 )
...
* POST license API
Signed-off-by: Spike Curtis <spike@coder.com >
* Support interface{} types in generated Typescript
Signed-off-by: Spike Curtis <spike@coder.com >
* Disable linting on empty interface any
Signed-off-by: Spike Curtis <spike@coder.com >
* Code review updates
Signed-off-by: Spike Curtis <spike@coder.com >
* Enforce unique licenses
Signed-off-by: Spike Curtis <spike@coder.com >
* Renames from code review
Signed-off-by: Spike Curtis <spike@coder.com >
* Code review renames and comments
Signed-off-by: Spike Curtis <spike@coder.com >
Signed-off-by: Spike Curtis <spike@coder.com >
2022-08-22 15:02:50 -07:00
b0fe9bcdd1
chore: Upgrade to Go 1.19 ( #3617 )
...
This is required as part of #3505 .
2022-08-21 22:32:53 +00:00
6230d5512e
chore: Remove line numbers from auto-gen typescript ( #3258 )
...
* chore: Remove line numbers from auto-gen typescript
The line numbers are just extra noise that change when things shift
around. They are not required and usually make CI fail when you
forget to run 'make gen'.
2022-07-27 21:36:15 +00:00
64e408c954
feat: Check permissions endpoint ( #1389 )
...
* feat: Check permissions endpoint
Allows FE to query backend for permission capabilities.
Batch requests supported
2022-05-12 20:56:23 +00:00
97a95f1377
chore: upgrade golangci-lint to v1.46.0 ( #1373 )
2022-05-10 16:04:23 -05:00