Exclude entity types from purge (compatibility with Structure Sync)

Created on 23 May 2024, about 1 month ago

Problem/Motivation

Menus, taxonomy terms, and custom blocks are considered to be content in Drupal. This means they are purged when loading the content fixtures. Structure Sync β†’ is a module which can define these content entities as configuration. This means they should not be purged anymore when loading content fixtures.

As a workaround to this problem, one can simply re-run the Structure Sync import after each loading of the content fixtures. In my use-case, this would only waste time during testing because the synced structures are never changed in any test.

Proposed resolution

Implement a content type whitelist during purging. Content types in this whitelist would not be purged.

Remaining tasks

  1. Discuss whether this solution fits this module
  2. Review/refine solution
✨ Feature request
Status

Needs review

Version

3.1

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany tgauges

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024