- Notifications
You must be signed in to change notification settings - Fork913
chore: fill out workspace owner data for dynamic parameters#17366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
074e0bb
3a403c1
35ac954
1820c3d
52373b7
2b4c609
8208b7d
aba1d09
27a01c9
e9d235d
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1108,10 +1108,6 @@ func New(options *Options) *API { | ||
// The idea is to return an empty [], so that the coder CLI won't get blocked accidentally. | ||
r.Get("/schema", templateVersionSchemaDeprecated) | ||
r.Get("/parameters", templateVersionParametersDeprecated) | ||
r.Get("/rich-parameters", api.templateVersionRichParameters) | ||
r.Get("/external-auth", api.templateVersionExternalAuth) | ||
r.Get("/variables", api.templateVersionVariables) | ||
@@ -1177,6 +1173,17 @@ func New(options *Options) *API { | ||
// organization member. This endpoint should match the authz story of | ||
// postWorkspacesByOrganization | ||
r.Post("/workspaces", api.postUserWorkspaces) | ||
// Similarly to creating a workspace, evaluating parameters for a | ||
// new workspace should also match the authz story of | ||
// postWorkspacesByOrganization | ||
r.Route("/templateversions/{templateversion}", func(r chi.Router) { | ||
r.Use( | ||
httpmw.ExtractTemplateVersionParam(options.Database), | ||
httpmw.RequireExperiment(api.Experiments, codersdk.ExperimentDynamicParameters), | ||
) | ||
r.Get("/parameters", api.templateVersionDynamicParameters) | ||
}) | ||
aslilac marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
}) | ||
r.Group(func(r chi.Router) { | ||
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.