Open whatisgalen opened 6 months ago
I can work on this but I need some directions for DeleteAll or None. One way would be to use rollback but I need a file/code so I can learn how the project follows that.
This could be a complex problem to solve because I don't believe bulk deletion is wrapped in a transaction that you can easily roll back. This is because the data volume could be very large. You would need to restore the data from the edit history and then reindex. This could be a very long running process inside a celery task, and the user would need to be notified that something went wrong and the deletion is getting reversed.
The
delete_tiles()
method in the bulk data deleter should either delete all tiles as dictated by its request or else delete none of them. Also, there is also no count reported of how many tiles got deleted. It would be good to return a count upon successful deletion.