Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15441213
D21600.id51425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D21600.id51425.diff
View Options
diff --git a/src/applications/audit/constants/PhabricatorAuditRequestStatus.php b/src/applications/audit/constants/PhabricatorAuditRequestStatus.php
--- a/src/applications/audit/constants/PhabricatorAuditRequestStatus.php
+++ b/src/applications/audit/constants/PhabricatorAuditRequestStatus.php
@@ -37,6 +37,10 @@
return $this->key;
}
+ public function getStatusValueForConduit() {
+ return $this->getMapProperty('value.conduit');
+ }
+
public function isResigned() {
return ($this->key === self::RESIGNED);
}
@@ -53,26 +57,31 @@
'name' => pht('Audit Required'),
'icon' => 'fa-exclamation-circle',
'icon.color' => 'orange',
+ 'value.conduit' => 'audit-required',
),
self::AUDIT_REQUESTED => array(
'name' => pht('Audit Requested'),
'icon' => 'fa-exclamation-circle',
'icon.color' => 'orange',
+ 'value.conduit' => 'audit-requested',
),
self::CONCERNED => array(
- 'name' => pht('concern Raised'),
+ 'name' => pht('Concern Raised'),
'icon' => 'fa-times-circle',
'icon.color' => 'red',
+ 'value.conduit' => 'concern-raised',
),
self::ACCEPTED => array(
'name' => pht('Accepted'),
'icon' => 'fa-check-circle',
'icon.color' => 'green',
+ 'value.conduit' => 'accepted',
),
self::RESIGNED => array(
'name' => pht('Resigned'),
'icon' => 'fa-times',
'icon.color' => 'grey',
+ 'value.conduit' => 'resigned',
),
);
}
diff --git a/src/applications/diffusion/engineextension/DiffusionAuditorsSearchEngineAttachment.php b/src/applications/diffusion/engineextension/DiffusionAuditorsSearchEngineAttachment.php
--- a/src/applications/diffusion/engineextension/DiffusionAuditorsSearchEngineAttachment.php
+++ b/src/applications/diffusion/engineextension/DiffusionAuditorsSearchEngineAttachment.php
@@ -24,7 +24,7 @@
$list[] = array(
'auditorPHID' => $auditor->getAuditorPHID(),
- 'status' => $status->getStatusValue(),
+ 'status' => $status->getStatusValueForConduit(),
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 27, 4:56 PM (1 w, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7387141
Default Alt Text
D21600.id51425.diff (2 KB)
Attached To
Mode
D21600: Give audit statuses API constants that match their UI strings
Attached
Detach File
Event Timeline
Log In to Comment