Page MenuHomePhabricator

Properly handle (=disallow) imports
Closed, ResolvedPublic3 Estimated Story Points

Description

Similar to Wikibase, we should probably have proper handling for imports (from another wiki or from XML files), otherwise imported Schemas might have conflicting IDs. Also the entity id assigning would need to be updated after each import in order not to run into already existing Schema IDs (AFAIR wikibase currently doesn't handle that).

For Wikibase this currently means that there is a setting allowEntityImport (defaulting to false) which toggles whether it's possible to import into the Wikibase namespace.

Event Timeline

For WikibaseSchema I wouldn’t even make this configurable, just disabling it unconditionally should be fine.

Lucas_Werkmeister_WMDE set the point value for this task to 3.
Lucas_Werkmeister_WMDE moved this task from Needs work to Ready to pick up on the EntitySchema board.

Not required for initial deployment, since only very few users have the rights to import and there’s not really any place where they could import Schemas from.

Change 499300 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseSchema@master] Restrict Schema content to Schema namespace

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

Change 499301 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseSchema@master] Restrict Schema namespace to Schema content

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

Change 499302 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseSchema@master] Prevent import of Schema revisions

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

Change 499300 merged by jenkins-bot:
[mediawiki/extensions/WikibaseSchema@master] Restrict Schema content to Schema namespace

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

Change 499301 merged by jenkins-bot:
[mediawiki/extensions/WikibaseSchema@master] Restrict Schema namespace to Schema content

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

Change 499302 merged by jenkins-bot:
[mediawiki/extensions/WikibaseSchema@master] Prevent import of Schema revisions

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