Problem/Motivation
We committed the #2972224: Add .cspell.json to automate spellchecking in Drupal core yesterday which is great but unfortunately we'd introduced 2 spelling mistakes into core whilst that patch was at rtbc.
#2908079: Move some of the bootstrap.inc PHP-related constants to \Drupal and deprecate the old versions introduced whitescreen - which should be "white screen" - we already have an instance of that in core
and #2983395: user module's flood controls should do better logging introduced a service called "user.flood_subcriber"
As there is a misspelt service name in 9.1.x I've made this issue major as we have not released 9.1.x yet fixing this now without a deprecation is fine.
Proposed resolution
Fix the spellings.
Remaining tasks
None
User interface changes
None
API changes
None - the service is an event subscriber so it shouldn't really be a dependency of anything.
Data model changes
None
Release notes snippet
N/a
Comment | File | Size | Author |
---|---|---|---|
#2 | 3153790-2.patch | 1.17 KB | alexpott |
Comments
Comment #2
alexpottComment #3
vijaycs85glad we got it before its out :)
Comment #4
jungleAs the typo whitescreen was spotted by @alexpott who is a native English speaker, and it's in the comment, so it's good to me.
Confirmed this is a newly added service committed on June 9th, https://git.drupalcode.org/project/drupal/commit/9461f4a, but no new release since 3rd June, when 9.0.0 was released. So as @alexpott pointed "fixing this now without a deprecation is fine."
So if testing passes, this is RTBC to me.
Comment #5
alexpottFrom core/modules/help_topics/help_topics/system.config_error.html.twig - is the existing use of white screen... plus searching on google for whitescreen redirects to "white screen"
Comment #6
jungleIn fact, the typo was introduced by me per @xjm's comment https://www.drupal.org/project/drupal/issues/2908079#comment-13593641, as she is a native English speaker, that's why I did not take it as a typo even Grammarly did spot it for me as I could remember.
Comment #8
catchCommitted/pushed to 9.1.x, thanks!
Comment #9
xjmThe title of this issue is a lot broader than what it's actually doing.
Are there no tests for
user.flood_subscriber
?Also, there's a case to be made that "whitescreen" should instead be in the dictionary since this we are basically watching a compound word form in language for a Drupal developer conflict. (In the same way that "unserialize" is detected as a spelling error, but is obviously a programming term and acceptable as spelled.)
Comment #10
alexpottAs an event subscriber the service is never accessed by its name. It's the event subscriber tag that matters. Yes there are tests for the event - see core/modules/user/tests/src/Functional/UserLoginTest.php for example.