Closed Bug 1700967 Opened 4 years ago Closed 6 months ago

moz-phab overwrites "accepted" status if reviewers are added via Phabricator

Categories

(Conduit :: moz-phab, defect, P2)

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1887834

People

(Reporter: mhentges, Unassigned)

Details

(Keywords: conduit-triaged)

(Note that this use case is not resolved by the 0.1.97 update)

Depending on the patch I'm making, sometimes I don't put any reviewers in my commit message, but rather I submit and add the reviewers on Phabricator. This is useful for two reasons:

  • Herald will automatically add some reviewers that are necessary.
  • I may not have the reviewer name memorized, so being able to search is helpful.

When moz-phab submits my patch, it sees that there are no reviewers on my revision, and it decides that this is a WIP patch. The downside of this is that it overwrites the state of the real Phabricator revision, which means:

  • If the patch had reviewers attached and was accepted, then:
    • It's moved back to "Changes Planned".
    • A "WIP: " prefix is placed at the front.

I think that moz-phab should check the state of the revision on Phabricator. If it has has reviewers assigned and it's status isn't still "Changes Planned", then don't overwrite its status or title.

Related: since there's a Changes Planned status, should we be putting WIP: on the front of the title?
This also impedes the "submit and set reviewers on Phabricator" workflow, because it's easy to miss that Phabricator edited your title for you.

Summary: moz-phab 0.1.97 overwrites "accepted" status if reviewers are added via Phabricator → moz-phab overwrites "accepted" status if reviewers are added via Phabricator

This was addressed in Bug 1700179.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

It's possible to capture this use case without requiring a --no-wip flag to be added, no?
Using the state of the revision on Phabricator allows us to make a more nuanced, workflow-supporting decision when submitting the patch.

I've been mulling this over and I think I was too quick to duplicate it; the use-case you outlined, particularly the automatic reviewer selection, is important. Sorry about that, reopening.

I'll chat with Zeid to figure out a consistent approach here, which might include just reverting the "no reviewers means WIP" change.

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Keywords: conduit-triaged
Priority: -- → P2
See Also: → 1501077

Should be fixed by bug 1887834. Specifically, this doesn't happen anymore.

When moz-phab submits my patch, it sees that there are no reviewers on my revision, and it decides that this is a WIP patch. The downside of this is that it overwrites the state of the real Phabricator revision, which means:

  • If the patch had reviewers attached and was accepted, then:
    • It's moved back to "Changes Planned".
    • A "WIP: " prefix is placed at the front.
Status: REOPENED → RESOLVED
Closed: 4 years ago6 months ago
Duplicate of bug: 1887834
Resolution: --- → DUPLICATE
See Also: 1501077
You need to log in before you can comment on or make changes to this bug.