You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

WMDE/Wikidata/Deployment

From Wikitech-static
< WMDE‎ | Wikidata
Revision as of 13:20, 15 November 2018 by imported>Addshore (→‎Adding a client: add more details about checking dispatching)
Jump to navigation Jump to search

Adding a client

If a client is being added as part of a new wiki, see Add a wiki#Wikidata.

Otherwise, first create the tables:

ladsgroup@mwmaint1002:/srv/mediawiki/php-1.33.0-wmf.1$ mwscript sql.php --wiki=sourceswiki extensions/Wikibase/client/sql/entity_usage.sql

Then, add name of the wiki to wikidatacleint.dblist and deploy it. For example: https://gerrit.wikimedia.org/r/#/c/472008/

You can check arbitrary access with something like the following: {{#property:P31|from=Q4115189}}

In order for dispatching to work the wiki needs to be listed in the wb_changes_dispatch table on wikidatawiki (it might already be there).

You can check the dispatch logs for the wiki by doing something like this:

addshore@mwmaint1002:/var/log/wikidata$ tail -f dispatchChanges-wikidatawiki.log | grep 'sourceswiki'

Using the example arbitrary access above making a change to P31 on Q4115189 should result in a log message in the dispatch log for the wiki after a ~30 seconds (depending on the health of the dispatcher)