Problem/Motivation
Configuration supplied with the module , config/install/advanced_form.advancedformsettings.yml ,is useless and unused.
Module configuration is actually stored in advancedform.advancedformsettings .
Steps to reproduce
- Install this module (creates configuration entity
advanced_form.advancedformsettingsfrom config/install/advanced_form.advancedformsettings.yml) drush -y config:exportdrush -y config:import
This will result in:
Configuration advanced_form.advancedformsettings depends on the advanced_form extension that will not be installed after import. in Drupal\Core\Config\ConfigImporter->validate() (line 750 of /builds/yaGdakh4/0/xxx/yyy/web/core/lib/Drupal/Core/Config/ConfigImporter.php).
In ConfigImportCommands.php line 360:The import failed due to the following reasons: Configuration advanced_form.advancedformsettings depends on the advanced_form extension that will not be installed after import.
Proposed resolution
- Remove
config/install/advanced_form.advancedformsettings.yml - Rename
advancedform.advancedformsettingstoadvancedform.settings
Remaining tasks
- [x] Correct initial configuration state
- [ ] Implement post update hook to move existing settings
- [ ] Review
- [ ] Commit
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | advancedform-3269792-2.patch | 1.21 KB | rosk0 |
Issue fork advancedform-3269792
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
Comment #2
rosk0Patch
Comment #3
xurizaemonPatch does not remove invalid config/install yaml.
(This was addressed in MR to #3230827: Test fixes for 2.x)
Comment #4
xurizaemonComment #6
xurizaemonLooks like #3 was addressed via #3230827: Test fixes for 2.x.
Comment #8
xurizaemonComment #11
ericgsmith commentedWhile config appears to have been fixed outside of this MR a while ago the update from advancedformsettings to settings is still a good cleanup and makes sense.
Rebased the MR + fixed docblock for the update function looks good to me