mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #22238
[Bug 1354222] Re: Files within a group aren't deleted after deleting the group
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
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1354222
Title:
Files within a group aren't deleted after deleting the group
Status in Mahara ePortfolio:
Confirmed
Bug description:
If you create a group that contains any files (e.g. image, file) and
then delete that group you should see a warning message. In addition,
the files are not deleted although the group is (or marked as deleted)
To reproduce (Mahara master):
1.- Click on the 'Group' tab and create a group
2.- Click on the 'Files' tab and add a file or image
3.- Delete the group and you should see the warning. To check that the added files/images weren't deleted you can check out the 'artefact_file_files' table.
Is this a bug or is it an intended behaviour? If it is a bug I could
provide a patch for review.
Cheers,
Moises
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1354222/+subscriptions
References