Follow account settings when deleting users to prevent unwanted content deletion (D8)

Created on 27 August 2020, almost 4 years ago
Updated 24 October 2023, 8 months ago

Problem/Motivation

Deleting users will delete any associated content.

Steps to reproduce

1. Create a feed type for user.
2. Select "Delete" for the option "Previously imported items"
3. Import the feeds to create a user.
4. Create a node and assign the author to the user created above.
5. Remove the user from the feed and import
6. The node is deleted

Proposed resolution

1. Provides radio options to allow users to select the approach that should be taken when deleting non-existing users.

User interface changes

Creates radio element to allow users to select the approach that should be taken when deleting non-existing users.

API changes

1. The class "EntityProcessorBase" now requires the service "ModuleHandler" as the 7th parameter in its constructor.

Data model changes

1. Adds new configuration "user_cancel_method".

Note:
See discussion in D7 issue: Follow account settings when deleting users to prevent unwanted content deletion β†’

✨ Feature request
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sker101 NYC

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡΅πŸ‡ΉPortugal jrochate

    This is still a nice to have feature on todays feeds state.

    Only realised that after having content permanently deleted when emptying items from an import feed :)

Production build 0.69.0 2024