checkuserlog API documentation references non-existent "culstart" and "culend"
Open, Needs TriagePublic

Description

https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bcheckuserlog

culdir: In which direction to enumerate:

  • newer: List oldest first. Note: culstart has to be before culend.
  • older: List newest first (default). Note: culstart has to be later than culend.

and yet the only time-related properties defined are:

culfrom: The timestamp to start enumerating from.

culto: The timestamp to end enumerating.

I'd love it if this supported start and stop, as that'd give us consistency with logevents. But the as-documented parameters don't exist.

lfaraone created this task.Sep 21 2015, 1:26 AM
lfaraone updated the task description. (Show Details)
lfaraone raised the priority of this task from to Needs Triage.
lfaraone added projects: CheckUser, MediaWiki-API.
lfaraone added subscribers: lfaraone, Legoktm.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 21 2015, 1:26 AM
Krenair added a subscriber: Krenair.Feb 7 2016, 5:45 AM

The code:

			'dir' => array( "In which direction to enumerate}",
				" newer          - List oldest first. Note: {$p}from has to be before {$p}to.",
				" older          - List newest first (default). Note: {$p}from has to be later than {$p}to." ),

Probably just copied from somewhere else...

Restricted Application added subscribers: JEumerus, StudiesWorld. · View Herald TranscriptFeb 7 2016, 5:45 AM

So logevents has these:

	"apihelp-query+logevents-param-start": "The timestamp to start enumerating from.",
	"apihelp-query+logevents-param-end": "The timestamp to end enumerating.",

And checkuserlog these:

			'from'   => 'The timestamp to start enumerating from',
			'to'     => 'The timestamp to end enumerating',

Basically, culfrom is like lestart and culto is like leend? Should we just alias start/end -> from/to for consistency in checkuserlog?

Anomie added a subscriber: Anomie.Feb 7 2016, 11:14 PM

The code:

			'dir' => array( "In which direction to enumerate}",
 				" newer          - List oldest first. Note: {$p}from has to be before {$p}to.",
 				" older          - List newest first (default). Note: {$p}from has to be later than {$p}to." ),

Probably just copied from somewhere else...

Note that getParamDescription() that you quoted that code from is deprecated since 1.25.