1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

Expose repository "importing" flag via diffusion.repository.search

Summary: See Z2352#28072. Expose this flag to allow callers to take actions after an import finishes, which is generally reasonable.

Test Plan: Ran query from console, saw `isImporting` flag in results.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D16247
This commit is contained in:
epriestley 2016-07-06 19:10:50 -07:00
parent abdb02b51d
commit ef13b0e52b

View file

@ -2400,6 +2400,12 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
->setKey('status') ->setKey('status')
->setType('string') ->setType('string')
->setDescription(pht('Active or inactive status.')), ->setDescription(pht('Active or inactive status.')),
id(new PhabricatorConduitSearchFieldSpecification())
->setKey('isImporting')
->setType('bool')
->setDescription(
pht(
'True if the repository is importing initial commits.')),
); );
} }
@ -2410,6 +2416,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
'callsign' => $this->getCallsign(), 'callsign' => $this->getCallsign(),
'shortName' => $this->getRepositorySlug(), 'shortName' => $this->getRepositorySlug(),
'status' => $this->getStatus(), 'status' => $this->getStatus(),
'isImporting' => (bool)$this->isImporting(),
); );
} }