Last modified: 2014-07-15 04:20:49 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 T66485, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64485 - [MirrorTools] Write a script to import the data from user creation events in "Log events to all pages and users" (enwiki-yyyymmdd-pages-logging.xml.gz) dump into the local user table and local logging table
[MirrorTools] Write a script to import the data from user creation events in ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Other (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nathan Larson
:
Depends on:
Blocks: 59618
  Show dependency treegraph
 
Reported: 2014-04-26 16:29 UTC by Nathan Larson
Modified: 2014-07-15 04:20 UTC (History)
1 user (show)

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


Attachments

Description Nathan Larson 2014-04-26 16:29:30 UTC
Write a script to import the data from user creation events in "Log events to all pages and users" (enwiki-yyyymmdd-pages-logging.xml.gz) dump into the local user table and local logging table. The user_id from enwiki and other data should be preserved. Perhaps practice on, e.g., https://simple.wikipedia.org/ (simplewiki) rather than enwiki since it's a smaller wiki.

The first priority is to mirror user data from user creation events (log_type = newusers) in the local user table; the second priority is to mirror user data from user renaming events (log_type = renameuser) in the local user table; the third priority is to mirror data from these log events in the local logging table. The lack of user table functionality is a potential blocker for bug 59618; the logging table does not appear to be a blocker for anything.

Useful links:
*[[mw:API:Database field and API property associations]]
*[[mw:Manual:User table]]
*[[mw:Manual:Logging table]]
Comment 1 Andre Klapper 2014-04-26 18:31:00 UTC
I don't see such a script listed under https://git.wikimedia.org/tree/mediawiki%2Fcore.git/HEAD/maintenance hence moving to extensions product
Comment 2 Nathan Larson 2014-05-06 21:40:09 UTC
See also enwiki-latest-pages-logging.xml.gz at http://dumps.wikimedia.org/enwiki/latest/
Comment 3 Nathan Larson 2014-05-06 21:42:35 UTC
Or if you're using simplewiki, http://dumps.wikimedia.org/simplewiki/latest/simplewiki-latest-pages-logging.xml.gz
Comment 4 Nathan Larson 2014-05-08 04:32:01 UTC
See also [[mw:Manual:Parsing XML files]].
Comment 5 MZMcBride 2014-05-08 04:35:08 UTC
(In reply to Nathan Larson from comment #0)
> Write a script to import the data from user creation events in "Log events
> to all pages and users" (enwiki-yyyymmdd-pages-logging.xml.gz) dump into the
> local user table and local logging table.

Sounds kind of gross. Why not resolve bug 49134 instead?
Comment 6 Nathan Larson 2014-05-08 04:39:41 UTC
(In reply to MZMcBride from comment #5)
> Sounds kind of gross. Why not resolve bug 49134 instead?

That would be preferable. Can it/will it be resolved?
Comment 7 Nathan Larson 2014-07-15 04:20:49 UTC
Fixed. The current implementation doesn't actually populate the user table, since that was deemed to perhaps cause problematic conflicts in some situations. That decision might be revisited later ([[mw:Extension:MirrorTools/User table]]); we'll see.

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


Navigation
Links