User is not automatically removed from suggested approvers list if user is deleted.
- Zendesk ticket: https://gitlab.zendesk.com/agent/tickets/13328
Description of issue
When a user is added as a suggested approvers in a projects settings, an association is created that is not automatically deleted when the user gets deleted. This causes an exception when loading the projects settings of RecordNotFound
for the user_id
.
Result of replication
Just as described.
Concrete questions / Next steps
@vsizov can you please take a look at this? I tried to see how to fix this, but didn't find the best place for a dependent: :destroy
within the approvers.
/cc @JobV