Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2020 at 16:37 UTC
Updated:
1 May 2020 at 19:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jungleComment #3
jungleOne unexpected change, I tried to keep it untouched, but my editor(s) added it back. And it's ok to add a blank line.
Comment #4
jungleComment #5
tim.plunkettNote for #3: only change the es6.js files, and use yarn to recompile the JS ones. never edit them manually
Comment #6
jungleReverted the unexpected change in #3, @tim.plunkett thanks for your reviewing and instruction!
Comment #7
alexpott@jungle you need to search the issue queue to ensure the duplicates of this issue are referenced.
The patch need to be checked for comments that need to be re-flowed now that lines are shorter... I've not checked it all.
the theand the like. Or actually looking at PHPCS - they are using cspell - maybe we should open an issue to try to configure for core. Yes it is a NPM package but at some point core is going to have build process that involves NPM so that shouldn't stop us. We have an issue for that already - see #2972224: Add .cspell.json to automate spellchecking in Drupal core - I wonder cspell detects this.Comment #8
jungle@alexpott, thank you for reviewing!
Comment #9
junglePatches for 8.8.x and 9.0.x
Comment #10
jungleComment #11
dwwMostly looks good, thanks!
However, in some places the duplicate word was supposed to be another similar word. E.g. "that that" needs to be "that the", not just "that". Details below:
For this to parse, it should be:
... that the subtree is unconditionally inaccessible.
so the 2nd that here needs to become "the", not removed.
"Test that the machine name..."
s/that that/that the/
"We test the case that the field ..."
This is probably fine, although "Make sure that the view_path..." also works (and is probably what was originally intended).
"Go to the second page."
Go to the ...
Also check that the text/plain...
Comment #12
dwwComment #13
jungleThanks @dww for your detailed review!
#11.4 is not applicable to 9.0.x. Patches attached to each branch.
Comment #14
jungleComment #15
alexpottI tested cspell and it doesn't detect duplicate words like
the theI do think that maybe adding a duplicate word in comment checker to coder might be worth it. 30K is a large patch. Obviously with configuration so we can allow for duplicate had and other necessary words.... https://en.wikipedia.org/wiki/James_while_John_had_had_had_had_had_had_h...Comment #16
alexpottComment #17
dwwAlmost there, thanks! You just missed some of the reflow points @alexpott requested in #7.1. I'm reviewing 3121362-13-8.9.x.patch as the largest one, I assume the same points are to be found in the other patches, or aren't relevant on their branches...
'is' would now fit on the previous line (in both cases).
'mode.' will now fit on the previous line (in both cases).
Otherwise, I think this is RTBC...
Thanks,
-Derek
p.s. Crediting everyone so far for reviews in here.
Comment #18
dwwp.s. Similar to the point about es6.js vs. .js, I think you're now supposed to only edit the .pcss files for Claro, and then run something to regenerate the .css files from that. Haven't actually messed with that myself, yet, and perhaps the end result would be the same, but it might be worth trying to do that The Right Way(tm), just to make sure.
Comment #19
meenakshig commentedComment #20
jungleThanks @dww and @Meenakshi.g, queued the tests against the right branches and all tests passed. #17.1 and 2 addressed. I've tried to remove CSS files in the patch, furthermore, get them regenerated and no difference.
Comment #21
dww@Meenakshi.g: Thanks for fixing those.
<aside class="teaching-moment">@jungle: Generally, if you've contributed substantially to the patches for an issue, you're not qualified to RTBC it. Technically #19 "isn't your patch" since @Meenakshi.g made those small tweaks. But the bulk of the work here is your own, so you should let someone else who hasn't written any of the patches do the RTBC'ing.
In this case, it's a trivial doc-only fix, so the stakes are low and it's basically fine. Plus I already said "Otherwise, I think this is RTBC..." in #17, and #18 indeed addressed the 2 points I raised.
</aside>TL;DR: Confirming this is RTBC. ;)
Comment #22
jungleGot it, @dww, Thanks for mentoring!
Comment #23
hotwebmatter commented+1 RTBC :)
Comment #24
xjmThanks for your work on this!
Just noting that since this change is altering deprecation messages, it's disruptive, so I'm not sure it's allowable during beta nor backportable to a patch release. We should consider splitting the comment-only fixes away from the changes to deprecation messages or exceptions. I'll get an opinion from other committers.
Comment #25
xjm@larowlan and @catch also agreed we should split out the comment changes from the changes to deprecation or runtime error messages.
Let's use this issue to fix code comments for all active branches. Exception and deprecation messages should be fixed in a separate issue in 9.1.x only (although, skimming the D9 patch, there might be little to fix there anymore.) We'll just have to live with silly "the the" in some deprecation messages until the end of D8 support, but that's okay.
Thank you!
Comment #26
jungleComment #27
jungleAddressed #25
Comment #28
jungleComment #29
prabha1997 commented--- a/core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php
+++ b/core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php
@@ -75,7 +75,7 @@ public function __construct(AccessManagerInterface $access_manager, AccountInter
* This is why inaccessible subtrees are deleted, except at the top-level
* inaccessible link: if we didn't keep the first (depth-wise) inaccessible
* link, we wouldn't be able to know which cache contexts would cause those
- * subtrees to become accessible again, thus forcing us to conclude that that
+ * subtrees to become accessible again, thus forcing us to conclude that the
* subtree is unconditionally inaccessible.
*
* @param \Drupal\Core\Menu\MenuLinkTreeElement[] $tree
Here i found very minor issue
'subtrees to become accessible again, thus forcing us to conclude that' - it should be like this.
Comment #30
prabha1997 commentedmybe i am wrong. Please check with that issue
Comment #31
andypostSounds like duplicate
Comment #32
jungle@andypost, thanks for commenting!
Re: #31
In short: not.
For example
This is an an issue., to remove one of theans is under the scope of this issue.This is a issue,, to correctatoanis under the scope of #2851394Comment #33
xjmThanks @jungle, @andypost, and @prabha1997.
#27 looks good. Tagging "Needs followup" for the 9.1.x patch (which will basically start with the 9.0.x interdiff in #27, reversed).
Agreed that #2851394: Fix grammar 'a' to 'an' when necessary is not a duplicate, although they have similarities.
For @prabha1997 regarding #29, I don't quite follow your suggestion. Sorry! I think it looks OK but it could be that I missed something too.
Comment #34
xjmOops, sorry, the followup was already filed in #28. Thanks!
Comment #35
jungle@xjm, thank you!
I think I already did in #28, it's #3122547: Fix duplicate word typos (the the, to to, etc) for test assertions, but did not mention in its IS to start with the interdiff in #27
Comment #36
dwwRe #3122547: Fix duplicate word typos (the the, to to, etc) for test assertions and https://www.drupal.org/files/issues/2020-03-26/interdiff-9.0.x-19-27.txt
Why would we need to leave any of that broken in 9.0.x? It's only in tests. I understand the potential disruption of changing deprecation messages, but I don't understand the potential disruption of changing internal test module JS code and the assertions about its output. Tests are not API. Please explain why that's out of scope here and requires #3122547 to exist at all. Not that I'll ever understand our scoping policies, but I still try. ;)
Thanks,
-Derek
Comment #37
dwwAlso, these should *definitely* be in scope here. They only change the assertion text, that presumably no one sees unless the test fails. ;)
Comment #38
xjm@dww, it's just simpler to review only-comment code separately from anything that's not comment code, as per the guidelines in https://www.drupal.org/core/scope#context. It's not possible for pure documentation changes to break anything and it's always backportable during any release cycle phase. So I think #27 is still the correct scope. Thanks!
Comment #39
clayfreemanI agree with #38.
Setting to RTBC as the patch looks good and applies cleanly to each branch.
Comment #40
dwwHilarious. We split out #3122547: Fix duplicate word typos (the the, to to, etc) for test assertions since those were deemed harder to review/commit and it should speed this up. That issue already landed, while this one has not. ;) /shrug
Comment #41
alexpottCommitted and pushed cc564e260e to 9.1.x and 7dcb6fa2ec to 9.0.x. Thanks!
Committed 9ac3a55 and pushed to 8.9.x. Thanks!
Committed ee34cc5 and pushed to 8.8.x. Thanks!