Page MenuHomePhorge

Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE
ClosedPublic

Authored by aklapper on Jul 13 2024, 15:47.
Tags
None
Referenced Files
F2991922: D25732.1740198736.diff
Fri, Feb 21, 04:32
F2991921: D25732.1740198736.diff
Fri, Feb 21, 04:32
F2990371: D25732.1740177351.diff
Thu, Feb 20, 22:35
F2981952: D25732.1739943112.diff
Tue, Feb 18, 05:31
F2938288: D25732.1737992319.diff
Sun, Jan 26, 15:38
F2932669: D25732.1737741583.diff
Thu, Jan 23, 17:59
F2904842: D25732.1737334827.diff
Jan 19 2025, 01:00
F2884629: D25732.1737164059.diff
Jan 17 2025, 01:34

Details

Summary

Explicitly set "Created" as ActionName (to be used as a mail subject line vary prefix) when the transaction type is PhabricatorTransactions::TYPE_CREATE to avoid falling back to a generic "Updated" prefix.

Closes T15865

Test Plan

Either create a new task and check the mail subject line prefix (if you have a mail setup in your Phorge instance), or use the debug patch in P45 and check the order of action strengths.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

So:

  • was this improving the situation? rPf4d9d6920bcd: The feed "created this task" should be the first one seems yes, accordingly to your comments
  • was PhabricatorTransactions::TYPE_CREATE needing a nice action name? yes
  • Am I confused about newActionStrengthSortVector? Yes. I don't know why it works, but it works. But this deserves further discussion.

sgtm

This revision is now accepted and ready to land.Jul 14 2024, 21:33

The change made sense but triggered this regression by introducing a non-default ActionStrength with value 140, thus changing the previous order of the PhutilSortVector defining the Vary Prefix subject.