Page MenuHomePhabricator

Allow better importing from Flow XML dumps to wiki where users don't exist
Open, LowPublic

Description

Flow and the dumps store user info as user ID or user IP address.

With the current patch, if you import a revision for a user that doesn't exist, it basically kind of just drops the user string, but everything works.

However, it should probably import by username and use user_ip if there is no user by that name. This is what core apparently does ( https://github.com/wikimedia/mediawiki/blob/master/includes/import/WikiRevision.php#L463 ) , except they call it rev_user_text, whereas we call it rev_user_ip which makes it look worse.

Event Timeline

Mattflaschen-WMF raised the priority of this task from to Low.
Mattflaschen-WMF updated the task description. (Show Details)
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Mattflaschen-WMF renamed this task from Allow importing to wiki where users don't exist to Allow importing from XML dumps to wiki where users don't exist.Nov 20 2015, 11:13 PM
Mattflaschen-WMF set Security to None.
Mattflaschen-WMF renamed this task from Allow importing from XML dumps to wiki where users don't exist to Allow better importing from Flow XML dumps to wiki where users don't exist.Nov 24 2015, 3:46 PM

How is this related to Dumps-Generation? Seems a MediaWiki issue.