- Issue created by @lpeabody
- Open on Drupal.org βCore: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
11 months ago Not currently mergeable. - @lpeabody opened merge request.
- last update
11 months ago 37 pass - First commit to issue fork.
- last update
11 months ago 37 pass - @capysara opened merge request.
- Status changed to Needs review
11 months 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
11 months ago 37 pass - last update
11 months ago 37 pass - last update
11 months 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
8 months ago 37 pass - last update
8 months ago 37 pass - last update
4 months ago 37 pass - πͺπΈSpain Aaron Gil Martinez Zaragoza
Adding static patch for composer.
Created from: MR 12