Page MenuHomePhabricator

Tool Labs: Add skin, language, and variant to user_properties_anon
Closed, ResolvedPublic

Description

These were exposed in a nonanonymous fashion until recently. Removing those made sense, however for statistical analysis and metric reporting, they should remain exposed in an anonymized fashion.

For example, how many % of users use the MonoBook skin? Or how many % of users have their language preferences set to something other than English on English Wikipedia etc. These reports are periodically generated from Tool Labs, but are now broken due to their removal.

These reports never needed the user-specific information. The reports only used the user_properties table because they were absent in user_properties_anon.

See also:

Either way, does this mean we can add these two up_property values to the user_properties_anon whitelist before or after they are removed from user_properties?

Yes, I think adding skin, variant and language to user_properties_anon whitelist makes sense. I would like to not add timecorrection unless someone can come up with a persuasive use case, since that property is so much more sensitive (due to location correlation).

Event Timeline

Krinkle triaged this task as High priority.Nov 30 2016, 8:59 PM
Krinkle added a project: Regression.
Krinkle added subscribers: chasemp, coren, Platonides and 2 others.

Does anybody know how to accomplish this change to the user_properties_anon view?

Change 344302 had a related patch set uploaded (by Reedy):
[operations/puppet@production] Add skin, language, and variant to user_properties_anon

https://gerrit.wikimedia.org/r/344302

Change 344302 merged by Andrew Bogott:
[operations/puppet@production] Add skin, language, and variant to user_properties_anon

https://gerrit.wikimedia.org/r/344302

I merged the puppet change, but maybe this needs to be run by hand -- I've never done it.

I merged the puppet change, but maybe this needs to be run by hand -- I've never done it.

for now it does:

maintain-meta_p --all-databases --purge --debug

on labsdb1001/1003/1009/1010/1011

I merged the puppet change, but maybe this needs to be run by hand -- I've never done it.

for now it does:

maintain-meta_p --all-databases --purge --debug

on labsdb1001/1003/1009/1010/1011

"It" does, what does? Does puppet automatically run this command on those particular hosts when this file changes? From what I can see neither the view on actual wiki dbs nor the meta_p.properties_anon_whitelist table was updated.

"for now it does" == the script needs to be run by someone with access to labsdb1001/1003/1009/1010/1011.

Andrew claimed this task.

ok, I applied https://gerrit.wikimedia.org/r/#/c/347854/ and then ran maintain-meta_p --all-databases --purge --debug on the db boxes. Should be all set.