Page MenuHomePhabricator

When mail (like "!history" mail) has multiple comments, label them separately
ClosedPublic

Authored by epriestley on Apr 16 2018, 2:53 PM.
Tags
None
Referenced Files
F15469966: D19373.diff
Fri, Apr 4, 6:35 PM
F15338566: D19373.id46347.diff
Sun, Mar 9, 11:29 AM
F15311482: D19373.diff
Thu, Mar 6, 10:07 AM
F15310302: D19373.id46347.diff
Mar 6 2025, 8:48 AM
F15292460: D19373.id46338.diff
Mar 5 2025, 2:19 AM
Unknown Object (File)
Mar 2 2025, 8:02 PM
Unknown Object (File)
Feb 9 2025, 5:55 AM
Unknown Object (File)
Feb 9 2025, 5:55 AM
Subscribers
None

Details

Summary

Depends on D19372. Ref T13124. See PHI505. Currently, if you !history a task with a lot of comments, you get output like this:

alice added a comment.
bailey added a comment.
alice added a comment.
alice added a comment.

AAAA

BBBB

AAAA

AAAA

This is impossible to read. Put the "alice added a comment." headers above the actual comments for comments after the first.

These types of mail messages are unusual, but occur in several cases:

  • The new !history command.
  • Multiple comments on a draft revision before it promotes out of draft.
  • (Probably?) Conduit API updates which submit multiple comment transactions for some reason.
Test Plan

Used bin/mail receive-test to send a !history command to a task, saw a much more readable rendering of the transaction log in the resulting email.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable