mconf-web icon indicating copy to clipboard operation
mconf-web copied to clipboard

Recent activity for join requests lose reference to space when a user is removed/disabled

Open mconf-daileon opened this issue 8 years ago • 0 comments


Author Name: Leonardo Daronco (Leonardo Daronco) Original Redmine Issue: 1954, http://dev.mconf.org/redmine/issues/1954


When a user is disabled or removed, all recent activities created for join requests associated with this user will lose reference to the space associated with the join request. So the activities that were:

John Doe has requested to join the space Mconf

Will end up as:

John Doe has requested to join a space that doesn't exist anymore

That happens because the recent activity has a reference only to the join request, and the join requests associated with a user are removed when a user is disabled/removed. See https://github.com/mconf/mconf-web/blob/v2.1.0/app/models/user.rb#L54

The recent activity stores the username in its parameters, so its not lost when the user is disabled/removed. But it doesn't store the space's name.

mconf-daileon avatar May 08 '16 16:05 mconf-daileon