Lucas_Werkmeister_WMDE added a comment.

Sadly, this is not as easy as it looks… in ControllerViewFactory, the lexeme is a wikibase.lexeme.datamodel.Lexeme object; in LexemeHeader, it’s at first the entity JSON serialization, which is then “hydrated” into some other format (undocumented AFAICT) before being passed into newLexemeHeaderStore, where it is again transformed into another, slightly different format (ditto) and finally stored in Vuex. According to ADR 0002, that Vuex store is the way of the future, but unfortunately, as far as I can tell, we can’t convert a datamodel Lexeme object into this store format (whatever it looks like) because the store format has language and lexical category, and the datamodel Lexeme doesn’t have those.

I guess this will have to wait for us to migrate more components to the Vuex store model… :/


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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Nikki, Mringgaard, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Darkdadaah, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to