The review interface handles (trusted) human review of filtered reports & false positive/negative/random edits.
It is designed to be the main source of data for training the https://github.com/cluebotng/core ANN.
Required for storing review data.
Configuration via environment variables:
TOOL_TOOLSDB_HOST- database host. default:localhostTOOL_TOOLSDB_USER- database user. default:rootTOOL_TOOLSDB_PASSWORD- database password. default: ``
Required for Django:
DJANGO_SECRET_KEY
Required for (OAuth) authentication:
OAUTH_TOKENOAUTH_SECRET
The production deployment is handled via a build pack, see https://wikitech.wikimedia.org/wiki/Help:Toolforge/Building_container_images for more details.
For development purposes a local configuration file will be required along the lines of
django:
debug: true
# Local redirect url
oauth:
key: xxxx
secret: xxxx
mysql:
# Port forwarded
replica:
host: 127.0.0.1
port: 3316
A number of environment variables needs to be created prior to the first deployment:
- DJANGO_SECRET_KEY
- OAUTH_KEY
- OAUTH_SECRET
- WIKIPEDIA_USERNAME
- WIKIPEDIA_PASSWORD
- TOOL_TOOLSDB_SCHEMA
- PYTHONUNBUFFERED
To prevent new reviews from being added while updating the system, admin_mode can be enabled
toolforge envvar create CBNG_ADMIN_ONLY true
Removing the env var or setting to a value other than true will disable admin_mode.
Ideally everything would be deployed on push, however web services are not currently supported.
For now, things can be managed using fabric as with the production bot.
fab deploy
When webservices are supported, migrating jobs.yaml to a component config should be reasonably straight forward.