Closed Bug 1887834 Opened 1 year ago Closed 1 year ago

Don't mark a patch as WIP when there are reviewers assigned in phabricator

Categories

(Conduit :: moz-phab, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mossop, Assigned: mathew.hodson)

References

Details

Attachments

(3 files)

Sometimes I prefer to add reviewers directly in phabricator, maybe I can't remember their names or maybe I know a reviewer will be automatically assigned by a herald rule. So I do this:

  1. Commit my patch with the description Bug XXXXXXX: Do the thing.
  2. moz-phab
  3. Go to the patch in phabricator and check/add reviewers.
  4. Request review.

Later after a first review:

  1. Update the patch.
  2. moz-phab

At this point moz-phab re-marks the patch as WIP even though there are reviewers assigned to the patch. It would be nice if when no reviewers are marked in the commit it would check to see if there are reviewers in phabricator and not mark as WIP in this case.

(It would be even nicer if reviewers are going to be automatically assigned that the first submission didn't get marked WIP but I assume that is somewhat more difficult to achieve!)

Severity: -- → S4
Type: defect → enhancement
Priority: -- → P3
Assignee: nobody → mathew.hodson
Attachment #9427288 - Attachment description: WIP: submit: don't mark existing revisions WIP (Bug 1887834) → submit: don't mark existing revisions WIP (Bug 1887834)
Status: NEW → ASSIGNED
Attachment #9427288 - Attachment description: submit: don't mark existing revisions WIP (Bug 1887834) → submit: don't mark revisions with reviewers WIP (Bug 1887834)
Attachment #9427288 - Attachment description: submit: don't mark revisions with reviewers WIP (Bug 1887834) → submit: don't mark revisions with reviewers WIP (Bug 1887834) r=sheehan

Reported by Pylance extension in VS Code.

This fixes errors like the following:

  • "None" is not assignable to "int"
  • Object of type "None" is not subscriptable

In some scenarios that were exposed by the next patch, get_diffs
was called with an empty list in show_commit_stack, which raises an
error. This can happen when a commit is submitted with a revision ID
that doesn't exist.

Fix assert in test_show_commit_stack that depended on previous state.

Attachment #9427288 - Attachment description: submit: don't mark revisions with reviewers WIP (Bug 1887834) r=sheehan → WIP: submit: don't mark revisions with reviewers WIP (Bug 1887834)
Attachment #9428045 - Attachment description: Fix `test_submit_update_revision_not_found` (Bug 1887834) r=sheehan → Fix `test_submit_update_revision_not_found` (Bug 1887834)
Attachment #9427288 - Attachment description: WIP: submit: don't mark revisions with reviewers WIP (Bug 1887834) → submit: don't mark revisions with reviewers WIP (Bug 1887834)
Attachment #9428045 - Attachment description: Fix `test_submit_update_revision_not_found` (Bug 1887834) → submit: fix `test_submit_update_revision_not_found` (Bug 1887834)
Attachment #9427288 - Attachment description: submit: don't mark revisions with reviewers WIP (Bug 1887834) → WIP: submit: don't mark revisions with reviewers as WIP (Bug 1887834)
Attachment #9427288 - Attachment description: WIP: submit: don't mark revisions with reviewers as WIP (Bug 1887834) → submit: don't mark revisions with reviewers as WIP (Bug 1887834)

This will go out in the next release.

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Duplicate of this bug: 1700967
See Also: → 1984468
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: