updated on March 10 2017
This task is about creating an extension for moving files to Commons. The extension should copy a file with its history to Commons, so that the Commons file page looks exactly as it would have looked, had the file been uploaded on Commons in the first place.
It works roughly like that
- get the url of a file (any wikiproject is allowed)
- copy the file to Commons if all prerequisites are met
- if the file is from WP, map the WP template to the Commons template, based on the existing Commonshelper list
- adds info about the move to the version history
Technical discussions that have already happened
- The copying of binary files might be challenging: We might need to copy them from the SWIFT-backend itself
- In general, API calls are preferred to moves/line copies directly from the db, but we might need to know all the different APIs from the wikiprojects
- In order to better handle problems that might occur during the file move, it might be best to do things in the following order:
- Copy file description with title etc
- Copy binary files
- Add the log entries
Background:
This is part of fulfilling on wish of the German-community speaking wishlist of 2013. For details see the parent task