@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Rename HarbormasterBuildMessage "buildTargetPHID" to "receiverPHID"

Summary: Ref T13054. Companion storage change for D19062.

Test Plan: Applied migration and adjustments. Viewed messages in Harbormaster; created them with `harbormaster.sendmessage`; processed them with `bin/phd debug task`.

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13054

Differential Revision: https://secure.phabricator.com/D19063

+6 -16
+2
resources/sql/autopatches/20180212.harbor.01.receiver.sql
··· 1 + ALTER TABLE {$NAMESPACE}_harbormaster.harbormaster_buildmessage 2 + CHANGE buildTargetPHID receiverPHID VARBINARY(64) NOT NULL;
+1 -1
src/applications/harbormaster/query/HarbormasterBuildMessageQuery.php
··· 71 71 if ($this->receiverPHIDs !== null) { 72 72 $where[] = qsprintf( 73 73 $conn, 74 - 'buildTargetPHID IN (%Ls)', 74 + 'receiverPHID IN (%Ls)', 75 75 $this->receiverPHIDs); 76 76 } 77 77
+3 -15
src/applications/harbormaster/storage/HarbormasterBuildMessage.php
··· 10 10 implements PhabricatorPolicyInterface { 11 11 12 12 protected $authorPHID; 13 - protected $buildTargetPHID; 13 + protected $receiverPHID; 14 14 protected $type; 15 15 protected $isConsumed; 16 16 ··· 34 34 'isConsumed' => 'bool', 35 35 ), 36 36 self::CONFIG_KEY_SCHEMA => array( 37 - 'key_buildtarget' => array( 38 - 'columns' => array('buildTargetPHID'), 37 + 'key_receiver' => array( 38 + 'columns' => array('receiverPHID'), 39 39 ), 40 40 ), 41 41 ) + parent::getConfiguration(); 42 42 } 43 43 44 - public function getReceiverPHID() { 45 - return $this->getBuildTargetPHID(); 46 - } 47 - 48 - public function setReceiverPHID($phid) { 49 - return $this->setBuildTargetPHID($phid); 50 - } 51 - 52 44 public function getReceiver() { 53 45 return $this->assertAttached($this->receiver); 54 - } 55 - 56 - public function getBuildTarget() { 57 - return $this->getReceiver(); 58 46 } 59 47 60 48 public function attachReceiver($receiver) {