Page MenuHomePhabricator

Track editors home wiki
Closed, DeclinedPublic

Description

As one of our KPIs we'd like to track how many accounts have been distributed to editors whose home Wiki (where they registered their account) isn't the English Wikipedia, to see how well we're doing at more globally focused outreach.

As a start, we need to begin tracking home wiki from OAuth again. We removed that information some time ago (T169526, https://github.com/WikipediaLibrary/TWLight/pull/62).

It would also be nice to let users update that information themselves after we set the default, but this is a future potential feature.

Event Timeline

From @jsn.sherman:

TL;DR
We can add home wiki to the editor data we fetch from the globaluser api. It'll be an easy task.
Long rambling history of us looking at how to think about this:
we previously kept an attribute called 'home wiki' back when users had to pick a project as an id source for sso, but it didn't mean the same thing as the central auth home wiki. It just tracked which project the user signed in from. We dropped that user data from the platform when we moved to sso with meta, since it was no longer required for sign in.
We chose not to pull it in from the api, because there wasn't really documentation for it, but there was an SUL migration thread about how the home wiki determination could be somewhat arbitrary.
Today I took a look at the central auth code that determines the home wiki, and actually it's very reasonable. It tries to determine an actual primary account based on how the user came into central auth; if it can't do that, it just goes by highest edit count.
https://github.com/wikimedia/mediawiki-extensions-CentralAuth/blob/475e474bf08c0b44d14371bddfaf879c68ea9cc2/includes/CentralAuthUser.php#L734-L773

Samwalton9-WMF lowered the priority of this task from Medium to Low.Oct 1 2020, 8:50 AM
Samwalton9-WMF moved this task from Open tasks to Incoming tasks on the Library-Card-Platform board.

This isn't data we currently need.