Closed (works as designed)
Project:
Drupal core
Version:
11.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 May 2020 at 05:36 UTC
Updated:
20 Feb 2024 at 17:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jungleComment #3
jungleAdding "depending" to here, and changing the title a little bit
Comment #4
sja112 commentedComment #5
sja112 commentedComment #6
mohrerao commentedAdding a patch for updating all comments. however i see the above words used in code as well. Not sure if we need to fix them as well at this point.
Comment #7
mohrerao commentedComment #8
jungleThanks, @mohrerao!
Over 80 chars, enabled should move to the next line.
Comment #9
longwaveI'm not sure "dependee" is always intended to be "dependent", for example here it seems to mean the other half of the dependent relationship, ie. parent vs child.
Comment #10
mohrerao commentedThanks for the comment @longwave. Agree #9. new patch on the way...
Comment #11
mohrerao commentedAdding patch fixing #8.1, #8.2 and #9.
Comment #12
ketikagrover commentedComment #13
ketikagrover commented1. as per the #8 'dependening' has been addressed and changes are showing in #11
2. as per #9 changes showing in #11 and looks good to me.
Comment #14
xjmThanks for working on this!
"Dependee" is not a word, so even if "dependent" is not correct in context, we should say something else. I think in context the opposite of a dependent is a dependency. If "dependee" is supposed to mean the opposite of "dependent" throughout the States API, then we should use "dependency" instead.
Note that this requires somewhat complicated BC and deprecation since it involves an array key that is public API as well as JavaScript that responds to it. Therefore, I'm rescoping this issue accordingly. Note that this won't be a novice task.
Meanwhile:
This change is wrong... we still need to follow English grammar rules for the possessive. It's not "plural 'dependee'", it's "belonging to the dependee". (Or once we rename it, "dependency's" as in "belonging to the dependency".)
Comment #15
deepak goyal commentedComment #16
deepak goyal commentedHi @xjm
Updated patch as you suggested please review.
Comment #17
deepak goyal commentedComment #18
longwaveI wonder if we should just leave this alone as it does seem to be in use as a programming-specific term: https://en.wiktionary.org/wiki/dependee
Comment #19
mohrerao commentedAgree with @longwave. Its better to retain dependee. But lets fix "dependee's" to "dependees" and close.
Comment #20
mohrerao commentedAdding a patch for replacing dependee's to dependees.
Comment #21
shobhit_juyal commentedNot sure what is finalized at the end as per the xjm comment at #14. It may need to just have a look on this.
Not changing the status for now.
Comment #22
jungleLet's continue based on comment #18
core/misc/cspell/dictionary.txtComment #23
longwaveI think "dependee's" is correct as well, it is the possessive of "dependee".
Comment #24
mrinalini9 commentedCan someone please update IS which words needs to be replaced or retained?
Comment #26
anmolgoyal74 commentedRemoved dependee's from
core/misc/cspell/dictionary.txtComment #27
anmolgoyal74 commentedComment #28
mradcliffeI performed Novice Triage on this issue. I am leaving the Novice tag on this issue because I think there is still clear action to do including the excellent suggestion by @mrinalini9 that the issue summary and issue title needs updating. Specifically the proposed resolution has changed from @xjm's comments based on @longwave and @mohrerao .
However, if dependee is a technical, programming term, I think that it at least should be defined as @xjm mentioned. It would help make what dependee is clearer if that property were described/defined as a dependency in code block for
states.Dependent(the constructor).I changed the status to Needs work based on the review below.
The es6 version needs to be transpiled to a es5 version in the patch as well.
Comment #30
sudiptadas19 commented@mradcliffe
Trying to address your suggestions given in #28, the changes made in #26 are related to documentation changes so I don't think the transpiled copy is required for this.
I have run the below-given code but there are no changes after the successful command execution.
yarn run build:js -- --file misc/states.es6.jsPlease suggest.
Comment #34
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
Was tagged for IS update and that appears to still need to happen.
Comment #35
kunalgautam commentedPatch Drupal version 10.1.x
Comment #36
kunalgautam commentedComment #37
smustgrave commentedPlease read the tags also this still needs an issue summary update
Comment #40
quietone commentedThis really needs someone who know the State API to confirm the word changes.
Comment #42
quietone commentedComment #43
smustgrave commentedSo tried to find someone, thought maybe we had a states API manager but do not.
Looking at the pure replacement used though and it appears to be a good 1-1 update.
Comment #44
catchThe issue summary and title say the opposite of what the patch does, could use an update.
Comment #45
smustgrave commentedUpdated issue summary.
Comment #46
quietone commentedWhat about the concerns raised in #14?
Comment #47
dwwAnd what about the counter-proposal in #18? Maybe it's better to leave this alone, per https://en.wiktionary.org/wiki/dependee -- "Dependee" is enough of a "word" to have a wikipedia article devoted to itself. Perhaps we should call this "works as designed" and move on?
Comment #48
longwaveSome discussion on this word at https://english.stackexchange.com/questions/25575/what-is-the-correct-wo...
Comment #49
nod_#46 is correct, the BC layer is missing.
I'm not native and dependee makes sense to me (like employer/employee) so to take with a grain of salt: I'd be for leaving this alone given the work needed to make it work properly (depreciation, bc layer, etc.)
Comment #50
nod_Comment #51
smustgrave commentedSo is the new consensus to leave as is?
Comment #52
nod_yes, consulted with other core committers we're moving the word to drupal-dictionary.
see #3422584: Keep the word dependee and move it to drupal-dictionary.txt
Comment #53
catchI think a similar example is where performant got added to the Cambridge dictionary due to its technical usage even though it was not really an English word before that, although in this case nod_ pointed out it's also a real French word that translates to the same meaning as its used in English. So I think we can treat it as a neologism rather than a mis-spelling. I think if we were going to try to change this in the states API we might want to completely change the vocabulary (no idea what to, but something without the ambiguity of dependency/dependent/dependee).