In this task we plan to enable the ORES extension with the revertrisk language agnostic filter in the following wikis:
azwiki, lawiki, mkwiki, mlwiki, mrwiki, nnwiki, pawiki, swwiki, tewiki, tlwiki
Steps to install ORES extension:
Databases:
- Create the ores_model and ores_classification tables.
The standard way is to use https://github.com/wikimedia/mediawiki-extensions-WikimediaMaintenance/blob/master/createExtensionTables.php, but it's not added there so we should add it.
See https://wikitech.wikimedia.org/wiki/Creating_new_tables#Deployment
mwscript-k8s --comment="T395824" -- extensions/WikimediaMaintenance/createExtensionTables.php --wiki=idwiki ores
Extension:
Update any i18n system messages:
For the batch of wikis this will likely happen after we release the feature.
Config:
- Add the wikis to the list of wikis in the wgOresUiEnabled config variable and deploy without enabling the UI.
Define the models that are going to be used for id wiki by adding an idwiki entry in the wgOresModels var.
Here we should make sure we disable the models that are enabled by default (damaging and goodfaith) and define the models explicitly that we want to use.
Backfill
- Run backfill job
example:
mwscript-k8s --comment="T395824" -- extensions/ORES/maintenance/PopulateDatabase.php --wiki=idwiki
- Enable filters in the UI (switch the wgOresUiEnabled config variable in ext-ORES.php file in wmf-config to true) , mkwiki,,,,,,,
| Wiki | Create Tables | Enable Extension Without UI | Backfill Table | Enable UI |
|---|---|---|---|---|
| azwiki | ✅ | ✅ | ✅ | ✅ |
| lawiki | ✅ | ✅ | ✅ | ✅ |
| mkwiki | ✅ | ✅ | ✅ | ✅ |
| mlwiki | ✅ | ✅ | ✅ | ✅ |
| mrwiki | ✅ | ✅ | ✅ | ✅ |
| nnwiki | ✅ | ✅ | ✅ | ✅ |
| pawiki | ✅ | ✅ | ✅ | ✅ |
| swwiki | ✅ | ✅ | ✅ | ✅ |
| tewiki | ✅ | ✅ | ✅ | ✅ |
| tlwiki | ✅ | ✅ | ✅ | ✅ |