Differential D19250 Diff 46089 src/applications/repository/storage/PhabricatorRepositoryPushEvent.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryPushEvent.php
Show All 10 Lines | final class PhabricatorRepositoryPushEvent | ||||
protected $repositoryPHID; | protected $repositoryPHID; | ||||
protected $epoch; | protected $epoch; | ||||
protected $pusherPHID; | protected $pusherPHID; | ||||
protected $requestIdentifier; | protected $requestIdentifier; | ||||
protected $remoteAddress; | protected $remoteAddress; | ||||
protected $remoteProtocol; | protected $remoteProtocol; | ||||
protected $rejectCode; | protected $rejectCode; | ||||
protected $rejectDetails; | protected $rejectDetails; | ||||
protected $writeWait; | |||||
protected $readWait; | |||||
protected $hostWait; | |||||
private $repository = self::ATTACHABLE; | private $repository = self::ATTACHABLE; | ||||
private $logs = self::ATTACHABLE; | private $logs = self::ATTACHABLE; | ||||
public static function initializeNewEvent(PhabricatorUser $viewer) { | public static function initializeNewEvent(PhabricatorUser $viewer) { | ||||
return id(new PhabricatorRepositoryPushEvent()) | return id(new PhabricatorRepositoryPushEvent()) | ||||
->setPusherPHID($viewer->getPHID()); | ->setPusherPHID($viewer->getPHID()); | ||||
} | } | ||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'requestIdentifier' => 'bytes12?', | 'requestIdentifier' => 'bytes12?', | ||||
'remoteAddress' => 'ipaddress?', | 'remoteAddress' => 'ipaddress?', | ||||
'remoteProtocol' => 'text32?', | 'remoteProtocol' => 'text32?', | ||||
'rejectCode' => 'uint32', | 'rejectCode' => 'uint32', | ||||
'rejectDetails' => 'text64?', | 'rejectDetails' => 'text64?', | ||||
'writeWait' => 'uint64?', | |||||
'readWait' => 'uint64?', | |||||
'hostWait' => 'uint64?', | |||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'key_repository' => array( | 'key_repository' => array( | ||||
'columns' => array('repositoryPHID'), | 'columns' => array('repositoryPHID'), | ||||
), | ), | ||||
'key_request' => array( | 'key_request' => array( | ||||
'columns' => array('requestIdentifier'), | 'columns' => array('requestIdentifier'), | ||||
'unique' => true, | 'unique' => true, | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |