Problem/Motivation
Fix spelling errors for words specific to migrate.
abantu - A Zulu word in the D6 fixture.
aptain - test string
destinationproperty - used in ~22 process plugin tests
vocabfixed, vocablocalized, and vocabtranslate - Vocabulary names in the D7 fixture
whakamataku - A Māori word used in a source plugin test.
fieldright - field migration for testing
wambooli, wamboolipastafazoul - concat example
imageapi, imagefield, imagelink, imagemagick, nodeapi, nodeapi, optionwidgets, selectlist, userreference - Drupal 6 fixture
localizable - this is a word but appears in dictionary.txt.
Proposed resolution
Disable cspell for all but destinationproperty, which can be changed to 'destination_property'.
Decide what to do about localizable.
Remaining tasks
Patch, review, commit.
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#37 | 3160031-8.9.x-36.patch | 42.01 KB | alexpott |
#34 | 3160031-9.0.x-32.patch | 42.26 KB | alexpott |
#28 | 3160031-28.patch | 59.7 KB | quietone |
#28 | diff-25-28.txt | 724 bytes | quietone |
#25 | 3160031-25.patch | 59.7 KB | quietone |
Comments
Comment #2
quietone CreditAttribution: quietone as a volunteer commentedSeems straightforward. Let's see what the testbot says.
Comment #3
quietone CreditAttribution: quietone as a volunteer commentedWell, that was a learning experience. I had forgotten that some Migrate tests were excluded in .cspell.json. So most of patch in #2 isn't needed.
Starting over and fixing several words used only by migrate so haven't made an interdiff.
Comment #5
quietone CreditAttribution: quietone as a volunteer commentedhaha on me. I added a typo in a yml file.
Comment #6
quietone CreditAttribution: quietone as a volunteer commentedComment #7
jungleThanks @quietone for filing this.
Two
whakamataku
occurrences found incore/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d6/VariableTranslationTest.php
Comment #8
jameszhang023 CreditAttribution: jameszhang023 commentedWorking on this.
Comment #9
jameszhang023 CreditAttribution: jameszhang023 commentedDone, review please, thanks.
Comment #10
quietone CreditAttribution: quietone as a volunteer commented@jungle, your welcome.
#7. That was on oversight, I thought I have fixed those lines. Fixed now.
@jameszhang023, thanks for the patch. It is my understanding that use
cspell:ignore
at the top of a file is the least favored option, although I can't find that discussion right now.Here is the patch I made, based on #5.
Comment #11
quietone CreditAttribution: quietone as a volunteer commentedOh bother, I uploaded that patch twice. Cancelled test for one of them.
Comment #12
jungleThanks @jameszhang023 and @quietone for the quick update.
FYI, this way was accepted by @alexpott in #3155463: Fix spelling error in Drupal\filter\Plugin\migrate\process\FilterID::getSourceFilterType(), See the commit e99d322064c67c12cfcdf9af5f43c9f0a8a89e92_16_16
But both #9 and #10 are good for me. Review in details after CI run finishes.
Comment #13
quietone CreditAttribution: quietone as a volunteer commented@jungle, thanks for the link. I never went back and looked at that issue until now.
Comment #14
quietone CreditAttribution: quietone as a volunteer commentedI think we can add 'aptain' to the list of words to fix in this patch. It is only in core/modules/migrate/tests/src/Unit/process/SubstrTest.php
Comment #15
jungleRe #14, Nice one, let's do it? It's still in scope here, to me. Thanks!
Comment #16
quietone CreditAttribution: quietone as a volunteer commentedAdded 'aptain' to the list of spelling fixes.
I prefer to use
cspell:ignore
at the top of the file so changed files to use that.Comment #17
jungleSpelling check passed
9 words removed in total, great! Adding the number 9 to the title.
Code changes are related to
destinationproperty
/destination_property
mainly, and alldestinationproperty
/destination_property
relevant changes made are in tests.Thanks!
Comment #18
quietone CreditAttribution: quietone as a volunteer commentedI found a few more
-fieldright
-imageapi
-imagefield
-imagelink
-imagemagick
-localizable
I have a patch but need to review it. Will do so before the end of the day.
Comment #19
quietone CreditAttribution: quietone as a volunteer commentedUpdated the IS with the new words that are fixed here.
Found out that 'localizable' is in dictionary.txt and yet it is a word according to on-line dictionaries such a wiktionary.
I'd like to think that is all the migrate specific words in dictionary.txt. I am not planning on checking again or adding more to this issue.
Comment #20
longwaveGreat work!
I think we always use // instead of # for comments in PHP.
Can we just use a different, valid word here? It doesn't seem to be actually tested.
This only appears in comments so I think we could just reword to use something else.
As this only appears once I think it is cleaner to use cSpell:disable-next-line on the line before.
Comment #21
jungle@quietone++
In addition to #20.1
Comment #22
quietone CreditAttribution: quietone as a volunteer commentedThanks for the reviews.
20.1 Fixed. It was a copy/paste error.
20.2 Changed to 'Bar'
20.3 Changed to 'Rosa' and 'Parks'.
20.4 I respectfully disagree. I did try that and, for me, it just added noise to the test data. When writing or reading a test I would rather not have the distraction.
#21.1 is the same as 20.1
Comment #23
quietone CreditAttribution: quietone as a volunteer commentedMissed a coding standard error
Comment #24
junglenodereference
->node reference
? Meanwhile, those lines are wrapped too early.It's a bit out of scope here, if so, not sure we should remove
upserting
from the dictionary here, no usages ofupserting
.Comment #25
quietone CreditAttribution: quietone as a volunteer commentedI ran spellcheck on core and looking back at my history I see it did report the instances in Views and I completely missed it. Embarrassing.
Since I am limiting this to words only in migrate I am pulling out the nodereference changes.
Comment #26
longwaveLooks good to me now, nice to be chipping away at these.
Comment #27
jungleComment #28
quietone CreditAttribution: quietone as a volunteer commentedRerolled.
Comment #29
longwaveComment #31
longwaveRandom fail in CKEditorIntegrationTest
Comment #32
alexpottCommitted 427c7ee and pushed to 9.1.x. Thanks!
Comment #34
alexpottHere's a backport of #28 without all the cspell stuff.
Comment #35
alexpottCommitted c2c26f8 and pushed to 9.0.x. Thanks!
Now to get this into 8.9.x.
Comment #37
alexpottComment #38
alexpottCommitted 96a0e62 and pushed to 8.9.x. Thanks!
Backported to 8.9.x as these are only test and docs changes and keeping the tests aligned helps as moving forward.
Comment #40
jungle@alexpott, thanks for committing! Changing the title back.