Roadmap 0.13, Fixes
FX.793 Roadmap item descriptions hold effectively unlimited text (1,000,000 characters)
What was wrong: the edit form (/roadmap-issues/edit) cut every description to 4,000 characters without saying so. The save endpoint used a fixed 4,000 limit, while the service allowed 16,000 and the column (TEXT) held about 16,000 four-byte characters. Rows over 4,000 characters, like 15404 (5,360), lost their end the next time someone saved them from the form.
What changed: the column is now MEDIUMTEXT (migration 184, schema.sql to match). RoadmapItems::DESCRIPTION_MAX is 1,000,000 characters. The form's maxlength and hint, the error message and the developer API docs all read that one constant. The endpoint passes up to twice the limit through to the service, because browsers post each line break as \r\n: before that, text with many lines was cut short before the service turned \r\n back into \n (a 1,000,000-character test saved as 923,077). Too-long text is now refused with a message, never cut.
Tested in a headless browser on this row (its text put back after): the form takes exactly 1,000,000 characters of mixed text (accents, CJK, 76,923 line breaks) and stops typing past that. The save stores it byte for byte, and the page reloads with it in full (submit about 4.5 s). Adding 1,000,001 characters from script is refused with "Descriptions are up to 1,000,000 characters." and leaves the stored text alone. 11/11 checks.
Community comments
No comments yet
Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.
Sign in or create a free account to add a comment.