Problem/Motivation

Module is successfully installed. After creating a purge type configuration file, running a configuration import fails with the following error:

The import failed due to the following reasons:                                                                                                     
Unexpected error during import with operation create for entity_purge.type.my_entity_purge: The "" entity type does not exist.

Running the configuration import again is successful, and running purge operations of the imported type works as expected.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

krystalcode created an issue. See original summary.

alexpott made their first commit to this issue’s fork.

alexpott’s picture

Status: Active » Needs review

This is happening because the entity type provided by the module incorrectly identifies itself as being a config entity that provides a bundle type for some other entity type. It does not do that.

alexpott’s picture

I tested this on a clean install and after installing the dev version and changing to the bug fix branch there entity type definitions did not need updating so there's no upgrade path necessary here.

krystalcode’s picture

Status: Needs review » Fixed

- The initial intention to potentially have a content entity as well for logging purge operations as well. This is not supported for now, and it might never be.
- The "bundle" configuration property is a bit different, it is a property used by the Entity module and it has to do with making the PurgeType config entity "bundleable" via the PurgeConfigurator plugin. That's also not needed right now in this module so we're good to remove that as well.

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.