Research:Technology/CloudServices-RecWiki
This page is kept for historical interest. Any policies mentioned may be obsolete. The rec-wiki service is no longer maintained. |
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
editSection recommendations
editEdit 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
editcd /srv/mediawiki-vagrant
vagrant roles enable betafeatures gadgets eventlogging parserfunctions scribunto visualeditor wikimediaevents
vagrant up
vagrant provision
(may have have tovagrant halt
andvagrant up
multiple times to bypass random errors)- Set up the admin password (the default doesn't seem to work):
vagrant ssh
. php /vagrant/mediawiki/maintenance/changePassword.php --user admin --password "your password here"
exit
- Copy over MediaWiki:Common.css and MediaWiki:Common.js from enwiki.
- Export some pages from enwiki and import them at Special:Import.
- On the newly imported page look for errors such as missing modules. Export those modules from enwiki and import them to rec-wiki.