Be able to delete reviewed and locked portfolios after 6 month

Bug #1928270 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Robert Lyon
21.04
Fix Released
High
Unassigned

Bug Description

The new 'Review' block in Mahara 21.04 allows for the locking of the portfolio. However, at the moment such a portfolio cannot be deleted at all.

In the first instance, we will allow the deletion of the portfolio after 6 months. There will be a more comprehensive solution later on.

To test:

1. Create an institution template collection (set to 'Current auto-copied template') with portfolio completion.
2. Add 1 review block and set 'Lock portfolio' to 'Yes'.
3. Create a new account and run the cron so that the portfolio is created.
4. Share the portfolio with a person who can do a review.
5. Log in as the reviewer and approve the review statement.
6. As portfolio author, check that the portfolio is locked. You can't delete the portfolio.
7. Wait for 6 months ;-) or rather manipulate the locking date.
8. Run the cron again and the portfolio should be unlocked.

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/11768

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

Reviewed: https://reviews.mahara.org/11768
Committed: https://git.mahara.org/mahara/mahara/commit/127de8f2770d605432bc9dfa03f47c400cd7a8be
Submitter: Lisa Seeto (<email address hidden>)
Branch: master

commit 127de8f2770d605432bc9dfa03f47c400cd7a8be
Author: Robert Lyon <email address hidden>
Date: Thu May 13 14:11:39 2021 +1200

Bug 1928270: Be able to unlock locked collections

- also fixing install code error

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

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

Patch for "21.04_STABLE" branch: https://reviews.mahara.org/11786

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

Reviewed: https://reviews.mahara.org/11786
Committed: https://git.mahara.org/mahara/mahara/commit/445849b816c821ac582f232e5370c7a83d264c75
Submitter: Lisa Seeto (<email address hidden>)
Branch: 21.04_STABLE

commit 445849b816c821ac582f232e5370c7a83d264c75
Author: Robert Lyon <email address hidden>
Date: Thu May 13 14:11:39 2021 +1200

Bug 1928270: Be able to unlock locked collections

- also fixing install code error

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

no longer affects: mahara/21.10
tags: added: newfeature
tags: removed: newfeature
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.