mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: persist AI task state in template imports & workspace builds (#18449)
This commit is contained in:
@ -1730,12 +1730,6 @@ func (api *API) postTemplateVersionsByOrganization(rw http.ResponseWriter, r *ht
|
||||
String: req.ExampleID,
|
||||
Valid: req.ExampleID != "",
|
||||
},
|
||||
// appease the exhaustruct linter
|
||||
// TODO: set this to whether the template version defines a `coder_ai_task` tf resource
|
||||
HasAITask: sql.NullBool{
|
||||
Bool: false,
|
||||
Valid: false,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
if database.IsUniqueViolation(err, database.UniqueTemplateVersionsTemplateIDNameKey) {
|
||||
|
Reference in New Issue
Block a user