Lucas_Werkmeister_WMDE added a comment.

  Hm, there’s another thing that I forgot wasn’t done yet: the `senses` (and 
probably `forms)` of a returned lexeme entity aren’t entities themselves, 
they’re ordinary tables. Only the custom `getForms()` and `getSenses()` methods 
take care of properly creating entities.
  
    mw.wikibase.getEntity('L1').senses[1]:getGlosses()
    -- error: attempt to call method 'getGlosses' (a nil value).
    mw.wikibase.getEntity('L1'):getSenses()[1]:getGlosses()
    -- works
  
  This isn’t as serious as the other issue – by the time `getEntity('L1')` 
returns, we’ve already tracked an “all” usage on L1, so being able to get the 
`senses`/`forms` without proper metatables doesn’t constitute a bypass of usage 
tracking or anything – but it’s still kind of strange, I guess…

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