Page MenuHomePhabricator

if logEvent fails due to not matching Schema requirements, it should return false (or an error) instead of true
Closed, DeclinedPublic

Description

Right now, if you pass data to logEvent that doesn't match the schema, it will fail silently. It would be nice if it returned false or an error.


Version: unspecified
Severity: normal

Details

Reference
bz73678

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:57 AM
bzimport set Reference to bz73678.
bzimport added a subscriber: Unknown Object (MLST).

Right now, if you pass data to logEvent that doesn't match the schema, it will fail silently.
It would be nice if it returned false or an error.

The schema validation is asynchronous (on purpose) and it is done on the receiver end (not the sending end) but you can easily test validation on vagrant before events are "released in the wild".

Let us know if this makes sense, some docs: http://www.mediawiki.org/wiki/Extension:EventLogging/Guide#Installing_the_EventLogging_devserver

kaldari claimed this task.