[go: up one dir, main page]

Skip to content

Create missing rails association for database relationships for table Users - group::project management

Authentication team is working on epic Detect when user deletion does not delete an association with batched deletes , which was created as a corrective action for the incident - #490689 (comment 2120669411)

We need to make sure there are no foreign keys to Users table without an association and dependent: clause defined at model level.

Right now there are many such foreign-key. Please refer this issue - #565455 (closed). Most of the foreign-keys are being taken care of by groupauthentication but still there are few foreign-keys which I feel should be taken care-of by the respective team since these foreign-keys do not belong to Users only and are mostly storing user-id for auditing purpose .. so not sure if we should actually destroy these relations as soon as the User is deleted.

Following foreign keys are missing relationship declaration in Users model. This is important to have all the relations defined for Users table, since missing dependent: destroy clause for each foreign key -

custom_fields, lists, work_item_custom_lifecycles, work_item_custom_lifecycles

Edited by 🤖 GitLab Bot 🤖