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

Bug #1411090 reported by Aaron Wells on 2015-01-15
This bug affects 4 people
Affects Status Importance Assigned to Milestone
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.

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) on 2015-01-30
Changed in mahara:
status: In Progress → Fix Committed

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

tags: added: nominatedfeature
Robert Lyon (robertl-9) on 2015-04-17
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers