Page MenuHomePhabricator

Duplicate all or part of existing wikibase into new wikibase
Closed, DuplicatePublicFeature


Feature summary (what you would like to be able to do and where): users would benefit from the ability to import a set of items and properties that have been exported from another wikibase (via an XML dump). This can be done on self-hosted wikibases via Special pages > Import pages, or via command line root access described here: This functionality is not enabled in, however.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
I have a database that I want to bulk update using quickstatements. However, I am not sure that the procedure I have in mind will work. If it fails, I'll have to undo a bunch of edits. What I want to do is to put my existing db in a sort of sandbox (by creating a new db in and try out my edits on it, before editing the source database itself. To do so, I need to duplicate the source database.

Benefits (why should this be implemented?): is set up to support experimentation, which is great. This would enable further experimentation without worrying about breaking an existing functional wikibase.

Event Timeline

Currently, Special pages > Import pages gives this error message:
"Import failed: To avoid ID conflicts, the import of Wikibase entities is not supported. You can enable imports using the "allowEntityImport" setting."

I guess a different but equally attractive feature would be a duplicate wikibase button alongside the create new wiki on the dashboard...

Even if it is not enabled in general, importing from an XML file to start with could be good as there's less risk of conflict.

I could imagine something not too destructive would be to just copy
entities, without history in and only keeping relations between
entities that are copied.
A tool like this could be built using the normal web apis rather than
needing to expose the DB or or some interface to maintenance scripts.

Hi all,
Is there any way I could enable 'allowEntityImport' on my instance myself? I imagine it's my own risk if I create conflicts, but seeing as I'm the only user (for now) I'm willing to take that risk. Maybe add a button to enable/disable just for the administrator?
I would love to have a bit more control of localSettings, for experimenting, but if that's not possible, a button or something would be nice.