Page MenuHomePhabricator

Add OAuth and route to delete pickle files
Open, Needs TriagePublicFeature

Description

Feature summary:

Add a new route, say i.e. /delete/en/api/v1.0.0-beta/{article_title}/ protected by an OAuth login wall. Usage restricted to sysops on respective wikis (or just say, the delete permission).

Use case(s):

Allows the community to make informed decisions on at least (trying) to fix broken pickles, n.b. T434097: Who Wrote That? is giving incorrect results.

Notes

Sometimes deleting won't help and the pickle will never be re-generated, especially for very large pages where it is too costly to rebuild using the Action API. Perhaps when an article programmatically is deemed too expensive to regenerate on-the-fly, we immediately put it in the woker-long queue, or maybe even a new worker-dump queue, that downloads the XML for the respective article and queues an XML import. Note however using Special:Export or its API by itself to get the XML is insufficient, based on my attempts to do this in the past.