mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Diffusion - fix commits not importing fully
Summary: Fixes T6336. Turns out that the function to update the import status updates that database and doesn't update the object. If the object doesn't get the pertinent update AND there's a herald rule that runs, then the object is later re-saved without ever getting the update flag. Test Plan: logic in the ole sandbox and going to push it to prod and run re-parse on impacted commits Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley, chad Maniphest Tasks: T6336 Differential Revision: https://secure.phabricator.com/D10723
This commit is contained in:
parent
e6d946661d
commit
ba2963ecb3
2 changed files with 7 additions and 1 deletions
|
@ -22,7 +22,12 @@ final class PhabricatorAuditEditor
|
|||
if (isset($this->auditReasonMap[$phid])) {
|
||||
return $this->auditReasonMap[$phid];
|
||||
}
|
||||
return array('Added by '.$this->getActor()->getUsername().'.');
|
||||
if ($this->getIsHeraldEditor()) {
|
||||
$name = 'herald';
|
||||
} else {
|
||||
$name = $this->getActor()->getUsername();
|
||||
}
|
||||
return array('Added by '.$name.'.');
|
||||
}
|
||||
|
||||
public function setRawPatch($patch) {
|
||||
|
|
|
@ -59,6 +59,7 @@ final class PhabricatorRepositoryCommit
|
|||
$this->getTableName(),
|
||||
$flag,
|
||||
$this->getID());
|
||||
$this->setImportStatus($this->getImportStatus() | $flag);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue