Page MenuHomePhabricator

Missing data of protected pages
Open, LowPublicFeature

Description

When querying blocks, I can use bkprop=timestamp|expiry|by.
For querying pages protected against creation there is ptprop=timestamp|expiry|user.
(Althogh "user" has a different meaning here as for blocks.)

What about other protections? A similar approp=blahblah is unfortunately missing fram allpages, or at least it is heavily undocumented on http://www.mediawiki.org/wiki/API:Allpages.

I was suggested to get expiration from query as
action=query&titles=title|title1&prop=info&inprop=protection

and mine the protection log for timestamp of beginning (and for the admin who protected, I suppose).
I can do that if necessary, but is complicated for me, slow for the bot and results in a greater server load.
Would be nice to handle blocks, protections and create-protections in similar way.


Version: 1.18.x
Severity: enhancement

Details

Reference
bz34187
TitleReferenceAuthorSource BranchDest Branch
Catalyst serves a list of charts with GET /chartsrepos/qte/catalyst/catalyst-api!13ebomaniT361879-2main
Customize query in GitLab

Related Objects

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:10 AM
bzimport set Reference to bz34187.
bzimport added a subscriber: Unknown Object (MLST).

That is not possible at the moment, because the "page restrictions" table does not store that information.

The "ipblocks" table and the "protected titles" table store information about the performer of that action and than you can query this information.

OK, then the category should be changed: this is no more an API bug, rather a database bug. :-) It should store for practical reasons written above.

I have create a new bug to track that, because without an own bug for category API the api part maybe is not implemented, after the database is changed.

Oh, I didn't think of that. Thank you!

Needs to use the log_search, see gerrit 105443

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:14 AM
Aklapper removed a subscriber: wikibugs-l-list.