Refactor BlockInstance::bulk_delete_artefacts($records)

Bug #1534383 reported by Aaron Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Aaron Wells

Bug Description

See https://mahara.org/interaction/forum/topic.php?id=7465&offset=0&limit=10#post30151. This method is old and has some problems that make it confusing. It'd be nice to clean it up a little. In particular, it has a misleading name (it doesn't delete artefacts; it only de-selects them from block instances). And it has a very particular parameter format that is tightly coupled to a particular SQL query, which could easily be moved inside the function in order to make its API more understandable.

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

Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 16.04.0 → 16.10.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/5911
Committed: https://git.mahara.org/mahara/mahara/commit/a618448e03978f58a7d3795e85b3a8f5b57bd54f
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit a618448e03978f58a7d3795e85b3a8f5b57bd54f
Author: Aaron Wells <email address hidden>
Date: Fri Jan 15 13:10:21 2016 +1300

Bug 1534383 Refactoring BlockInstance::bulk_delete_artefacts()

Renaming to make it less misleading, making its parameters
simpler, and adding some comments to explain how it works

behatnotneeded: Covered by existing tests that delete artefacts

Change-Id: I6091dd4f9cae541a01ddff315629066e0c9df1fb

Changed in mahara:
status: In Progress → Fix Committed
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.