Page MenuHomePhabricator

Size limit for labels and descriptions
Closed, ResolvedPublic

Description

Currently, labels can be created 800kb long and same with descriptions.

http://wikidata-test-repo.wikimedia.de/w/index.php?title=Q353&action=history

The labels and descriptions are used in places like the recent changes page and article history, and such lengthy stuff can make stuff time out when trying to view it on the wiki.


Version: master
Severity: major

Details

Reference
bz43278

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:57 AM
bzimport set Reference to bz43278.
bzimport added a subscriber: Unknown Object (MLST).

The terms table are limited anyhow, but I'm not sure if we should copy this value as the terms table is used mainly for lookup. We could warn the user if the length goes above this value, like the warnings while someone is uploading an image.

Verified in Wikidata demo sprint 28

Change I4da67c8f: (Bug 43728) Create a max length constraint for language strings
Change I04452815: (Bug 43728) Refactor length constraint

wikidata-bugs wrote:

Change I4339e526: (bug 43278) Limit labels etc to 250 characters..
Change merged.