Page MenuHomePhabricator

Wildcard check configuration
Closed, ResolvedPublic

Description

Add a new edit check config group * which applies default values to all other specific check configurations.

Example MediaWiki:editcheck-config.json

{
    "*": {
        "account": "loggedout",
        "maximumEditocount": 100
    },
    "tone": {
        "account": "loggedin",
        "ignoreSections": ["Exaggerated claims", "Baseless speculation"],
        "maximumEditcount": 10000000
    },
}

Can also do e.g. "*": { enabled: false } to disable all checks that are not explicitly enabled.

(This was already implemented in T400506, but is being broken out here for documentation and testing.)

Event Timeline

QA note: we're specifically interested in making sure that "*": { enabled: false } doesn't cause any issues, because Growth is probably going to need to use that on enwiki soon.

@DLynch: I noticed on Beta cluster that when I am adding this configuration "*": { enabled: false } it disables all the checks including the Reference Check which was (explicitly?) enabled in the config. Is the "explicitly enabled" in the task description meant checks that are made "Default-on"?

If you have a config file that contains e.g.:

{
    "addReference": { enabled: true },
    "*": { enabled: false }
}

Then the add reference check should still be enabled. I'd need to see the exact version of the config file you were working with to comment on other possible causes.

Ryasmeen edited projects, added: Verified; removed: Editing QA.

If you have a config file that contains e.g.:

{
    "addReference": { enabled: true },
    "*": { enabled: false }
}

Then the add reference check should still be enabled. I'd need to see the exact version of the config file you were working with to comment on other possible causes.

Got it, thanks! Yes, it is behaving the way you described. When I add the wildcard check configuration to disable all checks, it does not overwrite the configuration for the check that is explicitly set as true in the config file.