Problem/Motivation

Our interface text guidelines specify that the word "please" shouldn't be used in interface text: https://www.drupal.org/node/604342

A number have crept back in since #679890: Using "Please" in the interface.

Proposed resolution

Remove the word "please" from strings and code comments. Although, do not remove 'please' from any migrate test fixture.

Remaining tasks

Confirm the change for #24.13 which you can see in #38.
Update this issue if #2969406: Fix incorrect message after resetting password is fixed first.

Review
Commit

User interface changes

"Please" removed from numerous messages.

API changes

N/A

Data model changes

N/A

CommentFileSizeAuthor
#66 2921133-66.patch185.57 KBquietone
#66 interdiff-64-66.txt1.09 KBquietone
#65 Screenshot 2023-07-07 at 10.10.42 AM.png159.62 KBsmustgrave
#64 2921133-64.patch187.54 KBquietone
#64 interdiff-63-64.txt1.63 KBquietone
#63 2921133-63.patch185.76 KBquietone
#63 interdiff-60-63.txt2 KBquietone
#60 2921133-60.patch184.28 KBnikhil_110
#60 interdiff_58-60.txt8.71 KBnikhil_110
#58 2921133-58.patch175.88 KBquietone
#58 interdiff-56-58.txt1017 bytesquietone
#57 diff-38-56.txt4.29 KBquietone
#56 2921133-56.patch174.74 KBquietone
#38 2921133-38.patch174.61 KBquietone
#38 interdiff-35-38.txt3.51 KBquietone
#35 2921133-35.patch174.57 KBquietone
#35 interdiff-33-35.txt2.82 KBquietone
#33 2921133-33.patch174.21 KBquietone
#33 interdiff-31-33.txt76.99 KBquietone
#32 interdiff-27-29.txt4.34 KBquietone
#31 2921133-31.patch97.07 KBquietone
#31 interdiff-27-31.txt2.13 KBquietone
#29 Remove-Please-2921133-29.patch101.23 KBashutosh ahirwal
#27 2921133-27.patch96.97 KBquietone
#27 interdiff-22-27.txt23.82 KBquietone
#23 Screen Shot 2023-01-26 at 12.32.57 PM.png77.16 KBsmustgrave
#22 interdiff_2921133_19-22.txt21.03 KBankithashetty
#22 reroll_diff_2921133_5-22.txt154.06 KBankithashetty
#22 2921133-22.patch104.14 KBankithashetty
#19 2921133-19.patch101.83 KBprem suthar
#18 spellcheck.txt15.49 KBquietone
#18 2921133-18.patch277 bytesquietone
#5 interdiff-please-5.txt4.78 KBxjm
#5 please-2921133-5.patch76.35 KBxjm
#4 please-interdiff-3.txt31.18 KBxjm
#4 please-2921133-3.patch75.6 KBxjm
#2 please-2921133-1.patch44.42 KBxjm

Issue fork drupal-2921133

Command icon 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

xjm created an issue. See original summary.

xjm’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new44.42 KB

 

Status: Needs review » Needs work

The last submitted patch, 2: please-2921133-1.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

xjm’s picture

Status: Needs work » Needs review
StatusFileSize
new75.6 KB
new31.18 KB

With tests fixed.

xjm’s picture

StatusFileSize
new76.35 KB
new4.78 KB

Rewrapping rewrappable comments.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative

Searching the D10.1.x repo and found 44 instances of the word "please"
At this time this we will need a D10 version of the patch.

longwave’s picture

We might also be able to use cspell to prevent this from creeping back in again.

quietone’s picture

Issue summary: View changes
Issue tags: +Needs reroll
StatusFileSize
new277 bytes
new15.49 KB

Using cspell seems like a nice simple way to move forward. Let's see what using cpell would look like.

I added please to the 'flagwords' and ran spellcheck:core. The results are in the attached files. There are 139 instances of 'please' in 84 files. I have not looked at the files.

This now needs a reroll, that includes this change to cspell. I have updated the Issue Summary with details.

prem suthar’s picture

StatusFileSize
new101.83 KB

Added The Patch As per suggestion #18 and Remove all "Please" Word As Per #18 "spellcheck.txt".

prem suthar’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

There’s no interdiff in #19 and with all those changes it probably needs one. Keeping for reroll tag for the next person

ankithashetty’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new104.14 KB
new154.06 KB
new21.03 KB

Here is a rerolled patch, addressing the pointers from #18.

Addressed all the files shared in spellcheck.txt from #18, expect these, as this issue is focuses on removing 'Please' word only:

