It really should be core functionality...
Version: unspecified
Severity: enhancement
URL: http://www.mediawiki.org/wiki/Extension:Renameuser
It really should be core functionality...
Version: unspecified
Severity: enhancement
URL: http://www.mediawiki.org/wiki/Extension:Renameuser
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Stalled | Request | None | T331218 Archive the RenameUser extension | ||
Resolved | Pppery | T344896 MediaWiki.org Renameuser doc updates post merge into core | |||
Open | None | T28751 Extensions that should really be core functionality (tracking) | |||
Resolved | Feature | None | T27482 Merge RenameUser into core | ||
Resolved | PRODUCTION ERROR | Zabe | T331685 Error: Interface 'MediaWiki\Extension\Renameuser\Hook\RenameUserSQLHook' not found |
This extensions was bundled (by you) :) and it sits now under "Closed" at http://www.mediawiki.org/wiki/List_of_extensions_to_be_merged_to_the_core#Renameuser
There hasn't been any progress here since 2010. Should we resolve this as WONTFIX?
(In reply to comment #1)
This extensions was bundled (by you) :) and it sits now under "Closed" at
http://www.mediawiki.org/wiki/
List_of_extensions_to_be_merged_to_the_core#RenameuserThere hasn't been any progress here since 2010. Should we resolve this as
WONTFIX?
I think we should do this, rather than just bundling the extension; it's what people will expect of administrator toolsets nowadays.
(In reply to comment #3)
There hasn't been any progress here since 2010. Should we resolve this as
WONTFIX?I think we should do this, rather than just bundling the extension; it's what
people will expect of administrator toolsets nowadays.
Closing. Please reopen if you disagree.
Agreed; this is something we should merge.
CC'ing Chris who would be most likely the one responsible. (Sorry, Chris. :-))
It'd be awfully nice to clean up the database schema before doing this, but it's not strictly a blocker.
Please give a deeper elaboration reason other than "we should" when we already have bundled in the installer.
(In reply to comment #8)
Please give a deeper elaboration reason other than "we should" when we
already have bundled in the installer.
See comment 3.
"[W]e already have bundled in the installer" means that *some* people (who use the tarballs, which is far from all our downstream users) will probably, hopefully have it available. That's not sufficient for what is an expected piece of fundamental account management (for anti-vandalism purposes, account management and others).
(In reply to comment #9)
...snip...
"[W]e already have bundled in the installer" means that *some* people (who
use
the tarballs, which is far from all our downstream users)
basically its most people apart from
A. Directly setup from out VCS (I'm sure they can manage installing a extension)
B. People who install from OS-Packages (Which afaik we don't really support anyway, And could bundle the extensions into a seperate package file like they used to do for maths supportor they could probably still do it normally in the installer )
C. CPanel/Fantastio/etc users
There has been numerous discussions on the lists and IRC channels about Bundling in Core vs Bundling ext in the installer package, And I haven't really be swayed away from the latter yet in-regards to the bigger picture.
(In reply to comment #10)
There has been numerous discussions on the lists and IRC channels about
Bundling in Core vs Bundling ext in the installer package, And I haven't
really
be swayed away from the latter yet in-regards to the bigger picture.
Indeed, there's been a fair amount of talk about it. But I don't think there's one fixed rule, like "Always/Never make it an extension if you can".
It depends on how, well, core, the functionality is. If it's something every wiki, or almost every wiki, needs, that's an argument to move it to core. Doing so can sometimes allow structuring the code in a simpler way.
I agree, it should be merged into core. Would a patch to accomplish that be accepted?
(In reply to Nathan Larson from comment #12)
I agree, it should be merged into core. Would a patch to accomplish that be
accepted?
If it's just the current code in the extension, I would say no. I do agree that renameuser-functionality should be in core though.
Special:Renameuser's code is a mess, and should be re-written with FormSpecialPage. The logic should also be abstracted into its own class so make adding an API module trivial.
Also it doesn't support shared user tables, which would be a blocker IMO (though, that would probably just work if bug 31863 was fixed).
RenameuserSQL is a public API used by 9 extensions, it can't easily be changed. There are also hook interfaces which are occasionally used. These interfaces are in the MediaWiki\Extension\Renameuser namespace.
We could replace the extension with a stub that defines the necessary class aliases for backwards compatibility.
The logic should also be abstracted into its own class so make adding an API module trivial.
Maybe half of SpecialRenameuser.php belongs in a backend class -- 200 or 250 lines of code. Most of that is page moves. CentralAuth calls RenameuserSQL and needs page moves, so in theory it could use the new backend class. But CentralAuth is actually doing a better job of page moves -- it queues subsidiary jobs whereas Renameuser just does them all in a loop in the same request. So maybe CentralAuth's code needs to go into core instead.
Change 892916 had a related patch set uploaded (by Tim Starling; author: Tim Starling):
[mediawiki/core@master] Copy the Renameuser extension into core
Change 892917 had a related patch set uploaded (by Tim Starling; author: Tim Starling):
[mediawiki/extensions/Renameuser@master] Move all source files to core and replace with a class_alias stub
Change 893099 had a related patch set uploaded (by Tim Starling; author: Tim Starling):
[mediawiki/core@master] Renameuser: update for core deprecations and actor migration
Change 893830 had a related patch set uploaded (by Tim Starling; author: Tim Starling):
[mediawiki/core@master] Add basic test for SpecialRenameuser
Change 893831 had a related patch set uploaded (by Tim Starling; author: Tim Starling):
[mediawiki/core@master] Renameuser: refactoring round 2
Change 893840 had a related patch set uploaded (by Tim Starling; author: Tim Starling):
[mediawiki/core@master] Renameuser: use MovePage::moveSubpagesIfAllowed
Change 893841 had a related patch set uploaded (by Tim Starling; author: Tim Starling):
[mediawiki/core@master] Renameuser: mostly rewrite the maintenance script
Change 892916 merged by jenkins-bot:
[mediawiki/core@master] Copy the Renameuser extension into core
Change 892917 merged by jenkins-bot:
[mediawiki/extensions/Renameuser@master] Move all source files to core and replace with a class_alias stub
Change 893830 merged by jenkins-bot:
[mediawiki/core@master] Add basic test for SpecialRenameuser
jforrester opened https://gitlab.wikimedia.org/repos/releng/release/-/merge_requests/14
make-release: Drop Renameuser, now in core
jforrester merged https://gitlab.wikimedia.org/repos/releng/release/-/merge_requests/14
make-release: Drop Renameuser, now in core
Change 894649 had a related patch set uploaded (by Majavah; author: Majavah):
[mediawiki/extensions/CentralAuth@master] GlobalRename: use core Renameuser classes
Change 894649 merged by jenkins-bot:
[mediawiki/extensions/CentralAuth@master] GlobalRename: use core Renameuser classes
Change 894728 had a related patch set uploaded (by Zabe; author: Zabe):
[mediawiki/extensions/CheckUser@master] use core Renameuser classes
Change 894728 merged by jenkins-bot:
[mediawiki/extensions/CheckUser@master] use core Renameuser classes
Change 895703 had a related patch set uploaded (by Majavah; author: Majavah):
[mediawiki/extensions/AbuseFilter@master] UserRenameHandler: Use core RenameUser classes
Change 895703 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@master] UserRenameHandler: Use core RenameUser classes
Change 895890 had a related patch set uploaded (by Zabe; author: Zabe):
[mediawiki/extensions/LiquidThreads@master] use core Renameuser classes
Change 895890 merged by jenkins-bot:
[mediawiki/extensions/LiquidThreads@master] use core Renameuser classes
Change 896198 had a related patch set uploaded (by Tim Starling; author: Tim Starling):
[mediawiki/core@master] Renameuser: tweaks and followups
Change 893099 merged by jenkins-bot:
[mediawiki/core@master] Renameuser: refactoring round 1
Change 893831 merged by jenkins-bot:
[mediawiki/core@master] Renameuser: refactoring round 2
Change 896311 had a related patch set uploaded (by Majavah; author: Majavah):
[integration/config@master] zuul: Remove some Renameuser dependencies
Change 897187 had a related patch set uploaded (by Zabe; author: Majavah):
[mediawiki/extensions/AbuseFilter@wmf/1.40.0-wmf.26] UserRenameHandler: Use core RenameUser classes
Change 897188 had a related patch set uploaded (by Zabe; author: Zabe):
[mediawiki/extensions/LiquidThreads@wmf/1.40.0-wmf.26] use core Renameuser classes
Change 897368 had a related patch set uploaded (by Jforrester; author: Jforrester):
[mediawiki/extensions/CodeReview@master] Use core RenameUser classes now it's moved from the extension
Change 897188 merged by jenkins-bot:
[mediawiki/extensions/LiquidThreads@wmf/1.40.0-wmf.26] use core Renameuser classes
Change 897368 merged by jenkins-bot:
[mediawiki/extensions/CodeReview@master] Use core RenameUser classes now it's moved from the extension
Change 897187 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@wmf/1.40.0-wmf.26] UserRenameHandler: Use core RenameUser classes
Mentioned in SAL (#wikimedia-operations) [2023-03-13T07:51:47Z] <zabe@deploy2002> Started scap: Backport for [[gerrit:897188|use core Renameuser classes (T27482)]], [[gerrit:897187|UserRenameHandler: Use core RenameUser classes (T27482)]]
Mentioned in SAL (#wikimedia-operations) [2023-03-13T07:53:16Z] <zabe@deploy2002> zabe: Backport for [[gerrit:897188|use core Renameuser classes (T27482)]], [[gerrit:897187|UserRenameHandler: Use core RenameUser classes (T27482)]] synced to the testservers: mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet, mwdebug1001.eqiad.wmnet, mwdebug2002.codfw.wmnet
Mentioned in SAL (#wikimedia-operations) [2023-03-13T07:58:50Z] <zabe@deploy2002> Finished scap: Backport for [[gerrit:897188|use core Renameuser classes (T27482)]], [[gerrit:897187|UserRenameHandler: Use core RenameUser classes (T27482)]] (duration: 07m 02s)
Change 893840 merged by jenkins-bot:
[mediawiki/core@master] Renameuser: use MovePage::moveSubpagesIfAllowed
Change 896198 merged by jenkins-bot:
[mediawiki/core@master] Renameuser: tweaks and followups
Change 893841 merged by jenkins-bot:
[mediawiki/core@master] Renameuser: mostly rewrite the maintenance script