Skip to content

On user deletion associate releases to ghost user

What does this MR do and why?

On user deletion associate releases created by the user to Ghost user.

More context in description of #367522 (closed)

Migration of already existing records where the releases with nil author_id will be covered in a separate MR.

Screenshots or screen recordings

On Release Creation Screenshot_2022-11-29_at_6.09.26_PM

After User deletion Screenshot_2022-11-29_at_6.09.43_PM

How to set up and validate locally

  1. Create a couple of releases for a same user.
  2. Delete the user without deleting associating contributions.
  3. Now visit the releases on the releases page and the user name should be shown as Ghost as shown in the above screenshot.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #367522 (closed)

Edited by Bala Kumar

Merge request reports

Loading