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
Unknown Object (File)
Wed, Apr 17, 3:05 PM
Unknown Object (File)
Wed, Apr 10, 6:54 AM
Unknown Object (File)
Wed, Apr 10, 6:53 AM
Unknown Object (File)
Wed, Apr 10, 6:53 AM
Unknown Object (File)
Wed, Apr 10, 6:42 AM
Unknown Object (File)
Wed, Apr 10, 6:28 AM
Unknown Object (File)
Mon, Apr 8, 7:40 AM
Unknown Object (File)
Fri, Mar 29, 5:03 AM
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).