MerginMaps / MerginMaps/python-api-client
CLI: Use the new DELETE project endpoint
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 23
- Forks
- 12
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 7
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la función existente remove CLI en py-client/plugin y los autotests que limpian los proyectos. Compara su solicitud de eliminación actual con los endpoints v2 scheduleDelete y DELETE inmediato, y verifica después el texto de ayuda, la opción force-delete, la información de programación devuelta y el comportamiento de limpieza mediante las pruebas relevantes.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- api, cli, testing
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100