1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00
phorge-phorge/src/infrastructure/edges
epriestley 533e799c5f Modernize task/revision edges and write inverse transactions
Summary:
Ref T5245. See some discussion in D9838.

When we attach object A to object B, we'd like to write transactions on both sides but only write the actual edges once.

To do this, allow edge types to `shouldWriteInverseTransactions()`. When an edge type opts into this, have editors apply the inverse transactions before writing the edge. These inverse transactions don't actually apply effects, they just show up in the transaction log.

Test Plan: Attached and detached revisions from tasks, saw transactions appear on both sides of the operation.

Reviewers: chad, btrahan, joshuaspence

Reviewed By: btrahan, joshuaspence

Subscribers: epriestley

Maniphest Tasks: T5245

Differential Revision: https://secure.phabricator.com/D9839
2014-07-17 15:41:08 -07:00
..
__tests__ Added some additional assertion methods. 2014-03-08 19:16:21 -08:00
constants Modernize task/revision edges and write inverse transactions 2014-07-17 15:41:08 -07:00
editor Modernize task/revision edges and write inverse transactions 2014-07-17 15:41:08 -07:00
exception Delete license headers from files 2012-11-05 11:16:51 -08:00
query Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
type Modernize task/revision edges and write inverse transactions 2014-07-17 15:41:08 -07:00
util Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00