feat: implement basic archive ui to make archiving failed versions easy (#10182)

* feat: implement basic archive ui to make archiving failed versions easy.
This commit is contained in:
Steven Masley
2023-10-11 10:06:10 -05:00
committed by GitHub
parent 1e950fa9a8
commit ac623b4717
8 changed files with 105 additions and 10 deletions

6
coderd/apidoc/docs.go generated
View File

@ -2294,6 +2294,12 @@ const docTemplate = `{
"name": "after_id",
"in": "query"
},
{
"type": "boolean",
"description": "Include archived versions in the list",
"name": "include_archived",
"in": "query"
},
{
"type": "integer",
"description": "Page limit",

View File

@ -2002,6 +2002,12 @@
"name": "after_id",
"in": "query"
},
{
"type": "boolean",
"description": "Include archived versions in the list",
"name": "include_archived",
"in": "query"
},
{
"type": "integer",
"description": "Page limit",

View File

@ -704,6 +704,7 @@ func (api *API) fetchTemplateVersionDryRunJob(rw http.ResponseWriter, r *http.Re
// @Tags Templates
// @Param template path string true "Template ID" format(uuid)
// @Param after_id query string false "After ID" format(uuid)
// @Param include_archived query bool false "Include archived versions in the list"
// @Param limit query int false "Page limit"
// @Param offset query int false "Page offset"
// @Success 200 {array} codersdk.TemplateVersion