On Wed, Mar 13, 2019 at 10:50 PM Max Semenik <maxsem.wiki(a)gmail.com> wrote:
I don't think it's possible to filter by
flagged status
Not as such. You can use the list=reviewedpages API module which will list
changes needing review (it should probably get some award for most
confusing module name), starting from most recent. It will not include new
pages which have never been reviewed, though.
On Thu, Mar 14, 2019 at 1:58 AM Сибирев Кирилл <sibirev(a)yandex-team.ru>
wrote:
As far as i understand this flagged data contains
stable revision for
pages, which are have pending changes protection enabled and when flag is
missing means it is disabled, is that correct?
Depends on the wiki, some are configured to have opt-in pending changes
protection and only manually protected pages will have a stable revision;
for some wikis flagged revisions are the default and all pages will have a
stable revision assuming someone did review the page at some point (so
recently created pages might not have a stable version yet). And many wikis
have not enabled flagged/pending changes features at all and the API will
just error out on prop=flagged.
Also is it possible to get all page revisions through this generator, so i
can find stable content or it can only be acomplished
with another page
revisions query? When i add prop=revisions
(prop=flagged|revisions&generator=recentchanges) — i get only one latest
revision.
I think your best bet is making a new request for the specified revisions.