Page MenuHomePhabricator

Give users an explicit error if they try to upload a too-large diff to Differential
ClosedPublic

Authored by epriestley on Jan 9 2016, 2:49 AM.
Tags
None
Referenced Files
F18798989: D14977.id.diff
Fri, Oct 17, 10:29 AM
F18791237: D14977.diff
Thu, Oct 16, 7:27 AM
F18760203: D14977.id36185.diff
Mon, Oct 6, 8:31 AM
F18674032: D14977.id36184.diff
Sep 25 2025, 12:59 PM
F18627342: D14977.id36184.diff
Sep 16 2025, 3:45 AM
F18621925: D14977.id.diff
Sep 15 2025, 9:56 AM
F18619227: D14977.diff
Sep 15 2025, 2:01 AM
F18618437: D14977.diff
Sep 15 2025, 12:09 AM
Subscribers
None

Details

Summary

Ref T8612. If a change affects more than 10K paths + hunks, tell the user it's too big and don't bother trying to write it. We're mostly bounded by INSERTs here.

Also, fix an issue with file upload errors. The keys are real PHP constants, but were accidentally converted to strings in D12797, causing every error to show as "unknown error".

Test Plan

Screen Shot 2016-01-08 at 6.44.07 PM.png (1×2 px, 237 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Give users an explicit error if they try to upload a too-large diff to Differential.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: joshuaspence.

This is only on the web UI pathway, you can still try to perform these submissions via arc.

joshuaspence edited edge metadata.
joshuaspence added inline comments.
src/applications/differential/conduit/DifferentialCreateRawDiffConduitAPIMethod.php
61

"Differential User Guide: Large Changes" might not be translatable.

This revision is now accepted and ready to land.Jan 9 2016, 2:52 AM
This revision was automatically updated to reflect the committed changes.