Page MenuHomePhabricator

Include "Draft" revisions in Differential legacy status queries
ClosedPublic

Authored by epriestley on Nov 7 2017, 1:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 4:00 PM
Unknown Object (File)
Tue, Jan 21, 1:04 PM
Unknown Object (File)
Fri, Jan 10, 4:56 AM
Unknown Object (File)
Thu, Jan 9, 7:43 PM
Unknown Object (File)
Sun, Dec 29, 8:32 PM
Unknown Object (File)
Dec 19 2024, 12:08 PM
Unknown Object (File)
Dec 13 2024, 2:00 PM
Unknown Object (File)
Dec 10 2024, 2:46 AM
Subscribers
None

Details

Summary

See PHI199. Ref T2543. When you run a RevisionQuery with a legacy status constraint (via differential.query), we currently don't match "Draft" revisions.

Use the actual complete map from DifferentialRevisionStatus instead of hard coding the status list so "Draft" is included.

Test Plan
  • Ran differential.query with ids and status for a draft revision.
  • Before patch: revision not returned in results.
  • After patch: revision returned in results.

(Note that it returns as "Needs Review", for compatibility.)

Diff Detail

Repository
rP Phabricator
Branch
draft1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18808
Build 25353: Run Core Tests
Build 25352: arc lint + arc unit