Page MenuHomePhabricator

Add sub-state for Revision: "Closed from Accepted"
Closed, ResolvedPublic

Description

see irc.

users probably expect "Is Accepted" rule to be considered "true" for "Closed, but was Accepted before that, and not Rejected Since".

Add a substate of "closed" which is "Closed-from-accepted", and check against that. See precommitRevisionStatus field on commits.

Event Timeline

avivey raised the priority of this task from to Needs Triage.
avivey updated the task description. (Show Details)
avivey added a project: Differential.
avivey added subscribers: avivey, epriestley.

Just to make sure I remember things, specific issue is:

  • Change is reviewed, accepted, landed to master.
  • Now, cherry-picks of the commit to different branches will fail DiffusionPreCommitContentRevisionAcceptedHeraldField pre-commit rules. The correct revision is selected, but it is already closed, and the rule is strict about requiring "Accepted".
  • Replacing the precommitRevisionStatus stuff with this "Closed from Accepted" substate seems cleaner for both the pre-commit and post-commit rules.
  • While very unlikely, reopen + reject is theoretically possible, so we should ideally also un-set this flag in some situations.
epriestley moved this task from Backlog to v2 (UI/Mobile) on the Differential board.
avivey added a project: Restricted Project.Dec 23 2015, 1:15 AM
chad renamed this task from add sub-state for Revision: "Closed from Accepted" to Add sub-state for Revision: "Closed from Accepted".Jan 10 2016, 9:30 PM
avivey moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Jan 21 2016, 7:38 PM
avivey claimed this task.