Display new location in source wiki
Open, NormalPublic

Description

Motivation
Once a file has been moved to Commons successfully, the move should be mentioned in the source wiki. This allows the community to then decide what to do with the file (e.g. delete)

Task
When the FileExporter is informed by the FileImporter that the file has been moved, please add the following system message to the top of the wiki page:
This file has been moved to <URL> with the FileExporter.

This edit should be made in the name of the mover, with an edit summary "Moved to <URL/RevisionID + target wiki name info / what turns out to be best> with FileExporter"

Possible issues
Obtaining an edit token might be an issue.

Lea_WMDE renamed this task from Add "moved to Commons" template to source wiki file page to Add tracking category on file in sourec wiki.Mar 15 2017, 3:38 PM
Lea_WMDE updated the task description. (Show Details)
Lea_WMDE changed the task status from Open to Stalled.

Before building that, we need to figure out how to provide the source wiki the title and url of the file on Commons

Addshore renamed this task from Add tracking category on file in sourec wiki to Add tracking category on file in source wiki.Mar 16 2017, 6:05 PM
Lea_WMDE changed the task status from Stalled to Open.Jul 31 2017, 9:37 AM

Even I don't understand anymore why I stalled this in the first place

Lea_WMDE updated the task description. (Show Details)Jul 31 2017, 9:41 AM

If there are better ideas for the tracking category name out there, please let me know!

Lea_WMDE renamed this task from Add tracking category on file in source wiki to Inform source wiki about a successful move.Aug 17 2017, 10:11 AM
Lea_WMDE triaged this task as Normal priority.
Lea_WMDE updated the task description. (Show Details)
Lea_WMDE added a subscriber: Andrew-WMDE.

@Addshore @Andrew-WMDE or other native english speakers: Please improve info sentence, if necessary! :)

Lea_WMDE renamed this task from Inform source wiki about a successful move to Display new location in source wiki .Aug 17 2017, 10:25 AM
Lea_WMDE updated the task description. (Show Details)
Lea_WMDE updated the task description. (Show Details)Aug 17 2017, 2:07 PM

After some time looking into this I realized, that the Echo guys are doing what we need here by obtaining remote tokens via CentralAuth and using them for cross wiki API requests. [1]

I wonder if we can/should just c&p that? @Addshore thoughts?

[1] https://phabricator.wikimedia.org/diffusion/ECHO/browse/master/includes/ForeignWikiRequest.php