X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/cf6f0fa84b8576d253675be43183875874a9852f..eecaf26698348adf3d3b64ea680ad82f959a5ae4:/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb diff --git a/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb index 8767afd0b..da194cad7 100644 --- a/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb +++ b/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb @@ -38,10 +38,10 @@ call_user_func( function() { $wgWBRepoSettings['entityNamespaces']['property'] = WB_NS_PROPERTY; // Make sure we use the same keys on repo and clients, so we can share cached objects. - $wgWBRepoSettings['sharedCacheKeyPrefix'] = $wgDBname . ':WBL/' . rawurlencode( WBL_VERSION ); + $wgWBRepoSettings['sharedCacheKeyPrefix'] = $wgDBname; - // Tell MediaWiki to search the item namespace - // $wgNamespacesToBeSearchedDefault[WB_NS_ITEM] = true; + // Include Wikibase items in the regular search result by default + $wgNamespacesToBeSearchedDefault[WB_NS_ITEM] = true; // the special group includes all the sites in the specialSiteLinkGroups, // grouped together in a 'Pages linked to other sites' section. @@ -49,6 +49,11 @@ call_user_func( function() { // these are the site_group codes as listed in the sites table $wgWBRepoSettings['specialSiteLinkGroups'] = ['osm']; + + // This option will start working in Wikibase v1.33 release. Noop until then. + // https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Wikibase/+/469872/ + $wgWBRepoSettings['enableEntitySearchUI'] = false; + } ); // Adapted from "$IP/extensions/Wikibase/client/ExampleSettings.php"; @@ -61,6 +66,9 @@ call_user_func( function() { $wgWBClientSettings['namespaces'] = [ NS_MAIN ]; +// Avoid complaints that nobody seems to know the cause off... +$wgWBClientSettings['entityUsagePerPageLimit'] = 500; + // no edit rights for anonymous users $wgGroupPermissions['*']['item-term'] = false; $wgGroupPermissions['*']['item-merge'] = false;