1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-20 19:51:08 +01:00
phorge-phorge/src/applications/drydock
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 Add Drydock logs to the RepositoryOperation UI 2018-09-15 07:56:35 -07:00
blueprint Make the repository "Filesize Limit" and "Clone/Fetch Timeout" configurable in the UI 2018-11-28 14:34:00 -08:00
capability Give Drydock resources a proper expiry mechanism 2015-09-28 09:35:14 -07:00
conduit Expose Drydock leases via Conduit 2018-10-26 06:12:38 -07:00
constants Give Drydock Resources more modern status treatment 2018-02-13 13:16:46 -08:00
controller Replace the "Choose Subtype" radio buttons dialog with a simpler "big stuff you click" sort of UI 2018-12-10 14:59:18 -08:00
customfield Convert DrydockBlueprints to EditEngine 2016-03-03 15:21:25 -08:00
editor Allow "Change Subtype" to be selected from the comment action stack 2018-11-28 13:40:40 -08:00
exception Lock resources briefly while acquiring leases on them to prevent acquiring near-death resources 2018-02-13 13:22:13 -08:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
interface Pull some debugging code back out of "master" 2018-11-15 08:19:29 -08:00
logtype Provide a convenient way to log arbitrary text in Drydock without needing structured log classes 2018-09-15 07:59:50 -07:00
management In "bin/drydock lease", take a JSON "--attributes" so we can accept complex values 2018-10-26 06:09:20 -07:00
operation When applying repository operations via Drydock, provide more context on OperationType 2018-09-06 08:15:16 -07:00
phid Write a trivial log when starting a repository operation 2018-09-15 07:57:11 -07:00
query Expose Drydock leases via Conduit 2018-10-26 06:12:38 -07:00
storage Remove "getApplicationTransactionObject()" from ApplicationTransactionInterface 2018-12-20 15:16:19 -08:00
typeahead Render browse results with global result style 2016-06-20 16:49:02 -07:00
view Write a trivial log when starting a repository operation 2018-09-15 07:57:11 -07:00
worker Allow Drydock Blueprints to control "supplemental allocation" behavior so all hosts in an Almanac pool get used 2018-10-31 18:06:47 -07:00
xaction Allow "drydock.blueprint.edit" to create blueprints 2018-01-04 10:08:07 -08:00