Page MenuHomePhabricator

Allow revisions to be held as drafts, even after builds finish
ClosedPublic

Authored by epriestley on Oct 27 2017, 4:10 PM.
Tags
None
Referenced Files
F19023501: D18737.diff
Mon, Nov 24, 12:55 AM
F18876831: D18737.id.diff
Nov 6 2025, 3:59 AM
F18876830: D18737.id.diff
Nov 6 2025, 3:58 AM
F18873084: D18737.id44992.diff
Nov 5 2025, 7:51 AM
F18746101: D18737.diff
Oct 3 2025, 11:16 AM
F18745759: D18737.id.diff
Oct 3 2025, 9:16 AM
F18509170: D18737.id.diff
Sep 5 2025, 3:16 AM
F18501772: D18737.diff
Sep 4 2025, 9:57 PM
Subscribers
None

Details

Summary

Ref T2543. Instead of autosubmitting revisions to "Needs Review" when builds finish, allow them to be held in "Draft" indefinitely.

There's currently no UI for this. I plan to just expose it as arc diff --draft for now, in a followup change.

Test Plan
  • Created a revision (via Conduit) with "hold as draft", saw it hold as draft after builds finished.
  • Created a revision (normally), saw it autosubmit after builds finished.
  • Requested review of a "hold as draft" revision to kick it out of draft state.

Diff Detail

Repository
rP Phabricator
Branch
draft1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18755
Build 25272: Run Core Tests
Build 25271: arc lint + arc unit

Event Timeline

amckinley added inline comments.
src/applications/differential/storage/DifferentialRevision.php
716

Unused argument.

Should be return $this->setProperty(self::PROPERTY_DRAFT_HOLD, $hold);?

This revision now requires changes to proceed.Oct 28 2017, 3:27 PM
  • Fix setHoldAsDraft() implementation to respect parameter.
This revision is now accepted and ready to land.Oct 31 2017, 2:48 PM
This revision was automatically updated to reflect the committed changes.