From d6afce7d3097fd9aeeb2601214a4aa76f2d03c3b Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 8 Jun 2015 14:45:22 -0700 Subject: [PATCH] Stop "join project" from trying to write an inverse edge on Users Summary: Now that Users implement PhabricatorApplicationTransactionInterface, we try to write an inverse edge. At least for now, we should retain the old behavior instead. Test Plan: - Unit tests which cover this stuff pass again. - Grepped for other `instanceof PhabricatorApplicationTransactionInterface`, the all seemed either benign or irrelevant. Reviewers: joshuaspence, btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D13215 --- .../editor/PhabricatorApplicationTransactionEditor.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php index d9eb6a791b..04e5983c3f 100644 --- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php +++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php @@ -2904,6 +2904,13 @@ abstract class PhabricatorApplicationTransactionEditor continue; } + if ($node instanceof PhabricatorUser) { + // TODO: At least for now, don't record inverse edge transactions + // for users (for example, "alincoln joined project X"): Feed fills + // this role instead. + continue; + } + $editor = $node->getApplicationTransactionEditor(); $template = $node->getApplicationTransactionTemplate(); $target = $node->getApplicationTransactionObject();