CLI: Use the new DELETE project endpoint
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
py-client/plugin にある既存の remove CLI 関数と、プロジェクトをクリーンアップする autotests から始めます。現在の削除リクエストを v2 scheduleDelete および即時 DELETE エンドポイントと比較し、そのうえでヘルプテキスト、force-delete オプション、返されるスケジュール情報、関連するテストによるクリーンアップ動作を確認します。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 23
- フォーク
- 12
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 7
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MerginMaps/python-api-client のほかの issue
-
Vacuuming オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MerginMaps/python-api-client#320 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
MerginMaps/python-api-client#270 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
MerginMaps/python-api-client#257 · コメント 3 件 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
MerginMaps/python-api-client#254 · コメント 1 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
MerginMaps/python-api-client#245 ·
MerginMaps/python-api-client の issue をすべて見る
似ている issue
-
Add: hunch オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DiamondLightSource/dodal#2211 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
openml/openml-python#1749 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
sipyourdrink-ltd/bernstein#6191 ·