Skip to content

User deletion fails if user authored audit events #923

@nicosammito

Description

@nicosammito

We should create a ghost user and replace it within all user related things.
The users namespace and all associated projects and flows should be deleted.

Currently we have audit events with autors, entities and targets.
When deleting an author (e.g. a user) we should assign it to an ghost user to keep the foreign key of audit_event.author -> user.
This user can be created using a global seeder, see "db/fixtures/01_application_settings.rb"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

System

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions