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
F14618371: D18765.diff
Thu, Jan 9, 7:43 PM
Unknown Object (File)
Sun, Dec 29, 8:32 PM
Unknown Object (File)
Thu, Dec 19, 12:08 PM
Unknown Object (File)
Fri, Dec 13, 2:00 PM
Unknown Object (File)
Dec 10 2024, 2:46 AM
Unknown Object (File)
Dec 10 2024, 2:45 AM
Unknown Object (File)
Dec 10 2024, 2:45 AM
Unknown Object (File)
Dec 6 2024, 2:53 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable