Fix spelling for words used once, beginning with 'n' -> 'p', inclusive

Created on 18 June 2021, over 3 years ago
Updated 1 August 2023, over 1 year ago

Problem/Motivation

Limit this to one line easy fixes, avoid any possible controversy, or any change that would better fit with other words, such as doing chien and chiens in the same patch.

The list of words beginning with n -> p, inclusive, that are used once in one file .

Proposed resolution

Remove the following from dictionary.txt

  1. -ndelay
  2. -nocdata
  3. -noemptytag
  4. -noevent
  5. -nonamespace
  6. -nonexistingfilename
  7. -nothere
  8. -omitscript
  9. -overridetest
  10. -pageable
  11. -pageviews
  12. -phpunit's
  13. -powriter
  14. -preconfigure
  15. -precreated

Remaining tasks

Review
Commit

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Other 

Last updated about 4 hours ago

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

  • Status changed to Needs review over 1 year ago
  • 🇺🇸United States smustgrave

    #22 no longer applied with
    error: patch failed: core/lib/Drupal/Core/Database/StatementPrefetch.php:3
    error: core/lib/Drupal/Core/Database/StatementPrefetch.php: patch does not apply

  • Status changed to Needs work over 1 year ago
  • 🇺🇸United States dww

    Mostly looking good, but a few problems remain:

    1. +++ b/core/lib/Drupal/Core/Config/ConfigFactoryOverrideInterface.php
      @@ -36,7 +36,7 @@ public function getCacheSuffix();
      -   * and synchronization to use the overrider's implementation of
      +   * and synchronization to use the overriding _____'s implementation of
      

      Uhhh, @xjm was suggesting we fill this in with the right noun, not leave a bunch of blanks in the comment. 😂

      That said, given the rest of the comment, I'm not sure the suggestion is the way to go. I honestly think "overrider's implementation" makes the most sense, unless we completely rewrite this entire comment.

    2. +++ b/core/lib/Drupal/Core/Database/StatementPrefetch.php
      @@ -8,7 +8,7 @@
      + * An implementation of StatementInterface that will pre-fetches all data.
      

      "that will pre-fetches all data." isn't grammatically correct.

      Either needs:

      "that will pre-fetch ..."
      or
      "that pre-fetches ..."
      but not both.

    3. +++ b/core/lib/Drupal/Core/Routing/RoutePreloader.php
      @@ -11,7 +11,7 @@
      + * Defines a class that can pre-loads non-admin routes.
      

      Also not right.
      "that can pre-load ..."

  • Status changed to Needs review over 1 year ago
  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    29,283 pass
  • 🇮🇳India Vidushi Mehta

    Addressing #26

  • Status changed to Needs work over 1 year ago
  • 🇺🇸United States smustgrave

    Think a file or two may be missing.

    Hard to tell as the interdiff is the same as the patch.

  • Status changed to Needs review over 1 year ago
  • 🇺🇸United States rpayanm

    I checked the patches (#25 and #27) and they are the same except the interdiff attached here.

  • Status changed to RTBC over 1 year ago
  • 🇺🇸United States smustgrave

    Thanks!

    • catch committed f1e19f22 on 10.1.x
      Issue #3219513 by smustgrave, quietone, sourabhjain, Vidushi Mehta,...
  • Status changed to Fixed over 1 year ago
  • 🇬🇧United Kingdom catch

    Committed/pushed to 10.1.x, thanks!

    • quietone committed 3bafeb49 on 10.1.x
      Revert "Issue #3219513 by smustgrave, quietone, sourabhjain, Vidushi...
  • Status changed to Needs work over 1 year ago
  • 🇳🇿New Zealand quietone

    Discovered while working on 🐛 Fix spellcheck:make-drupal-dict Fixed that this has introduced an error in the dictionary.txt file.

    +++ b/core/misc/cspell/dictionary.txt
    @@ -839,16 +831,11 @@ outdent
    -overrider's
    

    This was removed from the dictionary but the word remains in the code base.

    So, what needs to happen it to apply the patch and then run cd core; yarn spellcheck:drupal-make-dict to make sure the dictionary is correct. See https://www.drupal.org/docs/develop/development-tools/cspell

  • 🇮🇳India Vidushi Mehta

    I've run this command but it throwing error with the command failed and my dictionary got blanked.

  • Status changed to Needs review over 1 year ago
  • last update over 1 year ago
    29,908 pass
  • 🇳🇿New Zealand quietone

    @Vidushi Mehta, what was the error?

    I rerolled the patch. The only conflict was dictionary.txt

    I also removed the removal of 'postbar' because that one of four similar constants defined in \Drupal\Tests\Component\EventDispatcher\ContainerAwareEventDispatcherTest all of which are in the dictionary. I think that should be done in another spelling issue because the other constants are used more than once, which is outside the scope of this issue.

  • 🇳🇿New Zealand quietone

    Update word list in the IS.

  • Status changed to RTBC over 1 year ago
  • 🇺🇸United States smustgrave

    Applied #37 and ran spellcheck:make-drupal-dict and didn't get any additional changes.

  • 🇮🇳India Vidushi Mehta

    @quietone, The reason for the error was that Windows uses a different syntax for setting environment variables compared to Unix-based systems, The LC_ALL environment variable is specific to Unix-based systems, and it is not recognized in the same way on Windows which throws an error and its forcefully removing the content from the dictionary.txt file.

    Working fine on Linux RTBC+1

    Thanks for the reroll

    • longwave committed 031f63e7 on 11.x
      Issue #3219513 by quietone, smustgrave, Vidushi Mehta, sourabhjain,...
  • Status changed to Fixed over 1 year ago
  • 🇬🇧United Kingdom longwave UK

    Committed 031f63e and pushed to 11.x. Thanks!

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

Production build 0.71.5 2024