Page MenuHomePhabricator

Echo: Drop droppable rows from user_properties
Open, MediumPublic

Description

In T353225, we enabled conditional defaults for four Echo properties:

  • echo-subscriptions-web-reverted
  • echo-subscriptions-web-article-linked
  • echo-subscriptions-email-mention
  • echo-subscriptions-email-article-linked

This stopped the influx of new rows to user_properties by Echo's onLocalUserCreated, as those properties default to the new defaults (false for echo-subscriptions-web-reverted, true for the rest) starting 20240208200000.

It should now be possible to drop old rows (from 20130501000000 onwards) by changing the cutoff date and deleting the rows (while keeping in mind the effective user property values should not change for any users). See T353225#9524337 for a previous attempt by @Urbanecm_WMF on testwiki.

Per the following comment by @Ladsgroup, I'm assigning this task to them.

I will take over the clean up, just please deploy the change ASAP so it stops adding more rows.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Ladsgroup triaged this task as Medium priority.Feb 8 2024, 11:01 PM

I will get to it next week.

Change 1003408 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[operations/mediawiki-config@master] Enable echo conditional defaults for loginwiki since 2013

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

Change 1003408 merged by jenkins-bot:

[operations/mediawiki-config@master] Enable echo conditional defaults for loginwiki since 2013

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

Mentioned in SAL (#wikimedia-operations) [2024-02-14T17:36:05Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:1003408|Enable echo conditional defaults for loginwiki since 2013 (T357072)]]

Mentioned in SAL (#wikimedia-operations) [2024-02-14T17:39:02Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:1003408|Enable echo conditional defaults for loginwiki since 2013 (T357072)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-02-14T17:48:14Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:1003408|Enable echo conditional defaults for loginwiki since 2013 (T357072)]] (duration: 12m 08s)

Sigh for loginwiki it's this:

mysql:research@s3-analytics-replica.eqiad.wmnet [loginwiki]> select up_property, count(*) from user_properties group by up_property order by count(*) desc limit 50;
+------------------------------------------+----------+
| up_property                              | count(*) |
+------------------------------------------+----------+
| wlenhancedfilters-seen-tour              | 20382152 |
| rcenhancedfilters-seen-tour              | 20382130 |