There is a lot of inconsistency in the Migrate code base between "highwater mark" and "high water mark" in the documentation, and CamelCasing of HighWater vs. Highwater in method/member variable names.
It should be two words, and camel cased HighWater.
Should be a good Novice project to search and replace:
- highwater => high water [in documentation/comment lines]
- Highwater => High water [in documentation/comment lines]
- Highwater => HighWater [in CamelCase class/method/variable names]
- highwater => highWater [in CamelCase class/method/variable names]
I think this should only be present under core/modules/migrate and core/modules/migrate_drupal.
Comments
Comment #1
benjy commentedEvery instance of highwater changed into either "high water" or highWater depending on it's usage.
Couple of API changes with a constant and the key value storage name changing.
Comment #2
jhodgdonThis one should really be a local variable (non camel case):
Also in the Source class, ::next() method:
This is suspicious, as it is the first and only mention of $highwater in this method. Should it maybe be something else here? It is never going to be not empty, because it is never being set anywhere, as far as I can tell. Looks like a bug?
Other than that, looks great! Also I committed #2316413: Clean-up docs in MigrationInterface so this needs a reroll.
Comment #3
benjy commentedFixed the first one.
Yeah the second one is a bug. This code was copied entirely from the D7 migrate module and hasn't had much attention since. I've renamed the field to reference the class property but it's pretty obvious this code path isn't tested. That should be another follow-up since this issue is mainly docs and that could turn into a significant amount of work.
Comment #4
xanoMerriam Webster's confirms high water is the correct spelling.
Comment #5
jhodgdonOK, I'll leave it to you to file an issue on the obviously not working code.
Comment #6
alexpottCommitted 72b1c2f and pushed to 8.0.x. Thanks!
Fixed on commit
Comment #8
benjy commentedFollow-up for #2 #2321911: Unused code in Source.php
Comment #9
jhodgdonOh good, thanks!