/var/www/html/core/tests/Drupal/KernelTests/Core/Config/ConfigCRUDTest.php:174:17 - Unknown word (derp)
/var/www/html/core/misc/cspell/dictionary.txt.rej:7:2 - Unknown word (getcode)
/var/www/html/core/misc/cspell/dictionary.txt.rej:8:2 - Unknown word (getfile)
/var/www/html/core/misc/cspell/dictionary.txt.rej:16:2 - Unknown word (herpderp)
/var/www/html/core/misc/cspell/dictionary.txt.rej:20:2 - Unknown word (inator)
/var/www/html/core/misc/cspell/dictionary.txt.rej:33:2 - Unknown word (vals)
/var/www/html/core/misc/cspell/dictionary.txt.rej:34:23 - Unknown word (viewsviewfiles)
/var/www/html/core/misc/cspell/dictionary.txt.rej:39:2 - Unknown word (vxezb)
/var/www/html/core/misc/cspell/dictionary.txt.rej:40:2 - Unknown word (vxfbk)

Thanks!

smustgrave’s picture

Status: Needs review » Needs work
StatusFileSize
new77.16 KB

Thank you @ankithashetty for all the work.

Applied the patch and I still see the word please 14 times.

Not sure if the migrate ones need to stay

And for the ckeditor5 one not sure if you can replace but have to build the plugins again which might be the error we seeing in the build

longwave’s picture

