Page MenuHomePhabricator

cutimecond API parameter either does the wrong thing or has a misleading description
Closed, ResolvedPublic

Description

The parameter is currently described as "Time limit of user data (like "2 weeks")".

If you enter "2 weeks" this will set the timestamp in the SQL query to a time in the future and no results will be returned.
Instead one must enter "2 weeks ago" in order to get any results.

Either the description of the parameter is wrong
OR
The logic is wrong

Event Timeline

Addshore raised the priority of this task from to Medium.
Addshore updated the task description. (Show Details)
Addshore added a project: CheckUser.
Addshore added a subscriber: Addshore.

I'd prefer not to make breaking changes, let's fix the docs?

The default is -2 weeks. Note the negative.

Change 268930 had a related patch set uploaded (by Alex Monk):
API: Clarify cutimecond behaviour in docs/errors

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

Change 268930 merged by jenkins-bot:
API: Clarify cutimecond behaviour in docs/errors

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