Update view's "last updated" time (mtime) when view block contents change

Bug #1411090 reported by Aaron Wells
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Aaron Wells

Bug Description

In a recent version of Mahara, we added the ability to sort one's display of views by the view's "last update" date. But the utility of this is limited because the view.mtime column is only updated when the view's description or tags are updated.

What we should do is update view.mtime whenever the view's contents (i.e. its blocks, or its block contents) are updated. Essentially, whenever a change to view would trigger a watchlist notification, it should also update the view's mtime.

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

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

Reviewed: https://reviews.mahara.org/4191
Committed: http://gitorious.org/mahara/mahara/commit/2197169dc15e3a250eb5031eafe9ca7d8a63fdb4
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 2197169dc15e3a250eb5031eafe9ca7d8a63fdb4
Author: Aaron Wells <email address hidden>
Date: Thu Jan 15 16:42:00 2015 +1300

Update view.mtime when a change triggers watchlist notification

Bug 1411090: If a change to a view is big enough to trigger a
watchlist notification, we should go ahead and updated view.mtime

Change-Id: I70c23c210a7b711035de88d3a916f4847d156882

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

We'd like to thank SWITCH for sponsoring this feature.

tags: added: nominatedfeature
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.