Page MenuHomePhabricator

When a transaction adds more than 100 inline comments, include only the first 100 in email
ClosedPublic

Authored by epriestley on Sep 4 2018, 6:01 PM.
Tags
None
Referenced Files
F13361255: D19632.id46923.diff
Tue, Jun 25, 1:31 PM
F13352104: D19632.diff
Sun, Jun 23, 11:34 AM
F13335665: D19632.diff
Wed, Jun 19, 2:49 AM
F13320700: D19632.diff
Fri, Jun 14, 5:53 AM
F13309636: D19632.diff
Mon, Jun 10, 10:25 AM
F13273388: D19632.diff
Fri, May 31, 1:52 AM
F13233323: D19632.diff
May 21 2024, 2:12 AM
F13211314: D19632.diff
May 17 2024, 5:39 AM
Subscribers
None

Details

Summary

Ref T13195. An install had a user apply a transaction which added about 1,000 inline comments. Rendering the email for this transaction took a very long time because the context section for each comment must be highlighted separately.

We can make the highlighting faster (in this case, by porting the lexer to PHP) but it's also sort of silly to include more than 100 inlines in an email. These emails are likely to be truncated by outbound size rules at some point anyway. Instead, limit inlines rendered directly into email to the first 100 per transaction group.

Test Plan

Set limit to 2, added 4 comments, viewed text and HTML emails:

Screen Shot 2018-09-04 at 10.40.37 AM.png (309×551 px, 24 KB)

Screen Shot 2018-09-04 at 10.41.03 AM.png (515×470 px, 57 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable