buddypress/tests/testcases
Mathieu Viet c447dc2c04 Insert a new "since" filter for the activity stream to be used by HeartBeat check feature
In rare cases, the field date_recorded of the activity table can be updated to a date greater than the most recent activity in terms of id.
The Heartbeat feature was based on the id field so far, while the activity stream is sorting items according to the date_recorded field. As a result, in this very particular case, activities with an id greater than the activity (which date has been updated) will be loaded again in the stream and this until a new activity is published.
To prevent this to happen, we introduce this new "since" filter to be used by the HeartBeat feature once it gets the timestamp of the most recent activity displayed in the stream.

props SGr33n, boonebgorges, imath

Fixes #5505

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8251 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2014-04-08 06:55:30 +00:00
..
activity Insert a new "since" filter for the activity stream to be used by HeartBeat check feature 2014-04-08 06:55:30 +00:00
admin In BP_UnitTestCase::create_user(), default to last_activity one year ago 2013-06-07 11:16:17 +00:00
blogs Use WP's array format for get_meta() functions when no $meta_key is provided 2014-03-14 01:04:58 +00:00
core Ensure bp_get_user_has_avatar() returns false when the default avatar is returned 2014-04-06 16:20:31 +00:00
friends Fix check for existing friendship in friends_add_friend() 2014-03-27 17:37:41 +00:00
groups Allow bp_get_group_has_avatar() to accept a group_id param 2014-04-06 16:20:35 +00:00
members Introduce Sign Ups Management 2014-03-13 00:58:28 +00:00
messages When a message is deleted, delete corresponding notifications 2014-03-09 19:46:01 +00:00
notifications Notifications: Invalidate cache when a notification is updated. 2014-03-27 19:04:30 +00:00
routing Add some basic unit tests for root_profiles routing. See #4954 2014-02-16 21:02:30 +00:00
url Improvements to BP_UnitTestCase::go_to() for WP < 3.9 2014-03-10 23:57:27 +00:00
xprofile Fix testcase for r8208 2014-03-30 18:46:48 +00:00