]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove the "you have not specified reviewers" prompt from the `arc` client
authorepriestley <git@epriestley.com>
Fri, 17 Jun 2016 14:49:07 +0000 (07:49 -0700)
committerepriestley <git@epriestley.com>
Fri, 17 Jun 2016 15:04:08 +0000 (08:04 -0700)
Summary:
Ref T4631. Ref T10939. I don't have any good solutions here; this is perhaps the least-bad one.

  - This prompt is misleading/confusing in the presence of Herald/Owners.
  - This prompt is likely of very little value for experienced reviewers.
  - When it works, this prompt may be of some value for new reviewers, but getting it wrong is probably more confusing than getting it right is helpful, and there is a more accurate version of the warning in the web UI that new users are likely to see.
  - In the long run, this code should not live in the client.

Test Plan: Created this revision without specifying reviewers, probably didn't get prompted.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T4631, T10939

Differential Revision: https://secure.phabricator.com/D16139

src/workflow/ArcanistDiffWorkflow.php

index 3a631e88b4c4bfa0e4eb9b458fd38aa1998c774d..64ab5c01fb5aaf7137ec5c6fe345707d46cbe593 100644 (file)
@@ -1815,12 +1815,7 @@ EOTEXT
     }
 
     $reviewers = $message->getFieldValue('reviewerPHIDs');
-    if (!$reviewers) {
-      $confirm = pht('You have not specified any reviewers. Continue anyway?');
-      if (!phutil_console_confirm($confirm)) {
-        throw new ArcanistUsageException(pht('Specify reviewers and retry.'));
-      }
-    } else {
+    if ($reviewers) {
       $futures['reviewers'] = $this->getConduit()->callMethod(
         'user.query',
         array(