mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: add multi-org experiment for UI view toggling (#13260)
* chore: Add multi-org experiment UI will use to toggle different views
This commit is contained in:
9
coderd/apidoc/docs.go
generated
9
coderd/apidoc/docs.go
generated
@ -9542,15 +9542,18 @@ const docTemplate = `{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"example",
|
||||
"auto-fill-parameters"
|
||||
"auto-fill-parameters",
|
||||
"multi-organization"
|
||||
],
|
||||
"x-enum-comments": {
|
||||
"ExperimentAutoFillParameters": "This should not be taken out of experiments until we have redesigned the feature.",
|
||||
"ExperimentExample": "This isn't used for anything."
|
||||
"ExperimentExample": "This isn't used for anything.",
|
||||
"ExperimentMultiOrganization": "Requires organization context for interactions, default org is assumed."
|
||||
},
|
||||
"x-enum-varnames": [
|
||||
"ExperimentExample",
|
||||
"ExperimentAutoFillParameters"
|
||||
"ExperimentAutoFillParameters",
|
||||
"ExperimentMultiOrganization"
|
||||
]
|
||||
},
|
||||
"codersdk.ExternalAuth": {
|
||||
|
11
coderd/apidoc/swagger.json
generated
11
coderd/apidoc/swagger.json
generated
@ -8541,12 +8541,17 @@
|
||||
},
|
||||
"codersdk.Experiment": {
|
||||
"type": "string",
|
||||
"enum": ["example", "auto-fill-parameters"],
|
||||
"enum": ["example", "auto-fill-parameters", "multi-organization"],
|
||||
"x-enum-comments": {
|
||||
"ExperimentAutoFillParameters": "This should not be taken out of experiments until we have redesigned the feature.",
|
||||
"ExperimentExample": "This isn't used for anything."
|
||||
"ExperimentExample": "This isn't used for anything.",
|
||||
"ExperimentMultiOrganization": "Requires organization context for interactions, default org is assumed."
|
||||
},
|
||||
"x-enum-varnames": ["ExperimentExample", "ExperimentAutoFillParameters"]
|
||||
"x-enum-varnames": [
|
||||
"ExperimentExample",
|
||||
"ExperimentAutoFillParameters",
|
||||
"ExperimentMultiOrganization"
|
||||
]
|
||||
},
|
||||
"codersdk.ExternalAuth": {
|
||||
"type": "object",
|
||||
|
@ -2217,6 +2217,7 @@ const (
|
||||
// Add new experiments here!
|
||||
ExperimentExample Experiment = "example" // This isn't used for anything.
|
||||
ExperimentAutoFillParameters Experiment = "auto-fill-parameters" // This should not be taken out of experiments until we have redesigned the feature.
|
||||
ExperimentMultiOrganization Experiment = "multi-organization" // Requires organization context for interactions, default org is assumed.
|
||||
)
|
||||
|
||||
// ExperimentsAll should include all experiments that are safe for
|
||||
|
1
docs/api/schemas.md
generated
1
docs/api/schemas.md
generated
@ -2693,6 +2693,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
| ---------------------- |
|
||||
| `example` |
|
||||
| `auto-fill-parameters` |
|
||||
| `multi-organization` |
|
||||
|
||||
## codersdk.ExternalAuth
|
||||
|
||||
|
11
site/src/api/typesGenerated.ts
generated
11
site/src/api/typesGenerated.ts
generated
@ -1907,8 +1907,15 @@ export const Entitlements: Entitlement[] = [
|
||||
];
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export type Experiment = "auto-fill-parameters" | "example";
|
||||
export const Experiments: Experiment[] = ["auto-fill-parameters", "example"];
|
||||
export type Experiment =
|
||||
| "auto-fill-parameters"
|
||||
| "example"
|
||||
| "multi-organization";
|
||||
export const Experiments: Experiment[] = [
|
||||
"auto-fill-parameters",
|
||||
"example",
|
||||
"multi-organization",
|
||||
];
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export type FeatureName =
|
||||
|
Reference in New Issue
Block a user