API talk:RecentChanges

From mediawiki.org
(Redirected from API talk:Recentchanges)
Latest comment: 3 years ago by Nokib Sarkar in topic rctag

What is the rationale for why you need the patrol right to request the patrolled flag? Shouldn't it be public knowledge what has or hasn't been patrolled? Leucosticte (talk) 07:54, 6 November 2012 (UTC)Reply

shouldn't Excludeuser be a list?[edit]

Hi, I think that rcexcludeuser must be a list or other wise I don't see what's its meaning Katkov Yury (talk) 16:13, 6 September 2013 (UTC)Reply

I use it to exclude my edits. Kaligula (talk) 17:23, 7 September 2013 (UTC)Reply

rcstart[edit]

I don't understand sth – McZusatz wrote it cannot be > 30 days and added 2 links: one saying 13 weeks (MediaWiki manual) and another saying 30 days (github). Kaligula (talk) 15:36, 22 December 2013 (UTC)Reply

The article appears to have fixed that, but now I don't understand something else: How should an API client go about determining the value of $wgRCMaxAge on a particular wiki without access to its LocalSettings.php? I don't see anything in API:Meta about it. And on English Wikipedia, calls appear not to return any indication of error when rcstart is older. --Damian Yerrick (talk) 15:34, 28 June 2014 (UTC)Reply

rctitles removed?[edit]

It seems that the `rctitles` parameter has been removed.[1] I get "Unrecognized parameter: 'rctitles'" warning when trying to fetch specific titles using this module. -- Dalba 10 Mehr 1393/ 12:19, 2 October 2014 (UTC)Reply

You're right. It was apparently removed the version after it was added, so it appears in 1.14 only. – RobinHood70 talk 21:50, 2 October 2014 (UTC)Reply
I was going to get all unpatrolled edits of an article using API. To do so I first got all needed revisions (action=query&prop=revisions&titles=...) and then compared the results with patrolled logs. (action=query&list=logevents&leprop=details&letype=patrol&letitle= ...)
But because of bugzilla:40624 I was not able to detect edits that are patrolled by rollback.
Now knowing that rctitles does not exist anymore, do you know a better way to do this? Dalba 23 Aban 1393/ 08:00, 14 November 2014 (UTC)Reply
There really are no good ways to do that, at least not that I can find, though there are a few bad ways that come to mind. :)
  • Query all recent changes in the correct namespace, then just filter out any that aren't the title you're looking for. On something the size of Wikipedia, though, that could be a lot of data to sift through.
  • Using your prop=revisions query, get the timestamps of all the revisions, then send a whole bunch of recentchanges queries using rcstart and rcend to narrow the results down to those specific timestamps. You'd still have to filter out titles you're not interested in (for cases where edits were made with the same timestamp, but on a different page), but there'd be a lot less to filter out unless the wiki you're dealing with is very inactive.
  • You might also be able to get there by watching the page and then using API:Watchlist feed, but that's a real hack of a way to do it and would probably be hard to work with. – RobinHood70 talk 22:13, 14 November 2014 (UTC)Reply

rcnamespace[edit]

Can rcnamespace take more than one value? The wording ("Only list changes in these namespaces") suggests it can, but how can you enter more than one value? Cumbril (talk) 05:13, 8 April 2015 (UTC)Reply

Answering my own question: yes, it can take multiple values, separated by | character. Cumbril (talk) 05:27, 8 April 2015 (UTC)Reply

rcstart ($wgRCMaxAge value) and dumps[edit]

Since from time to time the http://dumps.wikimedia.org/ does not provide dumps for over 30 days the value of $wgRCMaxAge must be at least synchronized with the last dump. I think at least with pages-meta-current dump. Even better do not purge changes until we have a new complete dump. And allow to set rcstart to that value. --85.72.40.33 17:25, 20 June 2015 (UTC)Reply

Agreed. 30 days is pretty tight anyway. -- Green Cardamom (talk) 18:50, 19 March 2017 (UTC)Reply

rctag[edit]

How can I provide rctag multiple values i.e both mw-undo and mw-rollback in the same query request? I tried rctag=mw-rollback|mw-undo but failed. Nokib Sarkar (talk) 14:46, 21 May 2020 (UTC)Reply