Page MenuHomePhabricator

action=feedrecentchanges doesn't interpret parameters (timestamps, booleans) like the rest of the API
Closed, ResolvedPublic

Description

http://www.mediawiki.org/w/api.php?action=feedrecentchanges&from=2015:04:30%2023:44:55 is in the future but still retrieves items,
proving that from= is totally ignored.

Event Timeline

Jidanni created this task.Apr 25 2015, 4:18 AM
Jidanni updated the task description. (Show Details)
Jidanni raised the priority of this task from to Normal.
Jidanni added a project: MediaWiki-API.
Jidanni added a subscriber: Jidanni.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 25 2015, 4:18 AM
Jidanni updated the task description. (Show Details)Apr 25 2015, 4:19 AM
Jidanni set Security to None.
Anomie added a subscriber: Anomie.EditedApr 25 2015, 11:28 AM

proving that from= is totally ignored.

Not quite. It works if you specify the timestamp in MediaWiki's internal format, like https://www.mediawiki.org/w/api.php?action=feedrecentchanges&from=30150430234455 instead of https://www.mediawiki.org/w/api.php?action=feedrecentchanges&from=3015:04:30%2023:44:55

Change 206512 had a related patch set uploaded (by Anomie):
API: Fix parameter interpretation in ApiFeedRecentChanges

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

Anomie moved this task from Unsorted to Needs Review on the MediaWiki-API board.Apr 25 2015, 11:29 AM
Anomie renamed this task from action=feedrecentchanges&from ignored to action=feedrecentchanges doesn't interpret parameters (timestamps, booleans) like the rest of the API.
Anomie claimed this task.

Change 206512 merged by jenkins-bot:
API: Fix parameter interpretation in ApiFeedRecentChanges

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

Anomie closed this task as Resolved.Apr 28 2015, 11:56 AM

This should be deployed to WMF wikis with 1.26wmf4, see https://www.mediawiki.org/wiki/MediaWiki_1.26/Roadmap for the schedule.