Skip to content

[Bug 517762] [PMI] clean up nodes with user reference on account removal

Bugzilla Link 517762
Status NEW
Importance P3 normal
Reported Jun 02, 2017 18:00 EDT
Modified Sep 16, 2021 17:26 EDT
Blocks 517648
Reporter Darrell Armstrong

Description

when an account is removed, this leaves references to the uid that no longer exists.

a few options for this.

  1. ProjectRole node type author can be set to the user as they don't have edit access to this type. This should remove it on user_delete. This has the same downside as the next, which will may need to be implemented anyways.

  2. hook_user_delete. Manually sponge out nodes with fields of user reference.

caveats

  • You can still have invalid uid's if they are removed directly from the db
  • Will need to be updated if additional types are added or removed.
  1. cron script to perform period sanity scrub.
  • will also need to be updated for changes
  • time delay, depending on frequency