Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Use the new DELETE project endpoint #195

Open
mergin-maps-bot opened this issue Jan 5, 2024 · 0 comments
Open

CLI: Use the new DELETE project endpoint #195

mergin-maps-bot opened this issue Jan 5, 2024 · 0 comments

Comments

@mergin-maps-bot
Copy link
Member

mergin-maps-bot commented Jan 5, 2024

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: #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

@mergin-maps-bot mergin-maps-bot changed the title Use the new DELETE endpoint Use the new DELETE project endpoint Jan 5, 2024
@wonder-sk wonder-sk changed the title Use the new DELETE project endpoint CLI: Use the new DELETE project endpoint May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant