Summary
Add a wgWBEnableFederatedStatementValueSource feature flag which can be set in LocalSettings.php to enable or disable Federated Statement Values Source (FSVS). Part of this task is to confirm the naming of this flag through confirming/aligning with Product and UX research.
This feature can be complete in anticipation of the actual changes to enable Federated Statement Values, such that this flag is visible to the relevant ares of the codebase.
Details
- By default the feature is disabled.
- When enabled, the feature is available only for properties with a datatype of Item.
- Source for value selection is fixed to Wikidata. Configuration of remote sources is out of scope for this task, but the design should not block future configurability as the ability to configure a list of remote sources is expected in the future (as was done in Federated Properties code).
Config example
// Enable Federated Statement Values Source for Item type properties $wgWBEnableFederatedStatementValueSource = true;
Done when
- A name for the flag is established
- Setting the flag to false fully disables all FSVS-related code paths (UI + API).
- Setting the flag to true enables the feature