- Issue created by @lpeabody
- Merge request !11Issue #3375308: Installing site from existing config fails when message_digest_ui module is part of the install → (Open) created by lpeabody
- Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Not currently mergeable. - last update
over 1 year ago 37 pass - First commit to issue fork.
- Merge request !123375308: add fields in hook update to prevent config import conflict with missing flag module entities. → (Open) created by capysara
- last update
over 1 year ago 37 pass - Status changed to Needs review
over 1 year ago 10:34pm 18 July 2023 - 🇺🇸United States capysara
I hit the same issue today, and I'm also not sure what would be the best way forward. I moved the problematic field addition into a hook_update instead of the hook_install. It worked on my set up, but I haven't tested it on a clean install yet.
I didn't test out the MR 11 because the description said it produce more errors.
- 🇺🇸United States lpeabody
The additional errors are coming from when the configuration sync process kicks in (after modules are installed) system action configuration is being synchronized but the plugin the action references does not have a definition as yet. So, really the only solution to this is making sure the definition exists before the sync process attempts to add the action configuration. I'm not sure at this point what it would take to ensure that.
- last update
over 1 year ago 37 pass - last update
over 1 year ago 37 pass - last update
over 1 year ago 37 pass - 🇺🇸United States lpeabody
I think MR11 is actually ready for review now. In a nutshell, it:
1. Checks the install hook to see if a sync operation is happening, and if it is then it does not bother with modifying configuration (since it is expected this will be taken care of when configuration synchronizes, after modules have been installed).
2. Adds configuration dependencies to the derived action plugins, including dependencies on the related digest interval and email flag.
3. Adds an update hook which re-saves all previously installed action configuration entities, which will ensure that dependencies are recalculated for each.With that in place if someone updates the module and then subsequently exports configuration, the exported action config entities which were previously causing a problem will have their dependencies updated and exported correctly. When installing from config again, the added dependencies will result in the action entities being synchronized in an order that will not generate any errors (because the dependencies have already been synchronized and generated the plugin that the action is dependent on).
- First commit to issue fork.
- last update
about 1 year ago 37 pass - last update
about 1 year ago 37 pass - last update
9 months ago 37 pass - 🇪🇸Spain aaron gil martinez Zaragoza
Adding static patch for composer.
Created from: MR 12 MR 11 Tested.
During configuration import, warning "Missing bundle entity, entity type flag, entity id email_node." was not received.
+1 for RTBC