In T374077: [SPIKE] Investigate how to install ORES in idwiki [8HRS] we investigated the steps to install ORES on idwiki.
Now we need to actually install it.
Steps to install ORES extension on idwiki:
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="T382171" -- extensions/WikimediaMaintenance/createExtensionTables.php --wiki=idwiki ores
Extension:
- Update any i18n system messages:
If we want to add revertrisk we would also need the i18n id.json file in the extension repo updated with the appropriate labels. (Done in this patch)
Config:
- Add idwiki to the list of wikis in the wgOresUiEnabled config variable.
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
mwscript-k8s --comment="T382171" -- 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)