Content Snapshot not populated when installing from configuration

Created on 6 May 2020, over 4 years ago
Updated 18 December 2023, about 1 year ago

When the module is installed during a configuration import, the content snapshot is not generated. This causes the export command to report there is no content to export when running the drush command.

How to reproduce:
1. Create a Drupal instance using Drush site:install ( for example ).
2. Use the Drush command to import a configuration which enables the module.
3. Execute "drush content-sync:export", it reports no entities to export.

Expected result:
The module should report for export, the default content generated in the default Drupal install ( admin user, shortcuts, etc ).

Actual result:
The module reports no content to be exported.

Workaround:
A workaround for this problem, involves uninstalling manually the module with "drush pmu content_sync", and to enable the module again. ( drush pme ). Then, the drush export command reports the correct content to export.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇪🇸Spain guiu.rocafort.ferrer Barcelona

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

Merge Requests

Comments & Activities

Not all content is available!

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

  • Merge request !4Reroll patch from #7 → (Open) created by Dimiter
  • First commit to issue fork.
  • 🇦🇺Australia geoffreyr

    I've made a few changes to the Merge Request as follows:

    1. The form save operation didn't vary the bundle key while performing the EntityQuery, ensuring that entity types that didn't use bundle key type would throw an exception. This has been changed to use the bundle key provided by the entity.
    2. Checks to make sure entities only get added to the snapshot queue once.
    3. Ensures that entity update/delete hooks take the new config into account, thereby skipping entities that aren't set to be included in snapshots.
Production build 0.71.5 2024