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
- -ndelay
- -nocdata
- -noemptytag
- -noevent
- -nonamespace
- -nonexistingfilename
- -nothere
- -omitscript
- -overridetest
- -pageable
- -pageviews
- -phpunit's
- -powriter
- -preconfigure
- -precreated
Remaining tasks
Review
Commit
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #40 | error.png | 28.89 KB | Vidushi Mehta |
| #37 | 3219513-37.patch | 15.93 KB | quietone |
| #37 | diff-27-37.txt | 2.97 KB | quietone |
| #29 | interdiff-25-27.txt | 2.02 KB | rpayanm |
| #27 | interdiff_25-27.txt | 16.32 KB | Vidushi Mehta |
Issue fork drupal-3219513
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
Comment #2
quietone commentedThis is just the 'n' words.
Comment #3
quietone commentedAdd 'o' and 'p'.
Comment #4
quietone commentedAn easy reroll.
Comment #6
longwaveThis one applies apart from to dictionary.txt, so should be fairly easy to reroll.
Comment #7
quietone commentedRerolled and run spellcheck on core.
Comment #10
quietone commentedAdding tag for the cspell spelling error issues.
Comment #12
smustgrave commentedPatch no longer applies to 10.1
If someone doesn't beat me to it I can update later today.
Comment #13
smustgrave commentedRerolled for D10
Comment #14
longwaveTwo nits, otherwise this looks good:
"overrider" is a word, one who overrides? This looks off to me with the added hyphen. I think this one should be ignored instead.
This is a single constant in the file but it doesn't actually seem to be used, maybe we can just remove it?
Comment #15
smustgrave commentedAddressed point #14.1 with "overriders" sounded right when I said it out loud at least
#14.2 it's actually used as the name of a variable on the page.
Comment #16
longwaveFor #14.2 I see it's used as
const POSTBAR = 'post.bar';but this looks like dead code, so we can remove it and the ignore?Comment #17
gaurav-mathur commentedPatch #15 is working fine for me in drupal version 10.1.x and fixing word (n to p),
i refer to txt file after patch apply
Thank you.
Comment #18
smustgrave commented@longwave you are correct. Removed the variable cspell line.
Comment #19
longwaveThanks, this looks ready to go.
Comment #20
xjmThanks for working on this spelling issue! I have a number of corrections, plus two suggestions for things that should get their own issues.
"NTFS" is a legitimate technology term for a file system. I think we should retain it in the dictionary.
This is not a grammatically correct change. I would suggest "the overriding _____'s implementation" (insert the correct noun).
"prefetch" is not correct if "prefetches" isn't. It should instead be hyphenated: "pre-fetches".
Same problem here. "preload" is not a word if "preloads" is not a word. Let's hyphenate it as "pre-loads" instead.
This is a legit technology term, critical in web security, and should be kept in the dictionary.
https://owasp.org/
This word appears to just be related to test metadata. Let's update the test metadata instead? This could be split into its own issue.
I would rewrite this comment entirely. The whole thing is really unclear, grammatically convoluted, and technically vague. Let's open a separate issue for it.
"multi-page" should be hyphenated.
This seems out of scope or incorrect.
Comment #21
sourabhjainI have fixed the 2,3,4,8 suggestion which is mentioned in #20.
Comment #22
smustgrave commentedAttempted to address the other issues from #20.
Opened up 2 follow up tickets.
#20.9 it was pointed out that was dead code in #16
Am getting these phpstan errors now though
------ ------------------------------------------------
Line lib/Drupal/Core/Database/StatementPrefetch.php
------ ------------------------------------------------
212 Variable $query_start might not be defined.
212 Variable $query_start might not be defined.
------ ------------------------------------------------
------ ----------------------------------------------
Line lib/Drupal/Core/Session/SessionManager.php
------ ----------------------------------------------
148 Variable $session_data might not be defined.
Comment #23
smustgrave commentedmaybe it was just me?
Comment #24
needs-review-queue-bot commentedThe 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.
Comment #25
smustgrave commented#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
Comment #26
dwwMostly looking good, but a few problems remain:
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.
"that will pre-fetches all data." isn't grammatically correct.
Either needs:
"that will pre-fetch ..."
or
"that pre-fetches ..."
but not both.
Also not right.
"that can pre-load ..."
Comment #27
Vidushi Mehta commentedAddressing #26
Comment #28
smustgrave commentedThink a file or two may be missing.
Hard to tell as the interdiff is the same as the patch.
Comment #29
rpayanmI checked the patches (#25 and #27) and they are the same except the interdiff attached here.
Comment #30
smustgrave commentedThanks!
Comment #32
catchCommitted/pushed to 10.1.x, thanks!
Comment #34
quietone commentedDiscovered while working on #3355301: Fix spellcheck:make-drupal-dict that this has introduced an error in the dictionary.txt file.
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-dictto make sure the dictionary is correct. See https://www.drupal.org/docs/develop/development-tools/cspellComment #35
Vidushi Mehta commentedI've run this command but it throwing error with the command failed and the dictionary got blanked.
Comment #37
quietone commented@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.
Comment #38
quietone commentedUpdate word list in the IS.
Comment #39
smustgrave commentedApplied #37 and ran spellcheck:make-drupal-dict and didn't get any additional changes.
Comment #40
Vidushi Mehta commented@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
Comment #42
longwaveCommitted 031f63e and pushed to 11.x. Thanks!