⚓ T413390 Renaming a user still doubles their edit count (December 2025)
Page Menu
Phabricator
Create Task
Maniphest
T413390
Renaming a user still doubles their edit count (December 2025)
Open, Needs Triage
Public
BUG REPORT
Actions
Edit Task
Edit Related Tasks...
Create Subtask
Edit Parent Tasks
Edit Subtasks
Merge Duplicates In
Close As Duplicate
Edit Related Objects...
Edit Commits
Edit Mocks
Mute Notifications
Protect as security issue
Assigned To
matmarex
Authored By
matmarex
Dec 22 2025, 6:33 PM
2025-12-22 18:33:16 (UTC+0)
Tags
MediaWiki-extensions-CentralAuth
(Backlog)
MediaWiki-User-rename
(Backlog)
Library-Card-Platform
(Incoming tasks)
Moderator-Tools-Team
(Triaged)
MediaWiki-Platform-Team (Q3 Kanban Board)
(Blocked)
affects-Miraheze
(Backlog)
MW-1.46-notes (1.46.0-wmf.17; 2026-02-24)
Referenced Files
None
Subscribers
Aklapper
Johannnes89
matmarex
Nirmos
SomeRandomDeveloper
Description
Renaming a user apparently still doubles their edit count. It was supposed to be fixed in August in
T313900
by
. Either that patch didn't work, or the issue has regressed.
I learned about this today when folks from
The-Wikipedia-Library
reported that a user complained that they had a negative recent edit count (their edit count decreased).
They currently have 62,363 edits (
). Their edit count was recalculated as a result of Toki Pona Wikipedia import (
T411187#11481534
).
In October, they had "Total edit count: 113,642, Sum of local edit counts: 58,282" (
).
They were renamed in September (
).
This is also affecting renames occurring today. The latest global rename was
and
reports "Total edit count: 364, Sum of local edit counts: 182".
Details
Related Changes in Gerrit:
Subject
Repo
Branch
Lines +/-
Fix global edit count not being cleared when a user is renamed
mediawiki/extensions/CentralAuth
REL1_45
+1
-1
Fix global edit count not being cleared when a user is renamed
mediawiki/extensions/CentralAuth
master
+1
-1
Customize query in gerrit
Related Objects
Mentions
Mentioned Here
T313900: Renaming a user doubles their edit count according to CentralAuthUser::getGlobalEditCount() / global_edit_count.gec_count field
T411187: Add option to update global edit count for all users with a local account in a specific wiki
Event Timeline
matmarex
created this task.
Dec 22 2025, 6:33 PM
2025-12-22 18:33:16 (UTC+0)
Restricted Application
added a subscriber:
Aklapper
View Herald Transcript
Dec 22 2025, 6:33 PM
2025-12-22 18:33:17 (UTC+0)
Izno
changed the subtype of this task from "Task" to "Bug Report".
Dec 23 2025, 9:55 AM
2025-12-23 09:55:40 (UTC+0)
Samwalton9-WMF
added a project:
Library-Card-Platform
Jan 5 2026, 9:37 AM
2026-01-05 09:37:57 (UTC+0)
Restricted Application
added a project:
Moderator-Tools-Team
View Herald Transcript
Jan 5 2026, 9:37 AM
2026-01-05 09:37:58 (UTC+0)
Samwalton9-WMF
moved this task from
Inbox
to
Triaged
on the
Moderator-Tools-Team
board.
Jan 5 2026, 2:50 PM
2026-01-05 14:50:01 (UTC+0)
OWresch-WMF
moved this task from
Inbox, needs triage
to
Q3 Kanban Board
on the
MediaWiki-Platform-Team
board.
Jan 5 2026, 3:55 PM
2026-01-05 15:55:47 (UTC+0)
OWresch-WMF
edited projects, added
MediaWiki-Platform-Team (Q3 Kanban Board)
; removed
MediaWiki-Platform-Team
matmarex
renamed this task from
Renaming a user *still* doubles their edit count (December 2025)
to
Renaming a user still doubles their edit count (December 2025)
Jan 5 2026, 7:25 PM
2026-01-05 19:25:02 (UTC+0)
SomeRandomDeveloper
claimed this task.
Feb 21 2026, 2:09 AM
2026-02-21 02:09:47 (UTC+0)
gerritbot
added a comment.
Feb 21 2026, 2:12 AM
2026-02-21 02:12:19 (UTC+0)
Comment Actions
Change #1241052 had a related patch set uploaded (by SomeRandomDeveloper; author: SomeRandomDeveloper):
[mediawiki/extensions/CentralAuth@master] Fix global edit count not being cleared when a user is renamed
gerritbot
added a project:
Patch-For-Review
Feb 21 2026, 2:12 AM
2026-02-21 02:12:21 (UTC+0)
SomeRandomDeveloper
added a project:
affects-Miraheze
Feb 21 2026, 2:34 AM
2026-02-21 02:34:45 (UTC+0)
Johannnes89
subscribed.
Feb 21 2026, 7:56 AM
2026-02-21 07:56:53 (UTC+0)
matmarex
moved this task from
Essential Work
to
In Progress
on the
MediaWiki-Platform-Team (Q3 Kanban Board)
board.
Feb 23 2026, 10:18 PM
2026-02-23 22:18:57 (UTC+0)
gerritbot
added a comment.
Feb 23 2026, 10:28 PM
2026-02-23 22:28:56 (UTC+0)
Comment Actions
Change #1241052
merged
by jenkins-bot:
[mediawiki/extensions/CentralAuth@master] Fix global edit count not being cleared when a user is renamed
Maintenance_bot
removed a project:
Patch-For-Review
Feb 23 2026, 10:30 PM
2026-02-23 22:30:46 (UTC+0)
SomeRandomDeveloper
removed
SomeRandomDeveloper
as the assignee of this task.
Feb 23 2026, 10:30 PM
2026-02-23 22:30:57 (UTC+0)
SomeRandomDeveloper
subscribed.
Comment Actions
Unassigning myself as I assume
FixRenamedUserGlobalEditCount
has to be run after the fix is deployed through the train.
gerritbot
added a comment.
Feb 23 2026, 10:32 PM
2026-02-23 22:32:47 (UTC+0)
Comment Actions
Change #1242512 had a related patch set uploaded (by SomeRandomDeveloper; author: SomeRandomDeveloper):
[mediawiki/extensions/CentralAuth@REL1_45] Fix global edit count not being cleared when a user is renamed
gerritbot
added a project:
Patch-For-Review
Feb 23 2026, 10:32 PM
2026-02-23 22:32:49 (UTC+0)
SomeRandomDeveloper
added a comment.
Feb 23 2026, 10:36 PM
2026-02-23 22:36:17 (UTC+0)
Comment Actions
I've created a cherry pick for 1.45; 1.44 and below would require
to be backported as well.
ReleaseTaggerBot
added a project:
MW-1.46-notes (1.46.0-wmf.17; 2026-02-24)
Feb 23 2026, 11:00 PM
2026-02-23 23:00:22 (UTC+0)
gerritbot
added a comment.
Feb 23 2026, 11:39 PM
2026-02-23 23:39:33 (UTC+0)
Comment Actions
Change #1242512
merged
by jenkins-bot:
[mediawiki/extensions/CentralAuth@REL1_45] Fix global edit count not being cleared when a user is renamed
Maintenance_bot
removed a project:
Patch-For-Review
Feb 24 2026, 12:31 AM
2026-02-24 00:31:01 (UTC+0)
matmarex
claimed this task.
Feb 24 2026, 1:17 AM
2026-02-24 01:17:02 (UTC+0)
matmarex
moved this task from
In Progress
to
Blocked
on the
MediaWiki-Platform-Team (Q3 Kanban Board)
board.
Comment Actions
In
T413390#11642804
@SomeRandomDeveloper
wrote:
Unassigning myself as I assume
FixRenamedUserGlobalEditCount
has to be run after the fix is deployed through the train.
Yes. I will take care of that, after the patch is deployed and after I let
The-Wikipedia-Library
folks know that I will be adjusting the edit counts again (see
T313900#11184553
).
Thank you for finding the bug!
Nirmos
subscribed.
Mar 20 2026, 10:31 PM
2026-03-20 22:31:42 (UTC+0)
Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct.
Wikimedia Foundation
Code of Conduct
Disclaimer
CC-BY-SA
GPL
Credits
US