Implement the use of the HashSiteStore by getting the data from the sites.php file from mediawiki-config through the sitesConfig.
Only Wikimedia wikifarm will be utilizing the HashSiteStore, the other third-party wiki will still be using the sites table.
Acceptance Criteria:
- Make it so that without the configuration, the current behaviour is preserved
- The new SiteStore will be using the HashSiteStore rather than using the DBSiteStore
- The new SiteStore will be able to retrieve the sitesConfig from the sitesConfig
- Test it
SitesConfig schema
global_key: string id: int forward: boolean group: string language: string source: string data: array config: array
Example configuration,
$wgSitesConfigs = [
[
'global_key' => 'devwiki',
'id' => 100,
'forward' => false,
'group' => 'wiki',
'language' => 'de',
'source' => 'local',
'data' => 'a:0:{}',
'config' => 'a:0:{}',
],
];Time estimate: FM