Last modified: 2014-09-26 22:42:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16862, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14862 - Allow global renaming of global users
Allow global renaming of global users
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CentralAuth (Other open bugs)
unspecified
All All
: High enhancement with 27 votes (vote)
: ---
Assigned To: Kunal Mehta (Legoktm)
:
: 15225 (view as bug list)
Depends on: 31863 66446 70850
Blocks: sulfinalization SWMT global-user-merge
  Show dependency treegraph
 
Reported: 2008-07-19 19:44 UTC by Larry Pieniazek
Modified: 2014-09-26 22:42 UTC (History)
40 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Larry Pieniazek 2008-07-19 19:44:58 UTC
This enhancement request is related to 13507 but is not the same. The request here is to implement a mechanism in which a trusted user (steward or some global renamer group if one is created) to globally rename a user that has already been unified. The details would need to be worked out, but the idea is that the system would check to see if the target name has been taken on any wikis, and if it has, drop the global association on those wikis (if prompted to do so) or abandon the request (if the prompt was answered negatively)... users would then have to seek local rename on those wikis (perhaps via usurp). (once renamed the behaviour we see now where the newly renamed account can be properly associated with the global one (which is awesome) would allow reassociation).

We stewards are seeing an increasing number of requests for rename. The current way to do it, I think, requires un SULing, and local renames on every wiki where there is an account, and then re SULing.
Comment 1 Matt W. 2008-07-19 19:48:38 UTC
I don't like that idea. Stewards have rename rights on all wikis, and it's locally logged. Why log something on meta when it can be logged locally?
Comment 2 Matt W. 2008-07-19 19:51:07 UTC
(In reply to comment #1)
> I don't like that idea. Stewards have rename rights on all wikis, and it's
> locally logged. Why log something on meta when it can be logged locally?
> 

Revise my opinion, noticing the long process that stewards have to go through to rename a unified account. 
Comment 3 Larry Pieniazek 2008-07-19 19:54:42 UTC
Yes, it's a lot of wasted time and effort on a lot of wikis to rename a user
with a lot. If I wanted to rename my current user "Lar" to "Larry Pieniazek"
(for example, that account is already SULed by me to prevent impersonation)
upwards of 50 different wikis would need to be involved as I have contribs on a
lot of wikis. Of course I'm a pathological case.

I'm not averse to the suggestion that the local rename log should get an entry
as well, for every account affected, as traceability is goodness.  (so please consider that part of the
request)
Comment 4 Siebrand Mazeland 2008-08-11 13:14:09 UTC
Component: RenameUser->CentralAuth.
Comment 5 DerHexer 2008-08-18 16:02:53 UTC
*** Bug 15225 has been marked as a duplicate of this bug. ***
Comment 6 KLUE 2008-10-17 14:18:56 UTC
*** Bug 14863 has been marked as a duplicate of this bug. ***
Comment 7 Caroline Tredez 2008-11-06 15:13:57 UTC
Given that new accounts are automatically made global, I think this renaming problem may be a little urgent. Last time I renamed a user who didn't know he had a global account. He didn't even notice : he logged in automatically (from cookie or from another wiki, I don't know) under his old user name, and went on contributing for some time before he ask what he had to do to complete the renaming. Now he has two accounts on the same wiki (which I hope he may later merge), and one of them is marked as "automatically created on login" on ALL wikis ( http://toolserver.org/~vvv/sulutil.php?user=MTPICHON+ , the duplicate is http://toolserver.org/~vvv/sulutil.php?user=maith%C3%A938)

This sort of mess is going to happen more and more often if local bureaucrats or stewards can't rename global account easily, I think.
Comment 8 Andrew Garrett 2009-03-03 02:57:04 UTC
Just thinking about the architecture for this.

It seems that there are a few alternatives to consider here:
1/ The equivalent of doing a rename on every wiki on which the user is active. This is the "shotgun" approach.
2/ If 1/ is too expensive, add a job queue entry for each wiki on which the user is active on that wiki, which will initialise the user renaming process on each wiki. I'm not certain on how much less expensive than 1/ this is -- IIRC most of the work done for a rename is done by the job queue anyway.

Are there other possible solutions to this problem?
Comment 9 SJ 2010-02-01 07:13:39 UTC
This seems like an important small feature.  Related fixes: right now when trying to rename a user via the above process one gets a warning during every rename, suggesting this isn't the 'right way' to do a global rename.

Instead, the rename interface could simply ask whether this is a one-wiki-only rename or a global rename, and try to carry out the action accordingly.
Comment 10 NuclearWarfare 2010-08-03 13:58:31 UTC
I just wanted to see if we could possibly get a follow-up on this. If this bug is to be marked as WONTFIX, that would be fine, but it would be nice to know one way or the other.
Comment 11 Andrew Garrett 2010-08-03 14:00:36 UTC
It's wanted functionality, but somebody has to implement it.
Comment 12 Platonides 2010-08-03 14:11:03 UTC
No, this is not a WONTFIX, just a "nobody has done it yet".
I think the option 1 is the right one, but the renamer also performs local actions, so it should exist there (not a problem for us).
Comment 13 SoWhy 2011-07-18 17:31:23 UTC
Any news on this?
Comment 14 とある白い猫 2011-08-15 12:04:09 UTC
Why is this marked low? It is the single most wanted thing since the creation of SUL!
Comment 15 Siebrand Mazeland 2011-08-15 12:32:27 UTC
Please do not change the priority without having resources. Feel free to bug bugmeister Mark though.
Comment 16 Jan Kucera (Kozuch) 2011-12-30 15:46:51 UTC
Because of votes rasing importance/priority according to following scheme:
15+ votes - highest
5-15 votes - high
Community must have a voice within development.

Regards, Kozuch
http://en.wikipedia.org/wiki/User:Kozuch
Comment 17 Helder 2011-12-30 17:27:58 UTC
(In reply to comment #16)
> Because of votes rasing importance/priority according to following scheme:

As far as I know, the priority should be set according to the following scheme:
[[mw:Bug_management/Bugzilla_usage#Priority]]
Comment 18 SoWhy 2011-12-30 17:53:26 UTC
(In reply to comment #17)
> (In reply to comment #16)
> > Because of votes rasing importance/priority according to following scheme:
> 
> As far as I know, the priority should be set according to the following scheme:
> [[mw:Bug_management/Bugzilla_usage#Priority]]

I agree. The community might like to see this implemented (I certainly do) but since the one in charge of bugs decided to use the "priority" variable to help them track the importance of a bug based on the scheme cited in comment #17, we should not change it; wanting something is one thing but it shouldn't screw up the management. As such, I've reset the priority to "low" although I personally hope someone will be able to handle this request soon.
Comment 19 とある白い猫 2012-02-18 14:04:41 UTC
To be honest I do not see the difficulties associated with this.

The existing rename function only needs to be looped right? In a past discussion I was told the real difficulty is keeping the account synced on all tables.

I would totally be fine to wait a day or two when my account is disabled until the rename is complete.

Also perhaps user id and username should be independent of each other.
Comment 20 DerHexer 2012-03-20 23:17:08 UTC
Any news so far? Stewards and other users are waiting for this tool for ages.
Comment 21 Erik Moeller 2012-08-30 08:35:45 UTC
Raising the importance on this and adding RobLa; as far as CentralAuth issues go, this is one of the more significant ones remaining.
Comment 22 Rob Lanphier 2012-08-30 19:21:35 UTC
Assigning to Chris and adding Jack to the cc.  It's not currently in the table on this page:
https://www.mediawiki.org/wiki/Admin_tools_development#Roadmap

...but it sounds like it may need to get added to it.
Comment 23 MZMcBride 2012-09-04 04:44:34 UTC
(In reply to comment #22)
> Assigning to Chris and adding Jack to the cc.  It's not currently in the table
> on this page:
> https://www.mediawiki.org/wiki/Admin_tools_development#Roadmap
> 
> ...but it sounds like it may need to get added to it.

I don't see how this bug is related to admin tools development.

The Wikimedia stewards have now suggested streamlining the global rename process from the policy side: <https://meta.wikimedia.org/wiki/Global_rename_policy>.
Comment 24 MZMcBride 2012-09-04 04:47:34 UTC
(In reply to comment #8)
> Are there other possible solutions to this problem?

Banning user renames or abstracting the database further so that it isn't so God-awful painful to do user renames. Neither of these options is likely to be implemented, though.
Comment 25 Chris Steipp 2012-12-17 18:27:57 UTC
Just a few notes on this, in case someone wants to launch in:

* There probably needs to be a new global rename permission
* The basic functionality is:
** Make sure the target username isn't already a global name in CentralAuth
** Make sure the target username is available on all wikis where the user has attached accounts
** Update globalnames, globaluser, localnames, localuser
** For each attached wiki, add a job to do the rename on the local wiki
* The account(s) will probably need to be locked during this whole process, since if the user logs in between the time when the global account is renamed and the local wiki is renamed, bad things will happen.
Comment 26 Alex Monk 2012-12-17 18:36:18 UTC
I'm going to have a go at this.
Comment 27 Trijnstel 2012-12-17 21:54:44 UTC
(In reply to comment #25)
> Just a few notes on this, in case someone wants to launch in:
> 
> * There probably needs to be a new global rename permission
> * The basic functionality is:
> ** Make sure the target username isn't already a global name in CentralAuth
> ** Make sure the target username is available on all wikis where the user has
> attached accounts
> ** Update globalnames, globaluser, localnames, localuser
> ** For each attached wiki, add a job to do the rename on the local wiki
> * The account(s) will probably need to be locked during this whole process,
> since if the user logs in between the time when the global account is renamed
> and the local wiki is renamed, bad things will happen.

And it might be also useful to give a warning when the username is in use somewhere (no global account, but unattached accounts on some wikis where the user doesn't have to be renamed). Just a suggestion.
Comment 28 Marius Hoch 2012-12-17 21:57:23 UTC
(In reply to comment #27)
> And it might be also useful to give a warning when the username is in use
> somewhere (no global account, but unattached accounts on some wikis where the
> user doesn't have to be renamed). Just a suggestion.

I don't think we should allow renaming towards names which are already used somewhere at all.
Comment 29 Jyothis Edathoot 2012-12-18 00:44:36 UTC
Marius, though many people dont think that is necessary, a good number of requests are to rename to an existing account which is unused or inactive or locked. Usual practice is to leave a note to the the user who is losing the account to see if they have plans to be active or have objection in this rename. we wait for a few weeks and if we dont see a response, we do allow the requestor to take that name.
Comment 30 Alex Monk 2012-12-18 01:12:21 UTC
Work in progress at Gerrit change #39171
Comment 31 Scott Martin (http://enwp.org/user:scott) 2013-02-17 15:59:51 UTC
(In reply to comment #28)
> I don't think we should allow renaming towards names which are already used
> somewhere at all.

According to Brion, the plan is that eventually all accounts which have a name conflict with an SUL account somewhere else will be forcibly renamed.

https://github.com/wikimedia/mediawiki-extensions-CentralAuth/blob/master/evil-plans.txt
Comment 32 James Forrester 2013-02-17 20:04:52 UTC
(In reply to comment #31)
> (In reply to comment #28)
> > I don't think we should allow renaming towards names which are already used
> > somewhere at all.
> 
> According to Brion, the plan is that eventually all accounts which have a
> name
> conflict with an SUL account somewhere else will be forcibly renamed.
> 
> https://github.com/wikimedia/mediawiki-extensions-CentralAuth/blob/master/
> evil-plans.txt

That's from 2006 - a more current list of work in this area is in [[mw:Admin tools development/Roadmap]]; in particular, the first bullet of the "other tasks" section.
Comment 33 Nemo 2013-02-17 21:53:17 UTC
Also, global renaming is indeed a step towards having less conflicts (well, it should; doing renames which add conflicts would be quite evil), but forceful renames or other restrictions completely forbidding non-globally unique usernames to be used, even in cases where the different users are not disturbing each other at all (different languages etc.), is really evil/hard to do properly/impossible, see https://gerrit.wikimedia.org/r/#/c/16922/ which was -2'ed. In fact I think there's not even a bug for those evil plans (if I'm wrong sorry for going OT).
Comment 35 Nemo 2013-04-30 23:37:34 UTC
Commit message doesn't explain how global account merged are handled, if at all.
Imagine A@global (composed of A@commonswiki and A@metawiki both attached), B@global (composed of B@wikidatawiki and B@metawiki both attached), C@global (composed only of C@mediawikiwiki). Which of the following is true?
0) B and C can't be renamed to A.
1) B can't be renamed to A, C can (C@global is deleted, the local account is attached to A@global).
2) C can be renamed to A as above, and also B can (but B@metawiki is left behind, and B@global stays).

See also https://meta.wikimedia.org/w/index.php?title=Talk%3ASingle_User_Login_finalisation_announcement&diff=5450081&oldid=5450011

Is this a separate feature request? Will it be done before the final forceful rename day?
Comment 36 James Forrester 2013-05-01 03:19:34 UTC
(In reply to comment #35)
> Commit message doesn't explain how global account merged are handled, if at
> all.

Because they are not, and this is out of the scope of this bug.

[Snip]

> Is this a separate feature request?

Yes.

> Will it be done before the final forceful rename day?

It's very unlikely, but if a volunteer wants to write such a tool we'd be glad to review it.
Comment 37 Nemo 2013-05-01 07:56:55 UTC
Ah. The forceful renames will be much more catastrophic than I thought then, this tool won't help; I've split the request to bug 47918. Nice to know, thanks.
Comment 38 Andre Klapper 2013-09-26 14:31:37 UTC
[Assignee was removed, hence also resetting ASSIGNED status]
Comment 39 Gerrit Notification Bot 2013-10-29 00:36:32 UTC
Change 92468 had a related patch set uploaded by Legoktm:
[WIP] Allow for global renaming of users

https://gerrit.wikimedia.org/r/92468
Comment 40 matanya 2014-06-15 09:36:48 UTC
It is very nice this is going to be deployed. It would be even nicer if stewards were notified in advanced, and some feedback was shared.
Comment 41 Nemo 2014-06-15 11:08:18 UTC
(In reply to matanya from comment #40)
> It is very nice this is going to be deployed. It would be even nicer if
> stewards were notified in advanced, and some feedback was shared.

Thanks pirsquared for doing that. https://meta.wikimedia.org/w/index.php?diff=8884057&oldid=8882213
Bug 35707 is clearly a volunteer-led project.
Comment 42 Dan Garry 2014-06-17 00:56:21 UTC
Deployment of this has been delayed by two weeks. See this for more info: http://lists.wikimedia.org/pipermail/wikitech-ambassadors/2014-June/000750.html
Comment 43 Gerrit Notification Bot 2014-07-03 17:30:48 UTC
Change 92468 merged by jenkins-bot:
Allow for global renaming of users

https://gerrit.wikimedia.org/r/92468
Comment 44 Kunal Mehta (Legoktm) 2014-07-03 17:59:25 UTC
Code has now been merged into the repository, and has been deployed to beta labs for testing. Please test it there!

I'll close this bug once it gets deployed to production.
Comment 45 Kunal Mehta (Legoktm) 2014-07-09 23:48:08 UTC
This was successfully deployed today, and hoo has left a note for the stewards: <https://meta.wikimedia.org/w/index.php?title=Stewards%27_noticeboard&diff=prev&oldid=9144799>.

Thanks to everyone who finally made this happen!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links