Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
base system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 May 2017 at 13:25 UTC
Updated:
1 Jun 2017 at 14:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
zengenuity commentedAttached patch restores warning and errors for general info items, if they have severity >= REQUIREMENTS_WARNING. This makes them appear in the Errors Found and Warnings Found sections, though it does also duplicate the text in the general info section at the top.
Comment #3
bander2 commentedI was able to reproduce both the PHP Memory limit and cron issues. The patch applied cleanly and fixes the issue.
Comment #4
alexpottFor me this is a major usability bug because you are been told there is an error but the error is not listed in the expected place.
We could just replace all of this with
// Intentional fall-through.. So the entire switch statement would look like this:I think this would make the code less brittle because there is less duplication right next to each other.
\Drupal\Tests\system\Functional\System\StatusTest. A way to cause the cron requirement error is to do\Drupal::state()->set('system.cron_last', 0)in the test.Comment #5
zengenuity commentedI've made the suggested changes, and added test code to
\Drupal\Tests\system\Functional\System\StatusTest.Comment #6
alexpott@zengenuity nice work!
I've run the test locally - without the fix it fails
@zengenuity when writing a test for a bug fix such as this it's great t upload a test-only patch too. However, you need to ensure that the patch with the fix is the last one on the issue so that the automated rtbc retest works as expected (it assumes the last patch on the issue is rtbc).
Comment #7
lomo commentedTests-only patch separated out from #5
Comment #8
lomo commentedWe should see the test-only patch fail (#7) and this patch (same as #5, just renamed), should get us an RTBC-worthy test result. :-)
Comment #10
lomo commentedI think this is looking good for RTBC. ;-)
Comment #13
catchCommitted/pushed to 8.4.x and cherry-picked to 8.3.x. Thanks!