IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 28, 2015, 11:23:28 AM (11 years ago)
Author:
eugene
Message:

add fullforce stage, cleanup stage handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/czartool_labels.php

    r38200 r38206  
    3434        "stack",
    3535        "staticsky",
     36        "fullforce",
    3637        "diff",
    3738        "dist",
     
    3940        );
    4041        # "chipbackground");
     42
     43$getFailures = array(
     44        "chip"      => "failedChipProcessedImfile.php",
     45        "cam"       => "failedCamProcessedExp.php",
     46        "fake"      => "failedFakeProcessedImfile.php",
     47        "warp"      => "failedWarpSkyfiles.php",
     48        "stack"     => "failedStackSkyfile.php",
     49        "staticsky" => "failedStaticsky.php",
     50        "fullforce" => "failedChipProcessedImfile.php",
     51        "diff"      => "failedDiffSkyfile.php",
     52        "dist"      => "NONE",
     53        "pub"       => "publishDone.php",
     54);           
     55
     56$mainTable = array(
     57        "chip"      => "chipRun",
     58        "cam"       => "camRun",
     59        "fake"      => "fakeRun",
     60        "warp"      => "warpRun",
     61        "stack"     => "stackRun",
     62        "staticsky" => "staticskyRun",
     63        "fullforce" => "fullForceRun",
     64        "diff"      => "diffRun",
     65        "dist"      => "distRun",
     66        "pub"       => "publishRun",
     67);           
     68
     69$addSearchState = array(
     70        "chip"      => 0,
     71        "cam"       => 0,
     72        "fake"      => 1,
     73        "warp"      => 0,
     74        "stack"     => 0,
     75        "staticsky" => 0,
     76        "fullforce" => 0,
     77        "diff"      => 0,
     78        "dist"      => 0,
     79        "pub"       => 0,
     80);           
    4181
    4282$servers=array(
     
    448488        $anyFaults = false;
    449489
    450         // Note: Do not include the state for chip, cam, and warp so that both new and update faults are listed
    451         $link = "failedChipProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel ; # . "&chipRun.state=".$searchState;
    452         getStateAndFaults($db, $thisLabel, $selectedState, "chip", $str, $anyFaults);
    453         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
    454 
    455         $link = "failedCamProcessedExp.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $thisLabel ; # . "&camRun.state=".$searchState;
    456         getStateAndFaults($db, $thisLabel, $selectedState, "cam", $str, $anyFaults);
    457         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
    458 
    459         $link =  "failedFakeProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&fakeRun.label=" . $thisLabel . "&fakeRun.state=".$searchState;
    460         getStateAndFaults($db, $thisLabel, $selectedState, "fake", $str, $anyFaults);
    461         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
    462 
    463         $link = "failedWarpSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $thisLabel ; # . "&warpRun.state=".$searchState;
    464         getStateAndFaults($db, $thisLabel, $selectedState, "warp", $str, $anyFaults);
    465         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
    466 
    467         $link = "failedStackSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $thisLabel . "&stackRun.state=".$searchState;
    468         getStateAndFaults($db, $thisLabel, $selectedState, "stack", $str, $anyFaults);
    469         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
    470 
    471         $link = "failedStaticsky.php?pass=" . $pass . "&proj=" . $proj . "&staticskyRun.label=" . $thisLabel . "&staticskyRun.state=".$searchState;
    472         getStateAndFaults($db, $thisLabel, $selectedState, "staticsky", $str, $anyFaults);
    473         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
    474 
    475         $link = "failedDiffSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state=".$searchState;
    476         getStateAndFaults($db, $thisLabel, $selectedState, "diff", $str, $anyFaults);
    477         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
    478 
    479         $link = $defaultlink;
    480         getStateAndFaults($db, $thisLabel, $selectedState, "dist", $str, $anyFaults);
    481         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$distributing) ? "gray" : null);
    482 
    483         $link = "publishDone.php?pass=" . $pass . "&proj=" . $proj . "&publishRun.label=" . $thisLabel . "&publishRun.state=".$searchState;
    484         getStateAndFaults($db, $thisLabel, $selectedState, "pub", $str, $anyFaults);
    485         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$publishing) ? "gray" : null);
    486 
    487         $link = $defaultlink;
    488         getStateAndFaults($db, $thisLabel, $selectedState, "chipbackground", $str, $anyFaults);
    489         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
    490 
     490        foreach ($stages as &$stage) {
     491          // Note: Do not include the state for chip, cam, and warp so that both new and update faults are listed
     492          $myTable    = $mainTable[$stage];
     493          $myFailures = $getFailures[$stage];
     494
     495          if ("$myFailures" == "NONE") {
     496            $link = $defaultlink;
     497          } else {
     498            $link = $getFailures[$stage] . "?pass=" . $pass . "&proj=" . $proj . "&" . $myTable . ".label=" . $thisLabel;
     499            if ($addSearchState[$stage]) {
     500              // Note: Do not include the state for chip, cam, and warp so that both new and update faults are listed
     501              $link .= "&" . $myTable . ".state=" . $searchState;
     502            }
     503          }
     504          getStateAndFaults($db, $thisLabel, $selectedState, $stage, $str, $anyFaults);
     505
     506          $cellcolor = 0;
     507          if ("$stage" == "dist") {
     508            $cellcolor = (!$isUpdate && !$distributing) ? "gray" : 0;
     509          }
     510          if ("$stage" == "pub") {
     511            $cellcolor = (!$isUpdate && !$publishing) ? "gray" : 0;
     512          }
     513          createFormattedTableCell($anyFaults, $link, $str, $anyFaults, $cellcolor);
     514        }
    491515        echo "</tr>\n";
    492516    }
Note: See TracChangeset for help on using the changeset viewer.