mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01:00
Stop writes to the old Relationship table
Summary: Ref T1279. The new stuff seems stable, so stop writes to the old tables. Test Plan: - Added and removed reviewers. - Grepped for `::RELATIONSHIP_TABLE` to verify we really have no more reads. - Grepped for `::RELATION_REVIEWER`. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T1279 Differential Revision: https://secure.phabricator.com/D7360
This commit is contained in:
parent
7fedfacbca
commit
c69beb7988
1 changed files with 0 additions and 40 deletions
|
@ -618,15 +618,6 @@ final class DifferentialRevisionEditor extends PhabricatorEditor {
|
||||||
|
|
||||||
$reviewers = $revision->getReviewers();
|
$reviewers = $revision->getReviewers();
|
||||||
|
|
||||||
// This is here until the new way proves stable enough
|
|
||||||
// See https://secure.phabricator.com/T1279
|
|
||||||
self::alterReviewers(
|
|
||||||
$revision,
|
|
||||||
$reviewers,
|
|
||||||
$remove_phids,
|
|
||||||
$add_phids,
|
|
||||||
$actor->getPHID());
|
|
||||||
|
|
||||||
$editor = id(new PhabricatorEdgeEditor())
|
$editor = id(new PhabricatorEdgeEditor())
|
||||||
->setActor($actor);
|
->setActor($actor);
|
||||||
|
|
||||||
|
@ -679,18 +670,6 @@ final class DifferentialRevisionEditor extends PhabricatorEditor {
|
||||||
$reviewer_phid,
|
$reviewer_phid,
|
||||||
$status) {
|
$status) {
|
||||||
|
|
||||||
$reviewers = $revision->getReviewers();
|
|
||||||
if (!in_array($reviewer_phid, $reviewers)) {
|
|
||||||
// This is here until the new way proves stable enough
|
|
||||||
// See https://secure.phabricator.com/T1279
|
|
||||||
self::alterReviewers(
|
|
||||||
$revision,
|
|
||||||
$reviewers,
|
|
||||||
array(),
|
|
||||||
array($reviewer_phid),
|
|
||||||
$actor->getPHID());
|
|
||||||
}
|
|
||||||
|
|
||||||
$options = array(
|
$options = array(
|
||||||
'data' => array(
|
'data' => array(
|
||||||
'status' => $status
|
'status' => $status
|
||||||
|
@ -712,25 +691,6 @@ final class DifferentialRevisionEditor extends PhabricatorEditor {
|
||||||
->save();
|
->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
private static function alterReviewers(
|
|
||||||
DifferentialRevision $revision,
|
|
||||||
array $stable_phids,
|
|
||||||
array $rem_phids,
|
|
||||||
array $add_phids,
|
|
||||||
$reason_phid) {
|
|
||||||
|
|
||||||
return self::alterRelationships(
|
|
||||||
$revision,
|
|
||||||
$stable_phids,
|
|
||||||
$rem_phids,
|
|
||||||
$add_phids,
|
|
||||||
$reason_phid,
|
|
||||||
DifferentialRevision::RELATION_REVIEWER);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static function alterRelationships(
|
private static function alterRelationships(
|
||||||
DifferentialRevision $revision,
|
DifferentialRevision $revision,
|
||||||
array $stable_phids,
|
array $stable_phids,
|
||||||
|
|
Loading…
Reference in a new issue