Comment 8 for bug 1354222

Revision history for this message
Christian Stickel (christian-stickel) wrote :

Lars,

I suggest you have a look at the group_delete() method to initially delete the groupfiles and at this point log the files which are still in use and also log the views where they are in use.

This lookuptable could then be used in a second step to implement a method for the cron, thus reducing the amount of queries needed.

Imho this can become a usability issue. It would be appropriate to inform the user at this point that he will be using orphaned files and that he will not be able to use the files when the view is deleted. Thus I suggest a dialog or a message that asks the user if he wants to copy these files to his own repository. If his quota is exceeded this will give the user the chance to download the files and reupload them again when needed.

cheers,
Christian