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
Unknown Object (File)
Tue, Jan 21, 11:52 AM
Unknown Object (File)
Sat, Jan 18, 6:28 AM
Unknown Object (File)
Fri, Jan 17, 1:17 PM
Unknown Object (File)
Tue, Jan 7, 1:06 AM
Unknown Object (File)
Dec 20 2024, 9:09 AM
Unknown Object (File)
Dec 15 2024, 1:26 AM
Unknown Object (File)
Dec 13 2024, 6:05 AM
Unknown Object (File)
Dec 12 2024, 10:55 PM
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