Page MenuHomePhabricator

Add iOS to WikipediaApp value in useragent for all in app events
Open, Needs TriagePublic

Description

When looking at edits in mediawiki_history I found a number of edits made using the iOS app that were not tagged as ios app edit in column revision_tags- after researching these edits by revision_id I found that they were all made by users with iPadOS Tablet values in their useragent data. It looks like the Mobile app extension that adds the ios app edit tag is not set up to assign iPadOS edits to ios app editcategory. This issue

After discussion it was proposed that instead of changing the Mobile app extension to recognize iPadOS we could instead append iOS to the WikipediaApp/version value that is sent with useragent data.

Also noting here that the value for os_family in useragent is still (and has been) assigned to iOS even for events originating from iPadOS so we can see them in our internal data. However that filter is applied it is able to recognize iOS devices both Phone and Tablet.

Engineering Notes

Android hardcodes "Android" into their user agent name, so we should do the same. We should swap out systemName with a hardcoded iOS to fix any backend logic targeting the string "iOS". We already have "Phone" and "Tablet" at the end so that will provide us extra context about iPhone vs iPad.

Event Timeline

This task is a back-up (extra assurance) in addition to Dmitry's patch

Tsevener raised the priority of this task from Low to Needs Triage.Tue, Jun 11, 5:17 PM
Tsevener updated the task description. (Show Details)

Thank you for tagging this task with good first task for Wikimedia newcomers!

Newcomers often may not be aware of things that may seem obvious to seasoned contributors, so please take a moment to reflect on how this task might look to somebody who has never contributed to Wikimedia projects.

A good first task is a self-contained, non-controversial task with a clear approach. It should be well-described with pointers to help a completely new contributor, for example it should clearly pointed to the codebase URL and provide clear steps to help a contributor get setup for success. We've included some guidelines at https://phabricator.wikimedia.org/tag/good_first_task/ !

Thank you for helping us drive new contributions to our projects <3