CLI: Use the new DELETE project endpoint
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inizia con la funzione remove CLI esistente in py-client/plugin e gli autotests che ripuliscono i progetti. Confronta la richiesta di eliminazione attuale con gli endpoint v2 scheduleDelete e DELETE immediato, quindi verifica il testo dell’help, l’opzione force-delete, le informazioni sulla pianificazione restituite e il comportamento di pulizia tramite i test pertinenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 23
- Fork
- 12
- Merge medio
- 2g 13h
- PR unite (30g)
- 7
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MerginMaps/python-api-client
-
Vacuuming Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
MerginMaps/python-api-client#320 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
MerginMaps/python-api-client#270 ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
MerginMaps/python-api-client#257 · 3 commenti ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
MerginMaps/python-api-client#254 · 1 commento ·
-
Impose geodiff push limits Apertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
MerginMaps/python-api-client#245 ·
Tutte le issue di MerginMaps/python-api-client
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
learningequality/ricecooker#747 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
run-llama/llama_index#23199 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
KhronosGroup/glTF-Blender-IO#2769 ·