Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15375264
D19208.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
D19208.diff
View Options
diff --git a/src/applications/owners/storage/PhabricatorOwnersPackage.php b/src/applications/owners/storage/PhabricatorOwnersPackage.php
--- a/src/applications/owners/storage/PhabricatorOwnersPackage.php
+++ b/src/applications/owners/storage/PhabricatorOwnersPackage.php
@@ -609,8 +609,8 @@
->setDescription(pht('Auto audit information.')),
id(new PhabricatorConduitSearchFieldSpecification())
->setKey('dominion')
- ->setType('string')
- ->setDescription(pht('Dominion setting.')),
+ ->setType('map<string, wild>')
+ ->setDescription(pht('Dominion setting information.')),
);
}
@@ -648,6 +648,22 @@
'label' => $audit_label,
);
+ $dominion_value = $this->getDominion();
+ $dominion_map = self::getDominionOptionsMap();
+ if (isset($dominion_map[$dominion_value])) {
+ $dominion_label = $dominion_map[$dominion_value]['name'];
+ $dominion_short = $dominion_map[$dominion_value]['short'];
+ } else {
+ $dominion_label = pht('Unknown ("%s")', $dominion_value);
+ $dominion_short = pht('Unknown ("%s")', $dominion_value);
+ }
+
+ $dominion = array(
+ 'value' => $dominion_value,
+ 'label' => $dominion_label,
+ 'short' => $dominion_short,
+ );
+
return array(
'name' => $this->getName(),
'description' => $this->getDescription(),
@@ -655,7 +671,7 @@
'owners' => $owner_list,
'review' => $review,
'audit' => $audit,
- 'dominion' => $this->getDominion(),
+ 'dominion' => $dominion,
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 10:20 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7314607
Default Alt Text
D19208.diff (1 KB)
Attached To
Mode
D19208: Before anyone notices, break the API
Attached
Detach File
Event Timeline
Log In to Comment