1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-22 12:41:19 +01:00
phorge-phorge/src/applications/calendar/storage
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
..
PhabricatorCalendarDAO.php Delete license headers from files 2012-11-05 11:16:51 -08:00
PhabricatorCalendarEvent.php Remove "getApplicationTransactionObject()" from ApplicationTransactionInterface 2018-12-20 15:16:19 -08:00
PhabricatorCalendarEventInvitee.php Remove empty implementations of describeAutomaticCapabilities() 2016-11-09 15:24:22 -08:00
PhabricatorCalendarEventTransaction.php Convert Calendar to Modular Transactions 2016-07-13 07:46:33 -07:00
PhabricatorCalendarEventTransactionComment.php T5464, ApplicationTransactions for calendar events 2015-04-28 06:26:48 -07:00
PhabricatorCalendarExport.php Remove "getApplicationTransactionObject()" from ApplicationTransactionInterface 2018-12-20 15:16:19 -08:00
PhabricatorCalendarExportTransaction.php Rough in most of Calendar exports 2016-10-06 04:06:35 -07:00
PhabricatorCalendarExternalInvitee.php Fix errors found by PHPStan 2017-02-17 10:10:15 +00:00
PhabricatorCalendarImport.php Remove "getApplicationTransactionObject()" from ApplicationTransactionInterface 2018-12-20 15:16:19 -08:00
PhabricatorCalendarImportLog.php Remove empty implementations of describeAutomaticCapabilities() 2016-11-09 15:24:22 -08:00
PhabricatorCalendarImportTransaction.php Prepare for event imports in Calendar 2016-10-12 10:45:31 -07:00
PhabricatorCalendarNotification.php Add a skeleton for Calendar notifications 2016-11-01 10:41:15 -07:00
PhabricatorCalendarSchemaSpec.php Create Edge tables in phabricator_calendar db. 2015-04-27 16:35:55 -07:00