Page MenuHomePhabricator

Invalid values are sent to MobileWikiAppiOSUserHistory because of localization
Closed, ResolvedPublic

Description

In https://meta.wikimedia.org/wiki/Schema:MobileWikiAppiOSUserHistory , the field "theme" only accept one of ['default', 'sepia', 'dark', 'black'], but invalid strings are sent to this field now because the theme names are translated into the local languages. Is there a way to map them back to English so that we're only sending ['default', 'sepia', 'dark', 'black'] to eventlogging?

Example error message:

u'predefinito' is not one of ['default', 'sepia', 'dark', 'black']
u'donker' is not one of ['default', 'sepia', 'dark', 'black']
u'dunkel' is not one of ['default', 'sepia', 'dark', 'black']
u'escuro' is not one of ['default', 'sepia', 'dark', 'black']
u'fekete' is not one of ['default', 'sepia', 'dark', 'black']
u'\u9ed8\u8ba4' is not one of ['default', 'sepia', 'dark', 'black']

Event Timeline

JoeWalsh triaged this task as Medium priority.Oct 19 2018, 5:07 PM

Confirm that this has been resolved since v6.1.0

SELECT *
FROM eventerror
WHERE event.schema = 'MobileWikiAppiOSUserHistory'
AND year=2018 AND month=12 AND day=13
AND event.rawevent LIKE '%WikipediaApp/6.1%'