Page MenuHomePhabricator

Core SiteLookup should expect to be overridden by an extension for wikifarms (😾)
Open, Needs TriagePublic

Description

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:

  1. Make it so that without the configuration, the current behaviour is preserved
  2. The new SiteStore will be using the HashSiteStore rather than using the DBSiteStore
  3. The new SiteStore will be able to retrieve the sitesConfig from the sitesConfig
  4. 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

Event Timeline

Change #1311491 had a related patch set uploaded (by Seanleong-wmde; author: Seanleong-wmde):

[mediawiki/core@master] Implement the use of HashSiteStore instead of DBSiteStore for accessing sites as part of the introduction of site configuration file as a single source of truth.

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

Change #1325880 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/core@master] [squash] regenerate compiled config files

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

Change #1325880 abandoned by Awight:

[mediawiki/core@master] [squash] regenerate compiled config files

Reason:

squashed.

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

seanleong-WMDE renamed this task from Implement the use of HashSiteStore instead of DBSiteStore in core to Implement the use of HashSiteStore instead of DBSiteStore in core (😾).Mon, Aug 31, 5:33 AM
awight renamed this task from Implement the use of HashSiteStore instead of DBSiteStore in core (😾) to Core SiteLookup should expect to be overridden by an extension for wikifarms (😾).Wed, Sep 2, 8:13 AM

Change #1311491 abandoned by Seanleong-wmde:

[mediawiki/core@master] Implement the use of HashSiteStore instead of DBSiteStore for accessing sites as part of the introduction of site configuration file as a single source of truth.

Reason:

New design change.

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