Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
Show First 20 Lines • Show All 2,767 Lines • ▼ Show 20 Lines | return array( | ||||
->setType('string') | ->setType('string') | ||||
->setDescription(pht('Active or inactive status.')), | ->setDescription(pht('Active or inactive status.')), | ||||
id(new PhabricatorConduitSearchFieldSpecification()) | id(new PhabricatorConduitSearchFieldSpecification()) | ||||
->setKey('isImporting') | ->setKey('isImporting') | ||||
->setType('bool') | ->setType('bool') | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
'True if the repository is importing initial commits.')), | 'True if the repository is importing initial commits.')), | ||||
id(new PhabricatorConduitSearchFieldSpecification()) | |||||
->setKey('almanacServicePHID') | |||||
->setType('phid?') | |||||
->setDescription( | |||||
pht( | |||||
'The Almanac Service that hosts this repository, if the '. | |||||
'repository is clustered.')), | |||||
); | ); | ||||
} | } | ||||
public function getFieldValuesForConduit() { | public function getFieldValuesForConduit() { | ||||
return array( | return array( | ||||
'name' => $this->getName(), | 'name' => $this->getName(), | ||||
'vcs' => $this->getVersionControlSystem(), | 'vcs' => $this->getVersionControlSystem(), | ||||
'callsign' => $this->getCallsign(), | 'callsign' => $this->getCallsign(), | ||||
'shortName' => $this->getRepositorySlug(), | 'shortName' => $this->getRepositorySlug(), | ||||
'status' => $this->getStatus(), | 'status' => $this->getStatus(), | ||||
'isImporting' => (bool)$this->isImporting(), | 'isImporting' => (bool)$this->isImporting(), | ||||
'almanacServicePHID' => $this->getAlmanacServicePHID(), | |||||
); | ); | ||||
} | } | ||||
public function getConduitSearchAttachments() { | public function getConduitSearchAttachments() { | ||||
return array( | return array( | ||||
id(new DiffusionRepositoryURIsSearchEngineAttachment()) | id(new DiffusionRepositoryURIsSearchEngineAttachment()) | ||||
->setAttachmentKey('uris'), | ->setAttachmentKey('uris'), | ||||
); | ); | ||||
Show All 18 Lines |