Page MenuHomePhabricator

Put a limit on the number of files showing in herald emails
ClosedPublic

Authored by sowedance on Apr 28 2014, 10:45 PM.
Tags
None
Referenced Files
F14056178: D8889.diff
Sat, Nov 16, 6:40 PM
F14033377: D8889.id21115.diff
Sat, Nov 9, 5:34 PM
F14033374: D8889.id21112.diff
Sat, Nov 9, 5:34 PM
F14033373: D8889.id21089.diff
Sat, Nov 9, 5:34 PM
F14033371: D8889.id.diff
Sat, Nov 9, 5:34 PM
F14025821: D8889.id21115.diff
Thu, Nov 7, 8:44 PM
F14025653: D8889.diff
Thu, Nov 7, 7:23 PM
F14025491: D8889.id21089.diff
Thu, Nov 7, 6:30 PM
Subscribers

Details

Summary

Sometimes a commit can be huge (like a branch cut in FB www which could have more than half a million files touched). It will generate some emails with size more than 30M, and it will take quite a while to just sort the files and to send out.
Put a hard limit here to avoid such cases. Probably only matters for FB right now, but still even for a small repo with several thousand files, it is a waste to send them all out. Not sure if there is any cleaner way to do it though.

Test Plan

Tried it in FB installtion.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sowedance retitled this revision from to Put a limit on the number of files showing in herald emails.
sowedance updated this object.
sowedance edited the test plan for this revision. (Show Details)
epriestley edited edge metadata.

We should limit files after calling sort() on them, so the user gets the first 1,000 files alphabetically, not 1,000 arbitrary files.

This revision now requires changes to proceed.Apr 29 2014, 11:52 AM
sowedance edited edge metadata.

Yeah I was trying to save some time sorting but it might cause some confusion too. Do it after sorting.

epriestley edited edge metadata.
This revision is now accepted and ready to land.Apr 29 2014, 5:38 PM
epriestley updated this revision to Diff 21115.

Closed by commit rP3a0694543ddf (authored by @sowedance, committed by @epriestley).