Opened 22 months ago
Closed 21 months ago
#9096 closed defect (bug) (fixed)
Data Loss Issue: Last Activity Deletion impact Member Directory and Friend List due to Repair member "last activity" data.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 12.4.0 | Priority: | normal |
| Severity: | normal | Version: | 2.0 |
| Component: | Activity | Keywords: | has-patch |
| Cc: |
Description
The bp_last_activity_migrate() function, designed to migrate last_activity data from the usermeta table to the bp_activity table, inadvertently leads to data loss. This occurs because the function first deletes existing last_activity data from the bp_activity table to avoid duplicates. However, since last_activity is no longer saved in the usermeta, this permanently loses last_activity information.
Two other people also have reported the same issue here https://buddypress.org/support/topic/unexpected-behaviour-with-friends-list-default-sorting/
We can also remove this option https://prnt.sc/ETlX7PjRMb-b
Change History (10)
This ticket was mentioned in Slack in #buddypress by vapvarun. View the logs.
22 months ago
#2
@
22 months ago
- Component changed from Core to Activity
- Milestone changed from Awaiting Review to 14.0.0
This ticket was mentioned in Slack in #buddypress by vapvarun. View the logs.
21 months ago
This ticket was mentioned in PR #258 on buddypress/buddypress by imath.
21 months ago
#7
- Keywords has-patch added; needs-patch removed
This tool was designed to be used in case a last_activity user meta migration went wrong during 2.0.0 uprade process. Since this version we stopped using this user meta in favor of a logging "hidden" activity entry.
As bp_admin_repair_last_activity() now only remove all trace of last active members without regenarating it. We are deprecating and stop using this function.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/9096
21 months ago
#9
This commit https://buddypress.trac.wordpress.org/changeset/13775 included the PR.
Ouch! That's pretty annoying