Page MenuHomePhabricator

logevents query returns zeros for logid & pageid
Closed, ResolvedPublic

Description

From [[mw:Talk:API:Query - Lists]]:

The response XML always returns 'logid="0"'
[[user_talk:jldupont|Jean-Lou Dupont]] 21:08, 19 July 2007 (UTC)

Example:
http://en.wikipedia.org/w/api.php?action=query&list=logevents (logid & pageid are 0)


Version: unspecified
Severity: enhancement

Details

Reference
bz10660

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:49 PM
bzimport set Reference to bz10660.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Returning log_id to be zero is correct, since at the moment, we're faking the column until it's live on Wikimedia. Not sure what's causing the page_id to be zero, but I imagine it could have been an oversight leading to regression when I worked around the absence of log_id.

robchur wrote:

The page_id value is correct where applicable, i.e. where the log item corresponds to a title that exists. In general, page_id is of limited use when inspecting logs.

The correct log_id values can be returned when log_id is live on Wikimedia, as previously noted.

(In reply to comment #1)

Returning log_id to be zero is correct, since at the moment, we're faking the
column until it's live on Wikimedia.

Has this happened yet? If not, when will it happen?

No. No rush on it, as it doesn't look like a particularly pleasant operation.