Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14618371
D18765.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
D18765.diff
View Options
diff --git a/src/applications/differential/constants/DifferentialLegacyQuery.php b/src/applications/differential/constants/DifferentialLegacyQuery.php
--- a/src/applications/differential/constants/DifferentialLegacyQuery.php
+++ b/src/applications/differential/constants/DifferentialLegacyQuery.php
@@ -32,14 +32,7 @@
}
private static function getMap() {
- $all = array(
- DifferentialRevisionStatus::NEEDS_REVIEW,
- DifferentialRevisionStatus::NEEDS_REVISION,
- DifferentialRevisionStatus::CHANGES_PLANNED,
- DifferentialRevisionStatus::ACCEPTED,
- DifferentialRevisionStatus::PUBLISHED,
- DifferentialRevisionStatus::ABANDONED,
- );
+ $all = array_keys(DifferentialRevisionStatus::getAll());
$open = array();
$closed = array();
@@ -61,6 +54,9 @@
),
self::STATUS_NEEDS_REVIEW => array(
DifferentialRevisionStatus::NEEDS_REVIEW,
+
+ // For legacy callers, "Draft" is treated as "Needs Review".
+ DifferentialRevisionStatus::DRAFT,
),
self::STATUS_NEEDS_REVISION => array(
DifferentialRevisionStatus::NEEDS_REVISION,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 7:43 PM (14 h, 59 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6983948
Default Alt Text
D18765.diff (1 KB)
Attached To
Mode
D18765: Include "Draft" revisions in Differential legacy status queries
Attached
Detach File
Event Timeline
Log In to Comment