Page MenuHomePhabricator

Add API for querying the FlaggedRevs protection level
Closed, ResolvedPublic

Description

It seems we can set the protection level with action=stabilize, but there does not seem to be any way to read the current protection level via the API. This could be added to action=query&prop=flagged, or a separate prop could be added. Or it could be added to action=query&prop=info&inprop=protection with other protection information, but I don't think there's a hook for that at this time.


Version: unspecified
Severity: enhancement

Details

Reference
bz24068

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:59 PM
bzimport set Reference to bz24068.

This should probably wait till the code fork.

sumanah wrote:

What fork? Has the fork already happened?

Twinkle on enwiki would love to consume this data.

All it takes is a join onto flaggedpage_config to get the fpc_level and fpc_expiry fields, in api/reports/ApiQueryFlagged.php. If only I could code it myself.

Change 47216 merged by Anomie:
(bug 24068) Add protection level to ApiQueryFlagged

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