MerginMaps / MerginMaps/python-api-client
CLI: Use the new DELETE project endpoint
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 23
- 分支
- 12
- 平均合併
- 2 天 13 小時
- 30 天內合併 PR
- 7
描述
See the description for https://app.clickup.com/t/861nayppe and https://app.clickup.com/t/861nayqwz and mimic the same in the py-client/plugin.
The existing remove CLI function:
- should use the POST v2/project/{id}/scheduleDelete by default and returns when the project will be deleted
- should have a new flag -f, --force-delete to remove the project immediately by calling DELETE /project/{id}
Also, add a help text to that CLI function explaining that normal remove will schedule the project for deletion and the force will remove it forever immediately.
In autotests, use the new version (immediate delete) when doing cleanup.
Comments
Martin D: immediate removal of projects added to python API: https://github.com/MerginMaps/mergin-py-client/pull/177
Martin D: For the time being, clients still use the "old" v1 delete endpoint - we should switch to the v2 delete endpoint only after some time when also CE/EE servers are likely to be migrated already...
Migrated from: https://app.clickup.com/t/861nayu2h
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 py-client/plugin 中現有的 remove CLI 函式以及清理專案的 autotests 開始。將其目前的刪除請求與 v2 scheduleDelete 和立即 DELETE 端點進行比較,然後透過相關測試驗證說明文字、force-delete 選項、返回的排程資訊以及清理行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- api, cli, testing
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100