Research:Technology/CloudServices-RecWiki

The rec-wiki instance of the recommendation-api project at Wikimedia Cloud Services is used as a staging wiki for testing recommendation API related experiments. It can be accessed at http://rec-wiki.wmflabs.org/.

Uses

edit

Section recommendations

edit

Edit Pat_Howell_(baseball) to see the section recommendation suggestions (to the right of the editor).

  • Phab task
  • Gadget source code
  • In order to install the gadget for users to use, enable the BetaFeatures and the Gadgets extensions. Then copy & paste the JS and CSS file contents into the MediaWiki pages according to the Gadgets documentation. Add the following code to MediaWiki:Gadgets-definition: * Gapfinder [ResourceLoader | dependencies=mediawiki.Title, mediawiki.api] | gapfinder.js | gapfinder.css. The API set up documentation available here.
  • If you don't see the recommendations, check whether the gadget pages needs an update (because of MediaWiki updates). Also check if the back end API is still running. It may have stopped, so re-start the service according to the documentation. You may also change the gadget definition code depending on whether the dependency modules have changed.

Setting up

edit
  1. cd /srv/mediawiki-vagrant
  2. vagrant roles enable betafeatures gadgets eventlogging parserfunctions scribunto visualeditor wikimediaevents
  3. vagrant up
  4. vagrant provision (may have have to vagrant halt and vagrant up multiple times to bypass random errors)
  5. Set up the admin password (the default doesn't seem to work): vagrant ssh.
  6. php /vagrant/mediawiki/maintenance/changePassword.php --user admin --password "your password here"
  7. exit
  8. Copy over MediaWiki:Common.css and MediaWiki:Common.js from enwiki.
  9. Export some pages from enwiki and import them at Special:Import.
  10. On the newly imported page look for errors such as missing modules. Export those modules from enwiki and import them to rec-wiki.