Page MenuHomePhabricator

Allow "arc diff --plan-changes" to work with drafts enabled
ClosedPublic

Authored by epriestley on Feb 12 2018, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 5:40 AM
Unknown Object (File)
Thu, Nov 21, 5:08 PM
Unknown Object (File)
Tue, Nov 19, 12:54 PM
Unknown Object (File)
Fri, Nov 15, 3:05 AM
Unknown Object (File)
Mon, Nov 11, 10:45 AM
Unknown Object (File)
Wed, Nov 6, 9:59 PM
Unknown Object (File)
Thu, Oct 31, 7:54 PM
Unknown Object (File)
Sun, Oct 27, 10:08 PM
Subscribers
None

Details

Summary

See PHI346. Ref T13054. If you have prototypes enabled on the server but use master / stable on the client and run arc diff --plan-changes, the transition is rejected because "Draft -> Changes Planned" isn't currently a legal transition.

Allow this transition if not coming from the web UI (to keep it out of the dropdown).

Test Plan
  • Ran arc diff --plan-changes on master, got a "Changes Planned" revision instead of a validation error.
  • Ran arc diff without --plan-changes, got a draft, verified that "Plan Changes" still doesn't appear in the action dropdown.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 12 2018, 9:15 PM
This revision was automatically updated to reflect the committed changes.