feat: add all safe experiments to the deployment page (#10276)

* added new option table type for experiments

* added tests

* fixed go tests

* added go test for new param

* removing query change

* clearing ExperimentsAll

* dont mutate ExperimentsAll

* added new route for safe experiments

* added new route for safe experiments

* added test for new route

* PR feedback

* altered design

* alias children
This commit is contained in:
Kira Pilot
2023-10-17 14:49:19 -04:00
committed by GitHub
parent 35f9e2ef7f
commit 1656249e07
17 changed files with 360 additions and 39 deletions

32
coderd/apidoc/docs.go generated
View File

@ -587,8 +587,36 @@ const docTemplate = `{
"tags": [
"General"
],
"summary": "Get experiments",
"operationId": "get-experiments",
"summary": "Get enabled experiments",
"operationId": "get-enabled-experiments",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/codersdk.Experiment"
}
}
}
}
}
},
"/experiments/available": {
"get": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": [
"application/json"
],
"tags": [
"General"
],
"summary": "Get safe experiments",
"operationId": "get-safe-experiments",
"responses": {
"200": {
"description": "OK",