Page MenuHomePhabricator

Write to the user_is_temp column
Closed, ResolvedPublic

Description

The user_is_temp column was added to WMF wikis in T336886: Add user_is_temp field to the user table in MediaWiki core and was added to mediawiki/core in T333223: Adding user_is_temp to the user table.

This task is about writing to this column for code that creates temporary accounts so that the user_is_temp column is populated with the correct values. Currently, the code in charge of creating temporary accounts does not cause this column to be written to.

Acceptance criteria
  • Start writing to user_is_temp in the user table with the value 1 when the user is a temporary account

QA Results - Visual Studio

Details

Event Timeline

I'm sure there is patch for this already by Thalia and has a -2 or something like that.

I'm sure there is patch for this already by Thalia and has a -2 or something like that.

yup, https://gerrit.wikimedia.org/r/c/mediawiki/core/+/918514/

Change 918514 had a related patch set uploaded (by Dreamy Jazz; author: Tchanders):

[mediawiki/core@master] Set user.user_is_temp when creating a temporary user

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

Change 918514 merged by jenkins-bot:

[mediawiki/core@master] Set user.user_is_temp when creating a temporary user

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

@Tchanders The user_is_temp in the user table shows a value of "1" and new created user as "0" as seen in the screenshots below. This will be moved to Done. Thanks for all your work!

Status: ✅PASS
Environment: Visual Studio
OS: macOS Sonoma 14.2.1
Browser: Chrome 120
Skins. N/A
Device: MBA M2
Emulated Device:: n/a
Test Links:
N/A

✅AC1: https://phabricator.wikimedia.org/T355175

Temp UserUser created
2024-01-29_11-57-10.png (914×469 px, 66 KB)
2024-01-29_11-56-49.png (567×174 px, 19 KB)