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:
parent
abdb02b51d
commit
ef13b0e52b
1 changed files with 7 additions and 0 deletions
|
@ -2400,6 +2400,12 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
|||
->setKey('status')
|
||||
->setType('string')
|
||||
->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(),
|
||||
'shortName' => $this->getRepositorySlug(),
|
||||
'status' => $this->getStatus(),
|
||||
'isImporting' => (bool)$this->isImporting(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue