Last modified: 2013-12-05 19:51:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59453, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57453 - handle long topic titles
handle long topic titles
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-22 23:09 UTC by spage
Modified: 2013-12-05 19:51 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2013-11-22 23:09:38 UTC
* We should have a maximum topic title length.
* Depending on how long it is, we may want to truncate long topic titles in
** Echo notifications
** page heading[1] and <title>

See e.g.
http://ee-flow.wmflabs.org/w/index.php?title=User_talk:Spage&workflow=0509f5e85dd734dffb6efa163e68c4ac&action=view#flow-post-0509f715f81b34dffb6efa163e68c4ac , that has is 1500+ characters.
Comment 1 Bingle 2013-11-23 04:42:55 UTC
The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/518, but people from the community are welcome to contribute here and in Gerrit.
Comment 2 Quiddity 2013-12-02 20:29:55 UTC
As I commented in the Flow thread that you've linked:

The longest thread on https://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29 currently, is 91 characters.

At max width, the title above has 129 characters (135 bytes, probably due to the non-latin characters?) at 3 lines long:

"troublesome characters? Déjà vu 北京 <tag & "OK" 'end' How long can this topic title go? Narwhal chambray leggings, occupy bicycle"

So I'd suggest 150 characters as potentially a reasonable maximum (whatever that translates to in bytes for other languages?).
Comment 3 Oliver Keyes 2013-12-02 21:43:21 UTC
We're going with 260 bytes, for two reasons:

#It takes into account multibyte characters;
#The maximum length in a varbinary field with our setup is 260.
Comment 4 Gerrit Notification Bot 2013-12-03 00:25:31 UTC
Change 98737 had a related patch set uploaded by EBernhardson:
Limit topic titles to 260 bytes

https://gerrit.wikimedia.org/r/98737
Comment 5 Gerrit Notification Bot 2013-12-03 16:56:23 UTC
Change 98737 merged by jenkins-bot:
Limit topic titles to 260 bytes

https://gerrit.wikimedia.org/r/98737

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links