Add FlaggedRevs support to Pywikibot. Current idea is to add following functions to Pywikibot and cover all FlaggedRevs API functions. Please leave comments about the function names and places where they would be implemented.
Older tickets: T57081
Generators
- unreviewedpages() generator
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#list=unreviewedpages
- example: https://github.com/zache-fi/PendingChangesBot/blob/master/pendingchanges.py#L485
- use same parameters than API
- oldreviewedpages() generator
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#list=oldreviewedpages
- example: https://github.com/zache-fi/PendingChangesBot/blob/master/pendingchanges.py#L493
- use same parameters than API
- add parameter for returning pages with only pending changes from single user() OR if this is complex to implement then
- add parameter for returning pages with only pendingrevision
- configuredpages() generator
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#list=configuredpages
- use same parameters than API
Site functions
- _apisite.review_revision() -- T408389
- reviews single revision
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#action=review
- review single revision
- _apisite.stabilize()
- Changes page stabilization settings.
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#action=stabilize
- make it work similarly than site.protect()
_apisite.flagconfig()- Likely under deprecating
- Shows information about review flag configuration.
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#action=flagconfig
Page functions
- _basepage.stable_revision()
- return latest stable revision
- make it work similarly than page.latest_revision()
- _basepage.stable_revision_id()
- return latest stable revision id
- make it work similarly than page.latest_revision_id()
- _basepage.flagged_state()
- get information about the flagging status of the given page
- API: https://fi.wikipedia.org/w/api.php?action=query&prop=info%7Cflagged&titles=Gone_with_the_Sin
- _basepage.pending_changes_only_from_single_user()
- Return true if the page has pending changes only from single user
11 _basepage.review_revision()
- wrapper to site.review_revision()
12 _basepage.stabilize()
- wrapper to site.stabilize()