Page MenuHomePhabricator

Convert fa_deleted_user to fa_deleted_actor in filearchive table to allow deleting files by anon
Open, MediumPublic

Description

The filearchive table stores information about the deleting user as a reference to user id, which for all anonymous users is 0. Instead, it should refer to the user's actor id, to properly reflect the actions of anonymous users, which have actor ids.

Details

Reference
bz27615

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:27 PM
bzimport set Reference to bz27615.
bzimport added a subscriber: Unknown Object (MLST).

Need population script and Renameuser must update the new database field.

Reopen, because this field is needed to allow anon users delete a file or to create a maintaince script, which delete files wihtout a exiting user account. The field should be set only, when the fa_deleted_user field is 0, because than that is an anon user/system user.

Krinkle removed a subscriber: wikibugs-l-list.
Krinkle subscribed.

See also T29872#5348258. This likely is or soon will be obsolete with T167246.

See also T29872#5348258. This likely is or soon will be obsolete with T167246.

There is currently fa_actor and fa_deleted_user

fa_deleted_user is the user that deleted the file. Instead of adding a user text field, it should be replaced with a reference to the actor table

DannyS712 renamed this task from add fa_deleted_user_text to filearchive table to allow deleting files by anon to Convert fa_deleted_user to fa_deleted_actor in filearchive table to allow deleting files by anon.Sep 15 2020, 8:42 PM
DannyS712 updated the task description. (Show Details)
Umherirrender subscribed.

fa_deleted_user is the user that deleted the file. Instead of adding a user text field, it should be replaced with a reference to the actor table

It seems there are unused, it should be possible to drop - T297215