Lucas_Werkmeister_WMDE added a comment.

  In T235901#5587912 <https://phabricator.wikimedia.org/T235901#5587912>, 
@Lucas_Werkmeister_WMDE wrote:
  
  > Usage tracking is also going to be interesting. Currently, it’s strictly 
entity-based, as far as I can see (as opposed to page-based), both on the repo 
(`wb_changes_subscription`) and on the client (`wbc_entity_usage`). Does this 
mean that a Wiktionary page for one lexeme may end up with dozens, if not 
hundreds <https://twitter.com/LucasWerkmeistr/status/1184597678094716930> of 
`wbc_entity_usage` rows, one per form (and aspect)? Or should we say that 
entity usage stops at subentities, and any usage of a lexeme implies usage of 
all of its forms? Or do we somehow group usages together, similar as for other 
aspects, and turn form usages into one “all forms of this lexeme” usage once 
they exceed a certain threshold?
  
  The currently merged code tracks lots of ‘X’ (“all”) usages, but it still 
doesn’t track enough usage. Specifically, if you use `mw.wikibase.getEntity( 
'L1-S1' )`, then the page will get a usage for `L1-S1#X`, but not for `L1`; and 
because we only look for pages using `L1` when dispatching changes, the change 
won’t be notified when the lexeme is edited, and may continue to show untracked 
data.
  
  I think fixing this is a hard requirement before we enable lexeme data 
transclusion in production. The easiest solution would be to make sure that 
`mw.wikibase.getEntity( 'L1-S1' )` also tracks an `L1#X` usage, I’ll see if I 
can make that work.

TASK DETAIL
  https://phabricator.wikimedia.org/T235901

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Jdforrester-WMF, DVrandecic, So9q, daniel, Nikki, Infovarius, Premeditated, 
Alicia_Fagerving_WMSE, Marsupium, Lucas_Werkmeister_WMDE, Suran38, Biggs657, 
Invadibot, Lalamarie69, maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, 
Akuckartz, Hook696, Kent7301, joker88john, CucyNoiD, Nandana, Gaboe420, 
Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, 
Mahir256, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, rosalieper, 
Bodhisattwa, Scott_WUaS, jberkel, Psychoslave, Wikidata-bugs, aude, Shizhao, 
Nemo_bis, Darkdadaah, Addshore, Mbch331, Ltrlg, Krenair
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to