[buddypress-trac] [BuddyPress Trac] #7523: Messages are not deleted from DB, when user is deleted

buddypress-trac noreply at wordpress.org
Wed Jan 3 22:54:50 UTC 2018


#7523: Messages are not deleted from DB, when user is deleted
--------------------------+-----------------------
 Reporter:  slaFFik       |       Owner:  r-a-y
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  3.0
Component:  Messages      |     Version:  1.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by johnjamesjacoby):

 I’d prefer we keep everything pristine if possible. What if we leave the
 user ID as is but add a piece of meta data that indicates the user was
 “deleted”?

 In a multisite instance, a user might be marked as deleted but not
 actually deleted. Also, changing the user ID reduces the integrity of the
 data, and then assigns every deleted message to a ghost user.

 Not to mention I don’t think our database tables do (so should) allow a
 negative number in those columns.

 A “user_status” meta key could then be used to communicate to the UI where
 appropriate that the author data of that message is not available in
 several ways, not just “deleted” but “hidden” or something else.

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


More information about the buddypress-trac mailing list