Last modified: 2014-08-16 19:46:38 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 T70686, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68686 - Add dbname (e.g. "enwiki", "ptwiki") to XML database dump "siteinfo"
Add dbname (e.g. "enwiki", "ptwiki") to XML database dump "siteinfo"
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Sam Reed (reedy)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-27 17:21 UTC by Aaron Halfaker
Modified: 2014-08-16 19:46 UTC (History)
3 users (show)

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


Attachments

Description Aaron Halfaker 2014-07-27 17:21:41 UTC
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.
Comment 1 Sam Reed (reedy) 2014-07-27 17:23:21 UTC
Should be r
Comment 2 Gerrit Notification Bot 2014-07-27 17:35:43 UTC
Change 149642 had a related patch set uploaded by Reedy:
Add dbname to XML database dump "siteinfo"

https://gerrit.wikimedia.org/r/149642
Comment 3 Gerrit Notification Bot 2014-07-27 17:41:28 UTC
Change 149643 had a related patch set uploaded by Reedy:
Add export-0.9.xsd

https://gerrit.wikimedia.org/r/149643
Comment 4 Gerrit Notification Bot 2014-07-30 19:57:08 UTC
Change 149642 merged by jenkins-bot:
Add dbname to XML database dump "siteinfo"

https://gerrit.wikimedia.org/r/149642
Comment 5 Aaron Halfaker 2014-07-30 20:27:51 UTC
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.
Comment 6 Gerrit Notification Bot 2014-07-31 17:03:22 UTC
Change 149643 merged by jenkins-bot:
Add export-0.9.xsd

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

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


Navigation
Links