Closed jameswragg closed 13 years ago
Hubs with tasks that have seen action (i.e. they are in a state of "claimed", "done" or "verified") cannot be deleted. Perhaps we should have in local_settings.py a setting for the server, which would allow or disallow this behaviour.
The way to overcome it is to "archive" the hub instead of deleting it: https://github.com/dharmafly/tasket/blob/master/client/media/tank/js/models/hub.js#L173
I think it's fine to archive the hub, but it would be good if we did have a way to force the deletion of a hub with actioned tasks.
In the Tank app, only when a hub has no actioned tasks is a user allowed to delete it; otherwise, they can only archive the hub.
Fixed in 3938c5af1e3bdfebfc31a518939e3b3ff315b812
It seems that hubs that have completed tasks cannot be deleted.
Steps to recreate:
Notice that the API responds with "400: {"error": "Cannot delete hub"}"