Problem/Motivation
Right now if cron updates are enable(once we flip the feature flag), if you sites start fail the status checks there would be messages in the admin UI displayed from \Drupal\automatic_updates\Validation\AdminReadinessMessages::displayAdminPageMessages()
but if the admin doesn't come to the site often they would not alert via email. This means they could miss a critical security update they expected to be applied.
Proposed resolution
Send an email when cron updates go into state where there are likely not succeed anymore.
This would mean any time Status Checks start to flag errors or warning we should send an email.
Remaining tasks
Determine the exact behavior
Issue fork automatic_updates-3316611
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
tedbowComment #4
phenaproxima@tedbow and I talked about this and agreed on an architecture.
First, we only send emails if cron updates are enabled at all.
Secondly, we'll add a config switch to determine if emails should be sent. If that switch is disabled, we don't email.
Then we'll add another config switch to determine the minimum severity about which we should send emails (either errors or warnings).
Then, if all these conditions are true, we'll examine the current results against the previous results. If the severity is different, AND the severity is at least the configured minimum severity, we'll email.
Comment #6
tedbowComment #7
phenaproximaComment #8
phenaproximaTook some doing, but I've got your feedback addressed, @tedbow. Over to you!
Comment #9
tedbowComment #10
phenaproximaComment #11
phenaproximaComment #12
tedbowLooking good. Great test coverage!
Needs works for MR comments
Comment #13
tedbowComment #14
tedbowComment #15
phenaproximaComment #16
tedbowI really like the new
StatusCheckNotifierclass!Just few more things.
I hadn't thought before about the effect clearing the results would have the display on admin page.s
Comment #17
phenaproximaComment #18
tedbowJust 1 nit on a comment
Comment #19
phenaproximaComment #20
tedbow🐎🎉
Thanks!
Comment #22
phenaproximaAt last! Merged into 8.x-2.x.
Comment #23
wim leersThe test coverage here had some pretty significant issues that were masked by unrelated code: #3314137-21: Make Automatic Updates Drupal 10-compatible.