Problem/Motivation
Splitting task from #2791619: Test Monitoring Mail with real examples, this issue is created to add the missing hook_requirements checking for the monitoring_mail recipient in the runtime phase.
Proposed resolution
Implement a check for the monitoring_mail recipient in a hook_requirements() in the runtime phase.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Screen Shot 2016-09-21 at 17.07.39.png | 11.94 KB | tduong |
| #7 | implement_monitoring_mail_requirements-2800051-7.patch | 4.32 KB | ginovski |
| #7 | interdiff-2800051-4-7.txt | 2.4 KB | ginovski |
| #4 | implement_monitoring_mail_requirements_2800051-4.patch | 4.29 KB | ginovski |
| #4 | interdiff-2800051-2-4.txt | 3.09 KB | ginovski |
Comments
Comment #2
tduong commentedMoved the code from the parent issue.
Comment #3
miro_dietikerRemove.
Other than that, this looks fine.
But additionally, hook_requirements are about critical integrity constrains. You want to test what hook_requirements return based on the invalid settings.
Comment #4
ginovski commented1.Added test.
2.Removed todo.
Comment #5
tduong commentedMaybe would be nice to have this as a clickable link, so this needs to be
Url::fromRoute()->setAbsolute()->toString().Please separate these steps you do in the test from the things you need set, just for readability.
Otherwise I guess it's alright.
Comment #6
berdir1. No, that has nothing to do with absolute, that just adds the domain. to make it clickable, add a link tag to the translatable string.
Comment #7
ginovski commentedAdded blank lines and the link in the monitoring settings.
Comment #8
tduong commentedOh, just checked and I noticed we should add a validation for this (?)
Comment #9
ginovski commentedCreated followups for mail validation and multiple recipients:
https://www.drupal.org/node/2807815
https://www.drupal.org/node/2807819
https://www.drupal.org/node/2807825
Comment #10
tduong commentedAlright, followups are there, and code looks fine for me.
@Ginovski, next time just remember to use
[#issue number]when you post a comment referencing to another issue instead of the link.