Page MenuHomePhabricator

Automatically alter entitysources configuration for Wikidata.org values for fed props when pointing at wikidata.org
Closed, ResolvedPublic

Description

For Wikibases with federation enabled to Wikidata.org

  • Automatically alter entitysources configuration to use Wikidata.org values for properties
  • No intervention from the user necessary

T253868 includes some details about this entity sources config (and it is still being discussed in matter most)

The config that we would look for to assume that wikidata.org is being referred to, and thus set this entity sources config would be:

'federatedPropertiesSourceScriptUrl' => 'https://www.wikidata.org/w/',

Code pointers:
WikibaseRepo::getEntitySourceDefinitionsFromSettings creates the definitions object from config for repo. This will likely need to know somehow if it should add our fed props entity source. This could be done by altering the config parser, or altering the config we pass into the parser.
EntitySourceDefinitionsConfigParser is the "modern" config parser that we want to alter.
It is fine to not support/change EntitySourceDefinitionsLegacyRepoSettingsParser (as that is not the default any more and will be removed soon)

Event Timeline

Change 612630 had a related patch set uploaded (by Tobias Andersson; owner: Tobias Andersson):
[mediawiki/extensions/Wikibase@master] FP: Initialize entitysource defaults

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

Change 612630 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] FP: Initialize entitysource defaults

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

Addshore closed this task as Resolved.Jul 22 2020, 8:08 AM

Resolved as it's in the Done column at the end of sprint 3 (start of sprint 4)