Last modified: 2014-02-02 17:04:35 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 T27863, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25863 - Add RenameUser hook for SocialProfile
Add RenameUser hook for SocialProfile
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SocialProfile (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Jack Phoenix
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-10 00:22 UTC by Frozen Wind
Modified: 2014-02-02 17:04 UTC (History)
0 users

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


Attachments

Description Frozen Wind 2010-11-10 00:22:40 UTC
A hook should be added to SocialProfile that updates various user name values. An example for friendships:
mysql> update user_relationship set r_user_name_relation="Andrew" where r_user_name_relation="Frozen Wind";
Query OK, 6 rows affected (0.01 sec)
Rows matched: 6  Changed: 6  Warnings: 0

mysql> update user_relationship set r_user_name="Andrew" where r_user_name="Frozen Wind";
Query OK, 6 rows affected (0.00 sec)
Rows matched: 6  Changed: 6  Warnings: 0

mysql>
Comment 1 Jack Phoenix 2010-11-10 18:27:47 UTC
This is already mostly done, see SocialProfile.php (http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SocialProfile/SocialProfile.php?view=markup). As I noted in the source code comments, for some reason the hooked function for user_relationship table updates only half of the rows. I'd rather have that fixed first and then uncomment these bits of code, but quite honestly I have no idea whatsoever what's causing that behavior. I tried asking Werdna earlier this year about what might be causing this (see http://www.mediawiki.org/wiki/Thread:User_talk:Werdna/SocialProfile,_RenameUser_and_RenameUserSQL_hook) as he's the developer who added the RenameUserSQL hook into the RenameUser extension, but he didn't have any idea either.
Comment 2 Jack Phoenix 2014-02-02 17:04:35 UTC
This was done in https://gerrit.wikimedia.org/r/#/c/110615/

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


Navigation
Links