feat(cli): add `--failure-ttl` to `coder templates push`
維護者通常 1 天內回覆
@jeremyruppel 已經在處理了。
開始於 2026年11月30日。
評估
研究方向
從 coder templates push 的實作著手,並比較 coder templates create 和 edit 如何檢查 Advanced Template Scheduling 權限。追蹤新建與既有範本請求的建構位置,並找到相關的 push 測試。新增 --failure-ttl,更新適當的請求欄位,並與 dormancy 旗標共用權限檢查;完成標準是:只有在設定旗標時才傳送,未獲授權的部署會回報此限制,且測試涵蓋兩種路徑。
由索引模型根據 Issue 內容生成。
描述
Part of #31998.
coder templates create --failure-ttl sets how long after a failed start build Coder waits before stopping the workspace ("Failure cleanup" in the UI). coder templates push has no equivalent flag.
What to change
- New template: set
CreateTemplateRequest.FailureTTLMillis. - Existing template: send
UpdateTemplateMeta.FailureTTLMillisonly when the user sets the flag. - License check required. This setting needs the Advanced Template Scheduling entitlement. On unlicensed (AGPL) deployments, the server keeps the old value without returning an error, so
pushwould look like it worked when it didn't. Check entitlements first, the same way `create` and `edit` do.--failure-ttl,--dormancy-thresholdand--dormancy-auto-deletionshould share one check.
Scope: Small (S), about 20 lines plus a test. Add another 20 to 30 lines for whichever of the three adds the shared license check first.
Created on behalf of @angrycub
- 主要語言
- Go
- 星號
- 17.5k
- 分支
- 1.7k
- 平均合併
- 2 天 23 小時
- 30 天內合併 PR
- 575
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
coder/coder 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
bug: token allow-list with a specific template ID returns 500 "column reference \"id\" is ambiguous"可能已有人在做 @stirby 於 22 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
coder/coder#32059 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
feat(cli): add `--agents-allowed` to `coder templates push`可能已有人在做 @jeremyruppel 於 4 天前認領。 未關閉cli
難度 2/5 1-3 小時 新手友好度 82/100
coder/coder#32005 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
feat(cli): add `--require-active-version` to `coder templates push`可能已有人在做 @jeremyruppel 於 4 天前認領。 未關閉cli
難度 2/5 1-3 小時 新手友好度 74/100
coder/coder#32004 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
feat(cli): add `--dormancy-auto-deletion` to `coder templates push`可能已有人在做 @jeremyruppel 於 4 天前認領。 未關閉cli
難度 2/5 1-3 小時 新手友好度 72/100
coder/coder#32003 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
neilotoole/sq#1503 ·
維護者通常 1 天內回覆
-
help wanted kind/bug stage/010-actionable
難度 2/5 1-3 小時 新手友好度 77/100
kubestellar/kubestellar#4077 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
bot snap/qwen3-6
難度 2/5 1-3 小時 新手友好度 72/100
canonical/inference-snaps#463 ·
維護者通常 2 天內回覆