Michael created this task. Michael added projects: wdwb-tech, Wikidata. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION **Problem**: Currently, all DataValue formatter callbacks are called when creating a new `DispatchingValueFormatter` through the `OutputFormatValueFormatterFactory`. This happens for example in the `WikibaseRepo.MessageParameterFormatter` service. However, that means that the `format-factory-callback` for a `wikibase-sense` is executed when just trying to create a new bare Item. This can lead to unintuitive errors, as it happened in Add lexeme language to formatted sense ID (Ieaf6fabd) <https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikibaseLexeme/+/871231>. One option to tackle this would be to make `DispatchingValueFormatter` create the formatters on demand as needed and then cache them. That way we should have less coupling in practice. TASK DETAIL https://phabricator.wikimedia.org/T326135 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Michael Cc: Aklapper, Michael, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
