Last modified: 2014-09-23 22:56:54 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 T18176, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16176 - Create XML category dumps
Create XML category dumps
Status: NEW
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
1.14.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Ariel T. Glenn
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-29 23:53 UTC by Ángel González
Modified: 2014-09-23 22:56 UTC (History)
4 users (show)

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


Attachments
Dump category xml (9.22 KB, patch)
2008-10-29 23:53 UTC, Ángel González
Details
Structure of XML category dumps (566 bytes, application/xml)
2008-10-29 23:54 UTC, Ángel González
Details
Structure of XML category dumps (567 bytes, application/xml)
2008-10-29 23:56 UTC, Ángel González
Details
Dump category xml (9.31 KB, patch)
2008-12-02 22:30 UTC, Ángel González
Details

Description Ángel González 2008-10-29 23:53:59 UTC
Created attachment 5486 [details]
Dump category xml

dumpBackup can currently export the wiki pages, full or current. r40968 added support for the logs and bug 16082 allows to include the authorship list on current dumps.

But there's still one information needed for normal display not available yet on any xml: Categories.
Unless you are to render every article, obtaining full information about a Category involves merging data from four different table dumps.

The above patch addresses this by creating xml category dumps.
Comment 1 Ángel González 2008-10-29 23:54:49 UTC
Created attachment 5487 [details]
Structure of XML category dumps
Comment 2 Ángel González 2008-10-29 23:56:01 UTC
Created attachment 5488 [details]
Structure of XML category dumps
Comment 3 Siebrand Mazeland 2008-11-02 22:13:33 UTC
+need-review
Comment 4 Ángel González 2008-12-02 22:30:58 UTC
Created attachment 5553 [details]
Dump category xml

New version, since the older didn't always achieve what it should.
Still, it'd be nice to be able to get the hidden attribute in a more efficient way, specially if it worked with mysql 4.0. As it is now, <hidden> would be skipped on installs like wikipedia.
Comment 5 Tomasz Finc 2009-05-29 19:05:35 UTC
Picking this bug up as I'm the most likely to push it along.
Comment 6 Mark A. Hershberger 2011-05-03 18:57:02 UTC
Givng dump bugs to Ariel.
Comment 7 Ariel T. Glenn 2011-11-24 14:36:08 UTC
I'm pretty uneasy about running this complicated query with 4 tables and a subquery to boot, at least for full dumps. For manual exports of a small set of pages via Special:Export it might be just fine.  Anyone with more query-fu than me want to weigh in?
Comment 8 Sumana Harihareswara 2012-05-25 02:23:50 UTC
(In reply to comment #4)
> Created attachment 5553 [details]
> Dump category xml

Thanks for the patch.  Would it be reasonable to put it into Gerrit?
Comment 9 Sumana Harihareswara 2012-10-12 01:35:08 UTC
Adding Asher for query-fu. :-)

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


Navigation
Links