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
Unknown Object (File)
Tue, Dec 24, 6:51 PM
Unknown Object (File)
Sat, Dec 21, 5:24 PM
Unknown Object (File)
Nov 21 2024, 11:05 PM
Unknown Object (File)
Nov 19 2024, 6:09 PM
Unknown Object (File)
Nov 15 2024, 4:54 PM
Unknown Object (File)
Nov 12 2024, 7:48 AM
Unknown Object (File)
Nov 7 2024, 5:15 PM
Unknown Object (File)
Oct 13 2024, 9:56 PM
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