Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase.ci.php File Reference

Variables

 $wgWBCSUseCirrus = false
 CI configuration for the Wikibase Repo extension.
 
 $wgCirrusSearchDisableUpdate = true
 
 $wgWBRepoSettings ['idGenerator'] = 'auto'
 
 $wgWBRepoSettings ['dataBridgeEnabled'] = true
 
 $wgWBRepoSettings ['taintedReferencesEnabled'] = true
 
 $wgRestAPIAdditionalRouteFiles [] = 'extensions/Wikibase/repo/rest-api/routes.json'
 
 $wgWBRepoSettings ['federatedPropertiesEnabled'] = true
 
 $wgWBRepoSettings ['federatedPropertiesSourceScriptUrl'] = 'https://wikidata.beta.wmflabs.org/w/'
 
 $wgWBRepoSettings ['siteLinkGroups'][] = 'CI'
 
 $originalBadgeItems = $wgWBRepoSettings['badgeItems'] ?? []
 
 $originalRedirectBadgeItems = $wgWBRepoSettings['redirectBadgeItems'] ?? []
 
 $wgWBRepoSettings ['badgeItems']
 
 $wgWBRepoSettings ['redirectBadgeItems']
 
global $wgAutoCreateTempUser
 
 $wgTempAccountCreationThrottle
 

Variable Documentation

◆ $originalBadgeItems

$originalBadgeItems = $wgWBRepoSettings['badgeItems'] ?? []

◆ $originalRedirectBadgeItems

$originalRedirectBadgeItems = $wgWBRepoSettings['redirectBadgeItems'] ?? []

◆ $wgAutoCreateTempUser

$wgAutoCreateTempUser
Initial value:
= array_merge(
json_decode( getallheaders()[ 'X-Wikibase-Ci-Tempuser-Config' ] ?? '{}', true )
)
global $wgAutoCreateTempUser
Definition Wikibase.ci.php:68

◆ $wgCirrusSearchDisableUpdate

$wgCirrusSearchDisableUpdate = true

◆ $wgRestAPIAdditionalRouteFiles

$wgRestAPIAdditionalRouteFiles[] = 'extensions/Wikibase/repo/rest-api/routes.json'

◆ $wgTempAccountCreationThrottle

$wgTempAccountCreationThrottle
Initial value:
= [ [
'count' => 100,
'seconds' => 86400,
] ]

◆ $wgWBCSUseCirrus

$wgWBCSUseCirrus = false

CI configuration for the Wikibase Repo extension.

Largely uses the example config for testing, with some settings that are not part of the default example yet and also some overrides specific to browser tests.

This file is NOT an entry point the Wikibase extension. It should not be included from outside the extension.

See also
docs/options.wiki

◆ $wgWBRepoSettings [1/8]

$wgWBRepoSettings[ 'badgeItems']
Initial value:
= static function () use ( $originalBadgeItems ) {
global $wgRequest;
$badges = $wgRequest->getHeader( 'X-Wikibase-CI-Badges', WebRequest::GETHEADER_LIST ) ?: [];
return $originalBadgeItems + array_fill_keys( $badges, 'CI-badge-class' );
}
$originalBadgeItems
Definition Wikibase.ci.php:49

◆ $wgWBRepoSettings [2/8]

$wgWBRepoSettings[ 'dataBridgeEnabled'] = true

◆ $wgWBRepoSettings [3/8]

$wgWBRepoSettings[ 'federatedPropertiesEnabled'] = true

◆ $wgWBRepoSettings [4/8]

$wgWBRepoSettings[ 'federatedPropertiesSourceScriptUrl'] = 'https://wikidata.beta.wmflabs.org/w/'

◆ $wgWBRepoSettings [5/8]

$wgWBRepoSettings[ 'idGenerator'] = 'auto'

◆ $wgWBRepoSettings [6/8]

$wgWBRepoSettings[ 'redirectBadgeItems']
Initial value:
= static function () use ( $originalRedirectBadgeItems ) {
global $wgRequest;
return array_merge(
$wgRequest->getHeader( 'X-Wikibase-CI-Redirect-Badges', WebRequest::GETHEADER_LIST ) ?: []
);
}
$originalRedirectBadgeItems
Definition Wikibase.ci.php:50

◆ $wgWBRepoSettings [7/8]

$wgWBRepoSettings[ 'siteLinkGroups'][] = 'CI'

◆ $wgWBRepoSettings [8/8]

$wgWBRepoSettings[ 'taintedReferencesEnabled'] = true