Page MenuHomePhabricator

Truncate the one-line diff update summary when updating a revision to 250 bytes
ClosedPublic

Authored by epriestley on Dec 13 2016, 5:31 PM.
Tags
None
Referenced Files
F18766634: D17038.diff
Tue, Oct 7, 5:39 PM
F18756954: D17038.diff
Sun, Oct 5, 2:36 PM
F18705215: D17038.diff
Sun, Sep 28, 10:30 AM
F18695844: D17038.id.diff
Sat, Sep 27, 6:41 AM
F18656748: D17038.id40985.diff
Mon, Sep 22, 11:21 PM
F18508387: D17038.id.diff
Sep 5 2025, 2:47 AM
F18500372: D17038.diff
Sep 4 2025, 9:01 PM
F18431304: D17038.id.diff
Aug 31 2025, 5:04 AM
Subscribers
None

Details

Summary

Fixes T7899. If you create or update a revision and type an enormously long first line, we currently fatal trying to insert it into the database.

This text is only used to show a single-line summary of the diff in the "History" tab, which should probably be updated anyway. For now, stop fataling.

Test Plan

Uploaded a diff with the description "MMMM..." (thousands of them).

Before patch: fatal on description being too long.
After patch: beautiful "MMMM" summary.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Truncate the one-line diff update summary when updating a revision to 250 bytes.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Dec 13 2016, 5:45 PM
This revision was automatically updated to reflect the committed changes.