Page MenuHomePhabricator

Control creation of LexiconStorage from config in extension.json
Closed, ResolvedPublic3 Estimated Story Points

Description

Introduce LexiconStorageFactory that accepts a config instance.

First version of this solution will look at a single config parameter it treats as an enum:

SpeechoidOnly
Handler_Wiki_Speechoid
Handler_WanCache_Speechoid

Add todo comments that in the future multiple config variables for local and remote lexicon class names might be a good idea, in case we implement other storages (e.g. WikiBase lexems or what not)

Event Timeline

kalle set the point value for this task to 3.Apr 19 2021, 2:15 PM

Change 682609 had a related patch set uploaded (by Karl Wettin (WMSE); author: Karl Wettin (WMSE)):

[mediawiki/extensions/Wikispeech@master] [WIP] Control creation of LexiconStorage via config in extension.json

https://gerrit.wikimedia.org/r/682609

Change 682609 merged by jenkins-bot:

[mediawiki/extensions/Wikispeech@master] Control creation of LexiconStorage via config in extension.json

https://gerrit.wikimedia.org/r/682609