1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 11:42:42 +01:00
phorge-phorge/src/applications/nuance
epriestley 11cf8f05b1 Remove "getApplicationTransactionObject()" from ApplicationTransactionInterface
Summary:
Depends on D19919. Ref T11351. This method appeared in D8802 (note that "get...Object" was renamed to "get...Transaction" there, so this method was actually "new" even though a method of the same name had existed before).

The goal at the time was to let Harbormaster post build results to Diffs and have them end up on Revisions, but this eventually got a better implementation (see below) where the Harbormaster-specific code can just specify a "publishable object" where build results should go.

The new `get...Object` semantics ultimately broke some stuff, and the actual implementation in Differential was removed in D10911, so this method hasn't really served a purpose since December 2014. I think that broke the Harbormaster thing by accident and we just lived with it for a bit, then Harbormaster got some more work and D17139 introduced "publishable" objects which was a better approach. This was later refined by D19281.

So: the original problem (sending build results to the right place) has a good solution now, this method hasn't done anything for 4 years, and it was probably a bad idea in the first place since it's pretty weird/surprising/fragile.

Note that `Comment` objects still have an unrelated method with the same name. In that case, the method ties the `Comment` storage object to the related `Transaction` storage object.

Test Plan: Grepped for `getApplicationTransactionObject`, verified that all remaining callsites are related to `Comment` objects.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T11351

Differential Revision: https://secure.phabricator.com/D19920
2018-12-20 15:16:19 -08:00
..
application Mark "Settings" and "Nuance" as launchable applications 2017-06-01 12:40:25 -07:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
command Allow Nuance commands to try to apply immediately 2017-05-26 08:36:21 -07:00
conduit Import raw GitHub event data into Nuance 2016-03-08 12:03:11 -08:00
contentsource Add a Nuance content source, and make use of it 2016-03-28 12:47:05 -07:00
controller Allow Nuance commands to try to apply immediately 2017-05-26 08:36:21 -07:00
cursor Fix a handful of Nuance fatals 2017-05-24 11:02:55 -07:00
editor Convert Nuance sources to modular transactions 2017-05-22 11:18:23 -07:00
github Extract GitHub actor IDs from GitHub events 2016-03-28 12:47:21 -07:00
item Explicitly add rel="noreferrer" to all external links 2018-02-17 17:46:11 -08:00
management Split the GitHub import cursor into separate repository and issues event importers 2016-03-09 09:27:19 -08:00
phid Fix a handful of Nuance fatals 2017-05-24 11:02:55 -07:00
query Issue commands to Nuance items, at least roughly 2017-05-24 11:04:57 -07:00
source Fix a handful of Nuance fatals 2017-05-24 11:02:55 -07:00
storage Remove "getApplicationTransactionObject()" from ApplicationTransactionInterface 2018-12-20 15:16:19 -08:00
typeahead Add very basic routing to Nuance 2015-08-24 09:21:56 -07:00
worker Allow Nuance commands to try to apply immediately 2017-05-26 08:36:21 -07:00
xaction Make throwing things into the trash actually work in Nuance 2017-05-24 11:05:30 -07:00