Page MenuHomePhabricator

lonelypages only checks site language, rather than checking template exists
Closed, DeclinedPublic

Description

The lonelypages script only has a dictionary of languages, and if an entry exists in the dictionary for the site language, the script runs.

As a result of a very recent i18n change (https://gerrit.wikimedia.org/r/#/c/199579/), this means that the script runs on wikidata using the English configuration, even though this is inappropriate as the template {{Orphan}} in the English configuration is not present on that site (https://www.wikidata.org/wiki/Template:Orphan).

Event Timeline

jayvdb raised the priority of this task from to Medium.
jayvdb updated the task description. (Show Details)
jayvdb added a project: Pywikibot.
jayvdb added subscribers: Unknown Object (MLST), jayvdb, Aklapper.

fwiw, this is currently causing a build breakage - https://travis-ci.org/wikimedia/pywikibot-core/jobs/56654900#L461 . however the problem is larger, as the script would also run on English Wikisource, which the script doesnt support and will behave sub-optimally as {{orphan}} on English Wikisource is implemented differently.

By the way I think it's the other way around: With T94679 fixed this would be a relatively easy task.

Change 201446 had a related patch set uploaded (by XZise):
[FEAT] Load the settings from wiki

https://gerrit.wikimedia.org/r/201446

Xqt subscribed.

lonelypages.py script has been removed. Please file a task if you want to use it; i will be recovered then.