Deleting a group doesn't delete its views and artefacts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Richard Mansfield |
Bug Description
See Kristina's comment on https:/
"One thing I noticed though: When you have a group file in a personal portfolio page that file will still be available after you delete the group and all its files. Is that correct? There is no way to transfer that file into your own files area (except for downloading and re-uploading) as it in a way does not exist on Mahara anymore."
It seems that in the database, group views, artefacts, and forum posts survive after the group has been deleted. You can no longer access them directly, but as Kristina says, files will still be accessible if they were previously included in other views not owned by the group (but they can't be added to any new blocks).
I think we should probably just delete all group stuff when the group is deleted.
The other option would be to check whether the group is deleted before displaying group artefacts (this is what happens for views and forums). I suppose the advantage of doing it that way is that we could one day allow people to restore deleted groups, if we thought that was worthwhile.
Changed in mahara: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in mahara: | |
assignee: | nobody → Richard Mansfield (richard-mansfield) |
milestone: | none → 1.5.0 |
tags: | added: groups |
Changed in mahara: | |
status: | Triaged → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /reviews. mahara. org/976 gitorious. org/mahara/ mahara/ commit/ a7512716e508640 d3c63a745da3cc4 deb6ff0745
Committed: http://
Submitter: Francois Marier (<email address hidden>)
Branch: master
commit a7512716e508640 d3c63a745da3cc4 deb6ff0745
Author: Richard Mansfield <email address hidden>
Date: Mon Jan 9 13:28:25 2012 +1300
Delete group files and views when deleting groups (bug #913536)
Most group data was not being deleted along with the group. This ance, but
patch ensures all group views and artefacts are deleted when a group
is deleted, and that any views submitted to the group are released.
Forums are deleted using the delete method of InteractionInst
this just marks the forum as deleted rather than wiping the data.
Change-Id: If160ebde3bf7c2 0d92929986fe70a d9e3853c6be
Signed-off-by: Richard Mansfield <email address hidden>