]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove "Stopped" logic from Phrequent workflows
authorJames Rhodes <jrhodes@redpointsoftware.com.au>
Thu, 17 Jul 2014 03:26:00 +0000 (13:26 +1000)
committerJames Rhodes <jrhodes@redpointsoftware.com.au>
Thu, 17 Jul 2014 03:26:00 +0000 (13:26 +1000)
Summary: We can remove this "Stopped" code as per feedback on D7327.  I think having the full text of "In Progress" and "Suspended" is much clearer than just a '*' though, so I've only removed the ongoing check.

Test Plan: Ran a combination of `arc start`, `arc stop` and `arc time` and it all worked.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

src/workflow/ArcanistPhrequentWorkflow.php

index 6fa35ec1c80d7edeb0fc4d4089211a5797482392..d902934bc68ca249aad2c3ae1eff7bbc30f97a06 100644 (file)
@@ -49,14 +49,10 @@ abstract class ArcanistPhrequentWorkflow extends ArcanistBaseWorkflow {
 
     $i = 0;
     foreach ($results as $result) {
-      if ($result['ongoing']) {
-        if ($i === 0) {
-          $column_type = 'In Progress';
-        } else {
-          $column_type = 'Suspended';
-        }
+      if ($i === 0) {
+        $column_type = 'In Progress';
       } else {
-        $column_type = 'Stopped';
+        $column_type = 'Suspended';
       }
 
       $table->addRow(array(