Problem/Motivation
Add new plugin to show message if there are any warnings/errors on the /admin/reports/status page.
Proposed resolution
Create new plugin and have its own config form so that you can choose to show only errors and/or warnings.
Remaining tasks
create patchreview patch- commit patch
User interface changes
The new plugin will show up in the list of allowed messages with a config form.
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | Screen Shot 2016-06-07 at 11.56.44 AM.png | 257.21 KB | kristen pol |
| #8 | interdiff-2689547-4-8.txt | 9.52 KB | chrisdarke |
| #8 | admin_status-system_report-2689547-8.patch | 4.97 KB | chrisdarke |
| #7 | interdiff-2689547-4-7.txt | 8.98 KB | vinay15 |
| #7 | 2689547-7.patch | 4.69 KB | vinay15 |
Comments
Comment #2
kristen polComment #3
chrisdarke42 commentedWrote out this plugin, then we realised we needed to change AdminStatus to deal with multiple messages per plugin. Will release once AdminStatus is patched from the relevant ticket
Comment #4
chrisdarke42 commentedBased off of the patched version of Admin Status (https://www.drupal.org/node/2722667) that allows for multiple messages for a single plugin instance, here is the patch for this Status Report plugin.
Comment #5
kristen polThanks! Here are some nitpicks:
I'm not sure it should be called "Error" since aren't there warnings too? Maybe CoreStatusReport? I don't remember what other have been named so far.
What is the "m" in "statem"?
Extra line.
Extra line.
Maybe 'error' => 'message_type' or something?
Add a comment why there is no validation done.
Needs doc block.
Space after switch.
Description needed.
Space after switch.
Space after if.
Comment #6
kristen polComment #7
vinay15Tried updating the patch.
Comment #8
chrisdarke commentedThanks for Vinay15 for your patch, very close, there were some details that needed correcting however. Here is a patch and interdiff from the original patch, with the variable name corrected as I meant it to be, and the descriptions, spacing etc as Kristen Pol commented on.
Comment #9
kristen polThanks, @ChrisDarke . That interdiff doesn't appear to be correct.
@Vinay15 - Chris is actively working on this issue (it's assigned to him) but there are other issues that can be worked on. Please check the issue queue for those. Or, if you have ideas for adding new plugins, please open an issue with those ideas. Thanks!
Comment #10
kristen polI have tested on simplytest.me and it is showing the warnings/errors as expected.
Comment #11
kristen polI have reviewed the code and have tested the feature using all the checkboxes in on vs off combinations and it works as expected. Marking RTBC. Thanks!
Comment #12
kristen polComment #13
kristen polComment #15
kristen polThis has been committed! Thanks.