[buddypress-trac] [BuddyPress Trac] #7368: Allow activity stream to be sorted by most recently commented (was: Filter / sorting Activity stream)

buddypress-trac noreply at wordpress.org
Fri Dec 2 03:47:15 UTC 2016


#7368: Allow activity stream to be sorted by most recently commented
-----------------------------+----------------------------------
 Reporter:  Sweeny           |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Under Consideration
Component:  Activity         |     Version:  2.7.2
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+----------------------------------
Changes (by boonebgorges):

 * keywords:  dev-feedback =>
 * milestone:  Awaiting Review => Under Consideration


Comment:

 I agree that it'd be nice to be able to configure the "newest" behavior:
 "most recently posted" vs "most recently active" or something like that.
 Unfortunately, this is technically impossible at the moment: the way our
 activity data is stored, there's no way to sort by "most recently active"
 without actually bumping the `date_recorded` value on the top-level
 activity item. We'd probably need to introduce a `date_updated` column or
 something like that. Do others think that this is feasible?

 > What about adding a filter for return $comments in that method? We will
 be able to alter that array and reverse the order, for example.

 Sure, a filter on the return value of this method seems OK to me. I don't
 think it solves what @Sweeny is asking for, but I can see it being useful
 for other purposes.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7368#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list