Page MenuHomePhabricator

API: Separate summary and initial page text for uploads
Closed, ResolvedPublic

Description

Author: matthew.britton

Description:
patch against r59327

Currently, when uploading files, the contents of the upload form's "description" field are used as both the upload summary and the inital text of the description page. This makes things simpler and is probably best kept that way on the user-facing upload form.

However, the first ~200 characters of the description page do not always make a good summary, and it is a pain to have to upload with an appropriate summary and then separately edit the file description page to add a description. It would thus be useful, especially for bulk uploads, if API clients could specify a separate summary and page text. MediaWiki already supports this internally; the accompanying patch adds support to the API.


Version: unspecified
Severity: enhancement

Attached:

Details

Reference
bz21589

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:49 PM
bzimport set Reference to bz21589.

r59336

Gurch, thought about applying for commit access?

matthew.britton wrote:

(In reply to comment #1)

r59336

Gurch, thought about applying for commit access?

What are the requirements? This is my second patch and about third piece of PHP code ever... :)

Also per comment on codereview this should be mentioned in release notes, I forgot about that.

The release notes was more probably a comment for me ;)

Gurch, see:
http://www.mediawiki.org/wiki/Commit_access
http://www.mediawiki.org/wiki/Commit_access_requests

A history of a couple of successful patches is all that is really needed to get commit access (roughly)

Other programming (ie Huggle), is a bonus, as is reporting other bugs etc etc