Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15382544
D17146.id41235.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17146.id41235.diff
View Options
diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php
--- a/src/applications/differential/editor/DifferentialTransactionEditor.php
+++ b/src/applications/differential/editor/DifferentialTransactionEditor.php
@@ -7,6 +7,7 @@
private $isCloseByCommit;
private $repositoryPHIDOverride = false;
private $didExpandInlineState = false;
+ private $hasReviewTransaction = false;
private $affectedPaths;
public function getEditorApplicationClass() {
@@ -261,13 +262,20 @@
PhabricatorLiskDAO $object,
array $xactions) {
- // If we have an "Inline State" transaction already, the caller built it
- // for us so we don't need to expand it again.
foreach ($xactions as $xaction) {
switch ($xaction->getTransactionType()) {
case PhabricatorTransactions::TYPE_INLINESTATE:
+ // If we have an "Inline State" transaction already, the caller
+ // built it for us so we don't need to expand it again.
$this->didExpandInlineState = true;
break;
+ case DifferentialRevisionAcceptTransaction::TRANSACTIONTYPE:
+ case DifferentialRevisionRejectTransaction::TRANSACTIONTYPE:
+ case DifferentialRevisionResignTransaction::TRANSACTIONTYPE:
+ // If we have a review transaction, we'll skip marking the user
+ // as "Commented" later. This should get cleaner after T10967.
+ $this->hasReviewTransaction = true;
+ break;
}
}
@@ -426,6 +434,11 @@
// "added" to "commented" if they're also a reviewer. We may further
// upgrade this based on other actions in the transaction group.
+ if ($this->hasReviewTransaction) {
+ // If we're also applying a review transaction, skip this.
+ break;
+ }
+
$status_added = DifferentialReviewerStatus::STATUS_ADDED;
$status_commented = DifferentialReviewerStatus::STATUS_COMMENTED;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 12:58 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7320878
Default Alt Text
D17146.id41235.diff (1 KB)
Attached To
Mode
D17146: Fix a case where "Accept + Comment" would ignore the "Accept"
Attached
Detach File
Event Timeline
Log In to Comment