Aude has uploaded a new change for review.

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

Change subject: Update entityNamespace settings to not use content model ids
......................................................................

Update entityNamespace settings to not use content model ids

Bug: T138982
Change-Id: I67a79e62ec4c1f670a71d9abe20dde9be45d3c6b
---
M wmf-config/Wikibase.php
1 file changed, 6 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/40/297240/1

diff --git a/wmf-config/Wikibase.php b/wmf-config/Wikibase.php
index b6c4968..277b4ec 100644
--- a/wmf-config/Wikibase.php
+++ b/wmf-config/Wikibase.php
@@ -46,10 +46,13 @@
 define( 'WB_NS_QUERY', $baseNs + 2 );
 define( 'WB_NS_QUERY_TALK', $baseNs + 3 );
 
-// Tell Wikibase which namespace to use for which kind of entity content.
+// Tell Wikibase which namespace to use for which type of entities
+// @note when we enable WikibaseRepo on commons, then having NS_MAIN for items
+// will be a problem, though commons should be aware that Wikidata items are in
+// the main namespace. (see T137444)
 $wgWBSharedSettings['entityNamespaces'] = [
-       'wikibase-item' => NS_MAIN, // CONTENT_MODEL_WIKIBASE_ITEM
-       'wikibase-property' => WB_NS_PROPERTY // CONTENT_MODEL_WIKIBASE_PROPERTY
+       'item' => NS_MAIN,
+       'property' => WB_NS_PROPERTY
 ];
 
 if ( in_array( $wgDBname, [ 'test2wiki', 'testwiki', 'testwikidatawiki' ] ) ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/297240
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I67a79e62ec4c1f670a71d9abe20dde9be45d3c6b
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Aude <aude.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to