Page MenuHomePhabricator

Add dbname (e.g. "enwiki", "ptwiki") to XML database dump "siteinfo"
Closed, ResolvedPublic

Description

It would be useful to be able to check the header information on an XML database dump file to confirm the database of origin. I'm imagining something like the dbname that you can get from the API (e.g. http://en.wikipedia.org/w/api.php?action=sitematrix).

My current use-case is error checking. I want to make sure that the XML dump file being processed by originated from the intended wiki. Right now, I need to parse filenames in order to do that and that makes me sad.

I propose adding a field to <siteinfo /> called <dbname /> that would contain this value.


Version: unspecified
Severity: enhancement

Details

Reference
bz68686

Event Timeline

bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz68686.
Halfak created this task.Jul 27 2014, 5:21 PM
Reedy added a comment.Jul 27 2014, 5:23 PM

Should be r

Change 149642 had a related patch set uploaded by Reedy:
Add dbname to XML database dump "siteinfo"

https://gerrit.wikimedia.org/r/149642

Change 149643 had a related patch set uploaded by Reedy:
Add export-0.9.xsd

https://gerrit.wikimedia.org/r/149643

Change 149642 merged by jenkins-bot:
Add dbname to XML database dump "siteinfo"

https://gerrit.wikimedia.org/r/149642

Thanks for the blazing fast turn-around, folks. I wish I could buy you all a beer. Find me at Wikimania, and I'll make good on that.

Change 149643 merged by jenkins-bot:
Add export-0.9.xsd

https://gerrit.wikimedia.org/r/149643