Page MenuHomePhabricator

After reloading transactions for the recipient while building transaction mail, put them in the input order
ClosedPublic

Authored by epriestley on May 30 2019, 10:37 PM.
Tags
None
Referenced Files
F18985116: D20563.id.diff
Mon, Nov 17, 12:53 PM
F18854726: D20563.diff
Sat, Nov 1, 12:29 AM
F18834867: D20563.id.diff
Oct 26 2025, 11:26 AM
F18830748: D20563.diff
Oct 25 2025, 8:32 AM
F18790294: D20563.id.diff
Oct 15 2025, 1:30 PM
F18749184: D20563.id49054.diff
Oct 4 2025, 2:45 AM
F18699880: D20563.diff
Sep 27 2025, 1:52 PM
F18673124: D20563.diff
Sep 25 2025, 9:24 AM
Subscribers
None

Details

Summary

Ref T13303. In D20525 I fixed an issue where transaction rendering could use cached values with the wrong viewer by reloading transactions.

However, reloading transactions may also reorder them as a side effect, since withPHIDs(...) does not imply an order. This can make transaction rendering order in mail wrong/inconsistent.

Instead, reorder the transactions before continuing so mail transaction order is consistent.

Test Plan

Applied a group of transactions to a task, saw a more consistent rendering order in mail after the change.

Diff Detail

Repository
rP Phabricator
Branch
sort1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 22929
Build 31458: Run Core Tests
Build 31457: arc lint + arc unit