Problem/Motivation
When an install profile lists this module to be installed, the following Exception occurs:
Drupal\Core\Config\UnmetDependenciesException: Configuration objects [error]
provided by <em class="placeholder">role_watchdog</em> have unmet
dependencies: <em
class="placeholder">views.view.role_watchdog_history
(user.role.administrator)</em> in
/var/www/html/web/core/lib/Drupal/Core/Config/UnmetDependenciesException.php:100
The issue is that the module contains a views configuration in config/install/, while the views configuration should be residing in `config/optional` as at the time of the profile install, views might or might not be installed.
Steps to reproduce
You may reproduce it with the following steps:
- Create a basic install profile *.info.yml, listing the following:
dependencies: - role_watchdog - Install the profile.
These steps should produce the error noted above.
Proposed resolution
Move all views configuration from `config/install/` to `config/optional/` folder.
Issue fork role_watchdog-3254694
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
vangelisp commentedComment #3
gaurav.kapoor commented+1 to this. @VangelisP are you working on patch or MR for this?
Comment #4
vangelisp commentedComment #6
vangelisp commented@gaurav.kapoor I've created an MR. I believe I did it right (fingers crossed)
Comment #7
gaurav.kapoor commentedThanks for working on this @VangelisP
Comment #8
vangelisp commentedThank you for the prompt response gaurav.kapoor !!