User:DAlangi (WMF)/Sandbox

Notes, Tips and Tricks

edit

Object Cache

edit

In the context of CentralAuth and MediaWiki:

  • In the context of CentralAuth and MediaWiki, session store uses kask which is a key value store for holding user sessions. It uses our BagOStuff implementation under the hood, specifically RESTBagOStuff.
  • On the other hand, we also use a thing called token store which uses mc-router as the object cache instance which happens to be MemcachedPeclBagOStuff (memcache for short).
  • Summarily, session store (/session/v1/ end-points) is RESTBagOStuff and token store uses MemcachedPeclBagOStuff.

Running Parsoid RT test locally

edit

WARNING: setup and other configs should be done before running these commands like npm install ... and related.

Command (run within a fresh-node container):

node bin/roundtrip-test.js --proxyURL http://host.docker.internal:8080 --parsoidURL http://host.docker.internal:8080/w/rest.php --domain mediawiki.development.instance "Main_Page"

Running specific mocha test

edit

Command (run within a fresh-node container):

./node_modules/.bin/mocha RoundTrip.js --timeout 0

Render formular

edit

={z0r<|z|<R}

Docs (How-to)

edit

MW-vendor upgrade

Web Perf Hero Award Wikitech-l template

edit

Web Perf Hero award

CentralAuth docs revamp

edit

CentralAuth docs revamp