Problem/Motivation
We noticed this, when we uninstalled the captcha module and the captcha sensor remained.
Steps to reproduce
- Install the captcha module.
- `drush cget monitoring.sensor_config.captcha_failed_count` and confirm that monitoring.sensor_config.captcha_failed_count has the dependency on captcha
- Edit the captcha_failed_count sensor and save it.
- `drush cget monitoring.sensor_config.captcha_failed_count` again and there will be no captcha dependency
Proposed resolution
Discussed this with @Berdir: "it's ugly, but I fear the only option here is a loop over all modules, then load the isntall file, then check if the hook exists and invoke it"
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork monitoring-3460176
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 #3
primsi commentedI added a test, but didn't run it locally (because of some issue with running phpunit tests). Let's see how it goes.
Comment #4
berdirComment #5
primsi commentedThx for the review. Addressed both comments.
Comment #7
berdirMerged.