Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14750416
D19848.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19848.id.diff
View Options
diff --git a/src/applications/repository/query/PhabricatorRepositorySearchEngine.php b/src/applications/repository/query/PhabricatorRepositorySearchEngine.php
--- a/src/applications/repository/query/PhabricatorRepositorySearchEngine.php
+++ b/src/applications/repository/query/PhabricatorRepositorySearchEngine.php
@@ -44,6 +44,15 @@
->setKey('uris')
->setDescription(
pht('Search for repositories by clone/checkout URI.')),
+ id(new PhabricatorPHIDsSearchField())
+ ->setLabel(pht('Services'))
+ ->setKey('almanacServicePHIDs')
+ ->setAliases(
+ array(
+ 'almanacServicePHID',
+ 'almanacService',
+ 'almanacServices',
+ )),
);
}
@@ -80,6 +89,10 @@
$query->withURIs($map['uris']);
}
+ if ($map['almanacServicePHIDs']) {
+ $query->withAlmanacServicePHIDs($map['almanacServicePHIDs']);
+ }
+
return $query;
}
diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -2773,6 +2773,13 @@
->setDescription(
pht(
'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.')),
);
}
@@ -2784,6 +2791,7 @@
'shortName' => $this->getRepositorySlug(),
'status' => $this->getStatus(),
'isImporting' => (bool)$this->isImporting(),
+ 'almanacServicePHID' => $this->getAlmanacServicePHID(),
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 11:50 AM (6 h, 48 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7032396
Default Alt Text
D19848.id.diff (1 KB)
Attached To
Mode
D19848: Support reading and querying Almanac service PHIDs via "diffusion.repository.search"
Attached
Detach File
Event Timeline
Log In to Comment