Page MenuHomePhabricator

Build a commons extension that moves files to Commons
Closed, ResolvedPublic

Description

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

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
Resolvedthiemowmde
Resolved Addshore
Resolvedthiemowmde
Resolved Addshore
Resolved Addshore
Resolvedawight
DeclinedNone
ResolvedAndrew-WMDE
ResolvedAndrew-WMDE
Resolved Addshore
ResolvedWMDE-Fisch
ResolvedAndrew-WMDE
Resolvedthiemowmde
Resolvedthiemowmde
DuplicateNone
Resolved Addshore
Declined Addshore
Resolved Addshore
Resolved Addshore
Invalid Addshore
InvalidNone
ResolvedAndrew-WMDE
Resolved Addshore
ResolvedNone
DeclinedNone
DeclinedNone
Resolved Addshore
ResolvedWMDE-Fisch
ResolvedWMDE-Fisch
ResolvedTobi_WMDE_SW
InvalidNone
ResolvedAndrew-WMDE
Resolved Addshore
Resolved Addshore
ResolvedAndrew-WMDE
ResolvedAndrew-WMDE
ResolvedNone
InvalidNone
Resolved Addshore
DuplicateNone
InvalidNone
InvalidNone
ResolvedWMDE-Fisch
ResolvedNone
ResolvedWMDE-Fisch
Resolvedthiemowmde
ResolvedAndrew-WMDE
DeclinedNone
Resolvedthiemowmde
Resolvedthiemowmde
ResolvedWMDE-Fisch
ResolvedAndrew-WMDE
ResolvedAndrew-WMDE
ResolvedAndrew-WMDE
ResolvedAndrew-WMDE
Resolvedthiemowmde
Resolvedthiemowmde
ResolvedNone
OpenNone
ResolvedNone
InvalidNone
DuplicateNone
ResolvedAndrew-WMDE
DeclinedNone
ResolvedLea_WMDE
Resolvedthiemowmde

Event Timeline

Are there any existing ideas where the access to the functionality could be located?

E.g.

  • "as a 'transfer to commons' Link below each image on the wiki"
  • "on a tool-site on labs"

…etc.?

UPDATE: See T144480 for a UI suggestion

Admins and trusted users (license reviewers/rollbacker) should be able to revert wrong moves. This may be needed if a copyrighted file has been moved accidentally or if a troll misused the function.

Edit: is T143414, i overlooked it.

removed - has been posted twice accidentally

Lea_WMDE triaged this task as Medium priority.Oct 5 2016, 3:05 PM
Lea_WMDE updated the task description. (Show Details)

Not entirely relevant to this task, but worth mentioning that I'm working on a cross-platform, standalone tool, MTC!, which is designed to simplify and correctly perform the Transfer to Commons process.

thiemowmde claimed this task.