Delete all pages when a collection is deleted

Bug #1424419 reported by Kristina Hoeppner
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Robert Lyon

Bug Description

When users delete a collection, they sometimes wish to delete the associated pages as well. For example, when a template is copied, and the user wants to start fresh, they may wish to delete all pages.

It would be good to have the choice when deleting a collection whether only the collection is deleted or all associated pages making it easier for people to get rid of things in their portfolio.

I received some support requests where people said they deleted the collection and were expecting the pages to have gone as well wondering why they still showed up in their pages list.

peter (peterh-k)
Changed in mahara:
assignee: nobody → peter (peterh-k)
peter (peterh-k)
Changed in mahara:
assignee: peter (peterh-k) → nobody
Revision history for this message
Aaron Wells (u-aaronw) wrote :

Makes sense to me.

tags: added: collections usability
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11616

Robert Lyon (robertl-9)
Changed in mahara:
milestone: none → 21.04.0
status: Confirmed → In Progress
assignee: nobody → Robert Lyon (robertl-9)
Revision history for this message
Robert Lyon (robertl-9) wrote :

Note: the fix for this is only involves deleting a collection explicitly where you end up on the collection/delete.php page and need to confirm.

Any automatic deleting of collections will still happen in the old way

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Having observed people over the last 6 years, giving the option to delete the collection or to delete the collection and pages seems to be too much as most people won't read text and when wanting to delete a collection, they also want to get rid of the pages directly rather than deleting them separately. that's why I think it'll be sufficient to just offer to delete the collection and all pages rather than giving the choice of what to delete. If individual pages shall be deleted, this can be done on the pages themselves.

I haven't come across many people who wanted to delete the collection shell but keep the pages in it. If they wanted to, they could remove a page from a collection before deleting the remaining pages.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11616
Committed: https://git.mahara.org/mahara/mahara/commit/5b46c5b7d8352b9cd77eb369a24372de83da1ba6
Submitter: Lisa Seeto (<email address hidden>)
Branch: master

commit 5b46c5b7d8352b9cd77eb369a24372de83da1ba6
Author: Robert Lyon <email address hidden>
Date: Sat Mar 20 11:06:02 2021 +1300

Bug 1424419: Allow all pages to be deleted when deleting a collection

Also added code so that when clicking on the "Please consider creating
a backup by exporting it" link on the confirm deletion page for
Collections or Views it takes you to the export page and pre-selects that
particular collection or export for faster exporting

This also solves the Bugs 1153151 and 1274032 in a round-a-bout way
where if a person wants to delete a whole lot of pages at once they
can add them to a collection and then delete the collection + pages

Change-Id: I9dc35261bcc144901f4f6db4bd97f133a46401fc
Signed-off-by: Robert Lyon <email address hidden>

Lisa Seeto (lisaseeto)
Changed in mahara:
status: In Progress → Fix Committed
tags: added: newfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.