Some review comments:

  1. +++ b/core/INSTALL.sqlite.txt
    @@ -34,6 +34,6 @@ following in your "Database file" field:
    +downloaded. Check that the file is, indeed, protected by your webserver.
    +If not, Consult the documentation of your webserver on how to protect a
    

    This needs rewrapping and "consult" should not be capitalised.

  2. +++ b/core/assets/scaffold/files/drupal.INSTALL.txt
    @@ -1,3 +1,3 @@
    +Read core/INSTALL.txt for detailed installation instructions for your
     Drupal website.
    

    This needs rewrapping.

  3. +++ b/core/lib/Drupal/Core/Extension/module.api.php
    @@ -224,7 +224,7 @@ function hook_modules_installed($modules, $is_syncing) {
    + * Be sure that anything added or modified in this function that can
      * be removed during uninstall should be removed with hook_uninstall().
    

    Not sure this sentence makes sense, but perhaps this is out of scope. This needs rewrapping anyway.

  4. +++ b/core/lib/Drupal/Core/Render/Element/PathElement.php
    @@ -63,7 +63,7 @@ public static function validateMatchedPath(&$element, FormStateInterface $form_s
    -          $form_state->setError($element, t('You cannot use an external URL, please enter a relative path.'));
    +          $form_state->setError($element, t('You cannot use an external URL, enter a relative path.'));
    

    This is probably better off as two sentences: "You cannot use an external URL. Enter a relative path."

  5. +++ b/core/lib/Drupal/Core/Render/theme.api.php
    @@ -1184,7 +1184,7 @@ function hook_page_bottom(array &$page_bottom) {
    + *     set, this can be set to true. Keep in mind that when this is used
      *     by a theme, that theme becomes responsible for making sure necessary
      *     variables are set.
    

    This needs rewrapping.

  6. +++ b/core/misc/ajax.js
    @@ -387,7 +387,7 @@
    -        message: Drupal.t('Please wait...'),
    +        message: Drupal.t('Wait...'),
    

    I am not sure that "Wait..." makes much sense on its own, I feel users are used to seeing "Please wait", so not sure what to do here.

  7. +++ b/core/misc/drupal.js
    @@ -486,11 +486,11 @@ window.Drupal = { behaviors: {}, locale: {} };
    +   *   The string for the singular case. Make sure it is clear this is
        *   singular, to ease translation (e.g. use "1 new comment" instead of "1
        *   new"). Do not use @count in the singular string.
    

    This needs rewrapping.

  8. +++ b/core/misc/drupal.js
    @@ -486,11 +486,11 @@ window.Drupal = { behaviors: {}, locale: {} };
    +   *   The string for the plural case. Make sure it is clear this is
        *   plural, to ease translation. Use @count in place of the item count, as in
        *   "@count new comments".
    

    And again.

  9. +++ b/core/modules/file/file.module
    @@ -134,10 +134,10 @@ function file_validate_name_length(FileInterface $file) {
    +    $errors[] = t("The file's name is empty. Give a name to the file.");
    

    "Give a name to the file" doesn't read well. Maybe "Ensure the file has a name."? Though, I'm not sure how this could even happen.

  10. +++ b/core/modules/file/tests/file_module_test/src/Form/FileModuleTestForm.php
    @@ -42,7 +42,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $tree = T
    +      '#progress_message' => $this->t('Wait...'),
    

    See above comments on "Please wait", we should be consistent whatever we choose.

  11. +++ b/core/modules/jsonapi/src/ResourceType/ResourceTypeRepository.php
    @@ -453,7 +453,7 @@ protected function getRelatableResourceTypesFromFieldDefinition(FieldDefinitionI
    +            'The "%s" at "%s:%s" references the "%s:%s" entity type that does not exist. Take action.',
    

    I think we should remove "Take action" entirely, as it doesn't give me any clues as to what action to take.

  12. +++ b/core/modules/system/src/Form/ModulesUninstallConfirmForm.php
    @@ -143,7 +143,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
    +      $this->messenger()->addError($this->t('The selected modules could not be uninstalled, either due to a website problem or due to the uninstall confirmation form timing out. Try again.'));
    

    Not sure "Try again" is necessary, the user might not want to try again.

  13. +++ b/core/modules/user/src/Controller/UserController.php
    @@ -248,7 +248,7 @@ public function resetPassLogin($uid, $timestamp, $hash, Request $request) {
    +    $this->messenger()->addStatus($this->t('You have just used your one-time login link. It is no longer necessary to use this link to log in. Set your password.'));
    

    "Set your password" feels a bit too direct but not sure what would improve it.

  14. +++ b/core/modules/views/tests/src/Functional/Plugin/ExposedFormCheckboxesTest.php
    @@ -158,14 +158,14 @@ public function testExposedIsAllOfFilter() {
    +    $this->assertSession()->pageTextNotContains('An illegal choice has been detected. contact the site administrator.');
    ...
    +    $this->assertSession()->pageTextNotContains('An illegal choice has been detected. contact the site administrator.');
    

    contact -> Contact

  15. +++ b/core/tests/Drupal/Tests/Traits/PhpUnitWarnings.php
    @@ -32,7 +32,7 @@ trait PhpUnitWarnings {
    -    'The at() matcher has been deprecated. It will be removed in PHPUnit 10. Please refactor your test to not rely on the order in which methods are invoked.',
    +    'The at() matcher has been deprecated. It will be removed in PHPUnit 10. Refactor your test to not rely on the order in which methods are invoked.',
    

    This comes from PHPUnit itself, so we will have to ignore this instance of "please" by adding // cspell:ignore-next-line above it.

smustgrave’s picture

Also see changes to composer files is that something we should avoid?

longwave’s picture

No, those are our Composer plugins and extensions, those are OK to modify.

quietone’s picture

Title: "Please" has crept back into the codebase » Remove "Please" from the codebase
Status: Needs work » Needs review
Issue tags: +cspell error
StatusFileSize
new23.82 KB
new96.97 KB

I think I did everything in #24, except for 6 and 10.

I also ran spellcheck on core and added changes for options_test.module and OptionsWidgetsTest.php.

Adding tag because cspell is being used to fix this.

smustgrave’s picture

Status: Needs review » Needs work

Appears to have a build failure.

But applied patch #27 and searched for "please"

'You no longer please the robot overlords. Go to your room and chill out

This was good and whoever wrote that kudos haha

There is an instance of please in migrate_drupal test fixture drupal6.php.

ashutosh ahirwal’s picture

StatusFileSize
new101.23 KB

Providing patch for review.

quietone’s picture

Assigned: Unassigned » quietone

@Ashutosh Ahirwal, Thank you for your assistance on this issue!
When making changes to a patch always add an interdiff so reviewers can see what has been changed. See Creating an interdiff.
Starting March 2023, simple rerolls, rebases, or merges will no longer receive issue credit. Only rerolls that address a merge conflict will be credited, and the merge conflict that was resolved must be documented in the text of an issue comment.
To receive credit for contributing to this issue, assist with other outstanding tasks or unaddressed feedback.
See the issue credit guidelines for more information.

I am uploading an interdiff.

This issue is using cspell to find instances of "Please" so that should be used to find remaining instances and not grep or ag. Cspell has a defined set of ignored paths in cspell.json. The changes in the latest patch are to ignored files and directories and also reverting the fix made in PhpUnitWarnings (#24-15). See #3122088: [Meta] Remove spelling errors from dictionary.txt and fix them for working with cspell.

I think we need to restart from #27 and check what still needs to be done in #24.

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new2.13 KB
new97.07 KB

I rewrapped a few lines and made a change for a failing test.

#24
13 - The change needs to be agreed to.
6, 10 - Todo. This is the 'Please wait..." text. It appears in ajax.js, FileModuleTestForm.php, media_library.ui.js and theme-settings.php

quietone’s picture

StatusFileSize
new4.34 KB

Here is the interdiff I forgot to upload in #30.

quietone’s picture

StatusFileSize
new76.99 KB
new174.21 KB

Maybe this needs a yarn:build first.

Status: Needs review » Needs work

The last submitted patch, 33: 2921133-33.patch, failed testing. View results

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new2.82 KB
new174.57 KB

Changes to fix the errors.

quietone’s picture

Issue summary: View changes
vladimiraus’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

quietone’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new3.51 KB
new174.61 KB

@VladimirAus, thanks. Did you see the questions in #31 and the issue summary?

I asked in #ux about #24.6 and 10. benjifisher suggested with 'Processing' and dww suggested several humorous options including 'Wait!'. Instead of those I changed the patch to use 'Processing...'.

+++ b/core/modules/user/src/Controller/UserController.php
@@ -248,7 +248,7 @@ public function resetPassLogin($uid, $timestamp, $hash, Request $request) {
-    $this->messenger()->addStatus($this->t('You have just used your one-time login link. It is no longer necessary to use this link to log in. Please set your password.'));
+    $this->messenger()->addStatus($this->t('You have just used your one-time login link. It is no longer necessary to use this link to log in. It is recommended that you set your password.'));

And do we agree to this change?

vladimiraus’s picture

My Canon printer says: "Please wait momentarily" 🖨️ 😆
But few suggestion I got from other projects:

  • Processing request...
  • Loading data, this may take a moment...
  • Calculating results, almost there...

But the best I think was "Wait a moment..." instead of "Please wait..." to address 24.6 and 24.10

vladimiraus’s picture

Moved to MR.

quietone’s picture

Issue tags: +Needs usability review

I am tagging this for a Usability review to confirm the changes in text, particularly the 'Please wait...'.

quietone’s picture

Status: Needs review » Needs work
quietone’s picture

Assigned: quietone » Unassigned
Issue summary: View changes
Status: Needs work » Needs review

I am a bit confused here. The MR has removed a change recommended by an active member doing usability reviews, which I think we should follow. The change to ajax.js changed one occurrence of the original 'Please wait' string and not the other without explanation. The MR has also introduced changes to the migrate test fixtures which should not be changed. I have updated the Issue Summary to make that clear.

As far as I can tell the patch in #38 is what should be reviewed.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Applying #38 and searching for please. Only occurrences I found came from node_modules (local install), ckeditor5, and text fixtures.

So assuming that's fine.

Added // please to a random file and ran the code-commit script and cspell correctly caught that as a forbidden word..

benjifisher’s picture

In #38, @quietone mentioned that we discussed this issue on Slack. Here is the reason I gave for suggesting "Processing" rather than "Wait":

I would rather convey information than tell or request the user to do something.
If this is a generic message for processing a form, then I would use something like

Processing ...

or else a full sentence:

The form is processing.

If we can be more specific, then we should.

Personally, I get a little annoyed when my machines tell me what to do (wait) even if they try to be polite about it (please wait).

aaronmchale’s picture

Issue tags: -Needs usability review

Usability review

We reviewed this issue at #3357221: Drupal Usability Meeting 2023-05-05, that issue will have a link to the recording.

For the record, the attendees at today's usability meeting were @AaronMcHale, @benjifisher, @rkoller, @simohell, and @yoroy.

The group is supportive of this issue and endorses the effort to remove the word "please".

The group previously reviewed #2969406: Fix incorrect message after resetting password and made a recommendation on what the wording should be for the status message after clicking a one-time login link. See that issue for more rational behind the specific wording of the recommendation. That recommendation is:

"You have logged in with your one-time login link. Set your new password now, it is not possible to use this link a second time."

The group recommends keeping that issue open as it is at RTBC, and recommends leaving it to the core committers to decide which order to commit these two issues in. If this issue is committed first, then that one will need to be rerolled, if that issue is committed first then this issue will need to remove any changes to that message.

aaronmchale’s picture

benjifisher’s picture

Issue summary: View changes

I am adding a link to #2969406: Fix incorrect message after resetting password in the "Remaining tasks" section.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

dpi’s picture

Status: Reviewed & tested by the community » Needs work

Despite the MR displaying as green above, it is in fact red: https://www.drupal.org/pift-ci-job/2633148

Looks like new coverage from #3354606: Datetime field name missing from validation error message is affected by the changes here.

longwave’s picture

Status: Needs work » Reviewed & tested by the community

Fixed DateTimeFieldTest.

quietone’s picture

Assigned: Unassigned » quietone
Status: Reviewed & tested by the community » Needs work

@dpi, thanks for checking on this issue. However, the Issue Summary states that is is the patch in #38 that is to be reviewed, not the MR.

Now, it turns out that the patch does not apply anymore. I am setting this to NW and assigning to myself to sort out later.

longwave’s picture

Issue summary: View changes
Status: Needs work » Reviewed & tested by the community

To me it looks like the MR is the more up to date one. I have hidden all the patches and completed the task, confirming that the change from #24.13 is still in the MR. I think the MR is ready to commit but a final review would be welcome.

quietone’s picture

Status: Reviewed & tested by the community » Needs work

The MR may be later but it introduced errors. For one, it is making changes to the drupal7.php migration test fixture. It is also changing the recommendations from the UX review. I think all these are noted in the 5 unresolved comments on the MR.

quietone’s picture

Issue summary: View changes
StatusFileSize
new174.74 KB

This rerolls the patch from #38.

quietone’s picture

StatusFileSize
new4.29 KB

Uploading the diff (which I thought I did).

quietone’s picture

Assigned: quietone » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1017 bytes
new175.88 KB

Now repeat #52

smustgrave’s picture

Status: Needs review » Needs work

Applying the patch and searching for "please" seems there are some new ones to replace

web/core/modules/media_library/src/Form
web/core/modules/sdc/src/Twig
web/core/modules/sdc/tests/src/Kernel
web/core/tests/Drupal/Tests/Traits

Ignored the matches from vendor and migrate tests.

nikhil_110’s picture

Status: Needs work » Needs review
StatusFileSize
new8.71 KB
new184.28 KB

I have updated the patch with latest update suggested by @smustgrave, I would appreciate if someone can review these updates and provide feedback

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Think this round is good to go.

longwave’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

#60 doesn't apply to 11.x.

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new2 KB
new185.76 KB

Here is the re-roll.

But I discovered there is more work to do here. \Drupal\Tests\options\Functional\OptionsFieldUITest has three asserts as shown.

$assert_session->pageTextNotContains('Please wait');
Now that Please has been removed this will always pass.

quietone’s picture

StatusFileSize
new1.63 KB
new187.54 KB

I think the string should be changed to 'Processing...'.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs reroll
StatusFileSize
new159.62 KB

Searching for "please" I only find references in fixtures and Migrate tests which I'm assuming is fine

please

quietone’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.09 KB
new185.57 KB

Rerolled.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

There a chance this could get merged? Seems it stays needing to be rerolled

longwave’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/tests/Drupal/Tests/Traits/PhpUnitWarnings.php
@@ -32,7 +32,8 @@ trait PhpUnitWarnings {
+    'The at() matcher has been deprecated. It will be removed in PHPUnit 10. Refactor your test to not rely on the order in which methods are invoked.',

This line can't change, because the message comes from upstream PHPUnit (this is why we added cspell:disable-next-line above it).

longwave’s picture

Status: Needs work » Fixed

Actually, to save this going round again, I can just fix this on commit:

--- a/core/tests/Drupal/Tests/Traits/PhpUnitWarnings.php
+++ b/core/tests/Drupal/Tests/Traits/PhpUnitWarnings.php
@@ -33,7 +33,7 @@ trait PhpUnitWarnings {
     'assertDirectoryNotIsWritable() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertDirectoryIsNotWritable() instead.',
     'assertFileNotIsWritable() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertFileIsNotWritable() instead.',
     // cspell:disable-next-line
-    'The at() matcher has been deprecated. It will be removed in PHPUnit 10. Refactor your test to not rely on the order in which methods are invoked.',
+    'The at() matcher has been deprecated. It will be removed in PHPUnit 10. Please refactor your test to not rely on the order in which methods are invoked.',
     // PHPUnit 9.6.
     'Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.',
     'Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10.',

This is not eligible for backport to 10.1.x due to user-facing string changes.

Committed 224c673 and pushed to 11.x. Thanks!

  • longwave committed 224c6734 on 11.x
    Issue #2921133 by quietone, VladimirAus, xjm, ankithashetty, longwave,...
quietone’s picture

@longwave, thank you for fixing that on commit!

quietone’s picture

This needs a followup because spellcheck was not run on core. Followup, #3357565: Remove remaining uses of string 'bartik' and 'seven' when referring to the removed themes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

wim leers’s picture

FYI: this is disruptive for contrib. It caused the test suite for https://www.drupal.org/project/big_pipe_sessionless to fail, because it was explicitly testing an edge case that resulted in a call to _drupal_log_error(), which generated a message that includes this "please".