Multiple MobileWebSearch events have been logged that fail to validate, e.g.
{ "action": "click-result", "clickIndex": 4, "platform": "mobileweb", "platformVersion": null, "searchSessionToken": "...", "timeOffsetSinceStart": 9263, "userSessionToken": "..." }
The validation error is as follows:
None is not of type 'string'
The error appears to be occurring because the platformVersion field is set to null. The value of the platformVersion field is set to that of $wgMFMode, which is null when Minerva is in "desktop mode".
Suggested fix
- Make MobileWebSearch.platformVersion an optional field
- Update MobileFrontend to use the new revision of the schema
Notes
- I suspect that this bug has been present for quite a long time but we just haven't seen it until recently as there hasn't been visibility into EventLogging validation errors.