MerginMaps / MerginMaps/python-api-client

CLI: Use the new DELETE project endpoint

Aperta
#195 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Python
Stelle
23
Fork
12
Merge medio
2g 13h
PR unite (30g)
7

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

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.

Valutazione

Stack tecnologico
python
Ambito
api, cli, testing
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.