We haven’t used this test system in months (last updated in May according to SAL), and nowadays we can test EntitySchema directly on Beta or Test Wikidata without needing a dedicated test wiki. Let’s delete it ahead of the Cloud VPS 2019 purge. (I’ll take a backup before, just in case.)
Description
Description
Event Timeline
Comment Actions
Mentioned in SAL (#wikimedia-cloud) [2019-10-02T15:22:07Z] <Lucas_WMDE> wikidata-shex add 'WikibaseSchema' => 'JsonContextHandler' to $wgContentHandlers so the wiki can be exported for T234313 without encountering “unknown content model” errors
Comment Actions
Mentioned in SAL (#wikimedia-cloud) [2019-10-02T15:38:18Z] <Lucas_WMDE> wikidata-shex deleted proxy (T234313)
Comment Actions
Mentioned in SAL (#wikimedia-cloud) [2019-10-11T18:24:41Z] <Lucas_WMDE> wikidata-shex deleted instance (T234313)
Comment Actions
Some parts of the config might also be useful elsewhere.
In the VM:
/etc/systemd/system/git-update.service
[Unit] Description=Update MediaWiki [Service] Type=oneshot ExecStart=/usr/local/bin/mwvagrant git-update WorkingDirectory=/srv/mediawiki-vagrant/
/etc/systemd/system/git-update.timer
[Unit] Description=Update MediaWiki every ten minutes on working time [Timer] OnCalendar=Mon..Fri *-*-* 08..22:00,10,20,30,40,50:00 [Install] WantedBy=timers.target
In the container:
vagrant/puppet/hieradata/local.yaml
classes: - local::entityschema - local::confirmedit - local::i18n
vagrant/puppet/modules/local/manifests/entityschema.pp
class local::entityschema { mediawiki::extension { 'EntitySchema': composer => true, settings => { wgEntitySchemaShExSimpleUrl => 'https://tools.wmflabs.org/shex-simple/wikidata/packages/shex-webapp/doc/shex-simple.html?data=Endpoint: https://query.wikidata.org/sparql&hideData&manifest=[]&textMapIsSparqlQuery', wgNamespaceAliases => { 'Schema' => 640, # NS_ENTITYSCHEMA_JSON 'Schema talk' => 641, # NS_ENTITYSCHEMA_JSON_TALK }, wgContentHandlers => { 'wikitext' => 'WikitextContentHandler', 'javascript' => 'JavaScriptContentHandler', 'json' => 'JsonContentHandler', 'css' => 'CssContentHandler', 'text' => 'TextContentHandler', 'WikibaseSchema' => 'JsonContentHandler', }, }, } }
vagrant/puppet/modules/local/manifests/confirmedit.pp
lass local::confirmedit { # see https://puppet.com/docs/puppet/4.8/lang_data_string.html for string syntax $questions = @(QUESTIONS) [ "What does ShEx stand for?" => "Shape Expressions", "What does RDF stand for?" => "Resource Description Framework", "What is the common abbreviation for the World Wide Web Consortium?" => "W3C", "Which query language is used on Wikidata?" => "SPARQL", "What is the property ID used to define constraints?" => [ "P2302", "2302" ], "What is the item ID of Douglas Adams?" => [ "Q42", "42" ], ] |-QUESTIONS mediawiki::extension { 'ConfirmEdit': settings => [ 'wfLoadExtension( "ConfirmEdit/QuestyCaptcha" );', "\$wgCaptchaQuestions = $questions;", ], } }
vagrant/puppet/modules/local/manifests/i18n.pp
class local::i18n { mediawiki::extension { 'UniversalLanguageSelector': } mediawiki::extension { 'cldr': } mediawiki::extension { 'Babel': } }