Page MenuHomePhabricator

Use for Deletion and Maintenance templates list an on-wiki JSON
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
Remove hard-coding of template names from the extension. Move to an on-wiki json file. See {T259835#7518714}
Deletion tags: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/PageTriage/+/refs/heads/master/modules/ext.pageTriage.tagData/deletionTags.json
Maintenance tags: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/PageTriage/+/refs/heads/master/modules/ext.pageTriage.tagData/maintenanceTags.json

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

Benefits (why should this be implemented?): Changes to any template names will not need any change to the extension code and will be more immediate.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@MPGuy2824 thanks for filing this. Just noting that there is some prior art here for you to consider in the GrowthExperiments extension's community configuration feature. Config is managed in a JSON page, but with a Special page to make it easier to write to this page (Special:EditGrowthConfig), for avoiding errors in writing to the config, making it easier for non-technical users, etc.

Our implementation is specific to features managed by GrowthExperiments, but maybe this is an opportunity to think about a shared feature in MediaWiki core.

OTOH, if you just want to build something quickly specific to PageTriage, looking through the Config code in GrowthExperiments might give you some implementation ideas.

HouseBlaster renamed this task from Move wiki-specific template names to an on-wiki .json to Move wiki-specific template names from PageTriage to an on-wiki .json.Dec 3 2022, 7:48 PM
HouseBlaster moved this task from Unsorted to Move on the Technical-Debt board.
Iniquity renamed this task from Move wiki-specific template names from PageTriage to an on-wiki .json to Use for Deletion and Maintenance templates list an on-wiki JSON.May 5 2025, 6:36 PM

There's some history here. These use to be an on wiki .js file. I moved them into the repo and converted them to json. Having them in the repo lets us keep the code linted properly, enforced by our continuous integration tests.

It is also useful for localhost and testwiki testing. The json is already created and up to date.

Will need to give it some thought if it is a good idea to move it back out of the repo.

There's some history here. These use to be an on wiki .js file. I moved them into the repo and converted them to json. Having them in the repo lets us keep the code linted properly, enforced by our continuous integration tests.

It is also useful for localhost and testwiki testing. The json is already created and up to date.

Will need to give it some thought if it is a good idea to move it back out of the repo.

Are you ready to react to every +2 from every wiki that wants to make changes? :)

There's some history here. These use to be an on wiki .js file. I moved them into the repo and converted them to json. Having them in the repo lets us keep the code linted properly, enforced by our continuous integration tests.

Second thought, maybe the Growth-Team will help, maybe there is a way to create an additional GUI page for extension for Deletion and Maintenance templates list through СС. CC has different forms: https://ru.wikipedia.org/wiki/Special:CommunityConfiguration/HelpPanel (look at Help panel links).