mirror of
https://github.com/coder/coder.git
synced 2026-10-29 17:44:33 +08:00
feat: make dynamic parameters opt-in by default for new templates (#19006)
resolves #18975 --------- Co-authored-by: Steven Masley <stevenmasley@gmail.com> Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Steven Masley
blink-so[bot]
parent
faac75389b
commit
1320b8d5be
+2
-2
@@ -197,8 +197,8 @@ func (api *API) postTemplateByOrganization(rw http.ResponseWriter, r *http.Reque
|
||||
return
|
||||
}
|
||||
|
||||
// Default is true until dynamic parameters are promoted to stable.
|
||||
useClassicParameterFlow := ptr.NilToDefault(createTemplate.UseClassicParameterFlow, true)
|
||||
// Default is false as dynamic parameters are now the preferred approach.
|
||||
useClassicParameterFlow := ptr.NilToDefault(createTemplate.UseClassicParameterFlow, false)
|
||||
|
||||
// Make a temporary struct to represent the template. This is used for
|
||||
// auditing if any of the following checks fail. It will be overwritten when
|
||||
|
||||
Reference in New Issue
Block a user