From: <guy...@us...> - 2004-01-03 22:17:17
|
Update of /cvsroot/outreach/opt/rt/req_view In directory sc8-pr-cvs1:/tmp/cvs-serv27481/rt/req_view Modified Files: index.php Log Message: Adding support for a Perl script to be triggered by every CVS commit on software projects. This means that any CVS commits where the developer includes an OPT task number in their log message will get parsed by OPT and connected to the OPT task itself. It is now possible to view a list of these commits from the task details page or from the overall request. Each CVS log entry can be linked directly to the file changed and a diff against the previous version in the OPT CVS viewer. This change allows for the integration of OPT and CVS to allow for full traceability of a requirement (request) through task breakdown to actual implemenation in code. Index: index.php =================================================================== RCS file: /cvsroot/outreach/opt/rt/req_view/index.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** index.php 23 Dec 2003 23:00:18 -0000 1.20 --- index.php 3 Jan 2004 22:17:14 -0000 1.21 *************** *** 7,14 **** # Bogdan Stancescu <bo...@la...>, November 2001 # Revision 1.0 ! include "../../include/OPT_lib.php"; ! auth_open(); ! $protocol = get_protocol(); ! include "$CRM_path/tasks/task/task_lib.php"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> --- 7,15 ---- # Bogdan Stancescu <bo...@la...>, November 2001 # Revision 1.0 ! include "../../include/OPT_lib.php"; ! auth_open(); ! $protocol = get_protocol(); ! include "$CRM_path/tasks/task/task_lib.php"; ! include "$CRM_path/tasks/calculate_status.inc"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> *************** *** 790,799 **** <? ! /* ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_md; ?>" align="right" nowrap><b><? echo(__("Associated Tasks")); ?></b></td> ! <td class="regular" align="left" bgcolor="<? echo $OPT_col_lt; ?>"><? echo($tsk); ?><? echo($tsk_footer); ?></td> ! </tr> ! */ ?> <tr> --- 791,795 ---- <? ! ?> <tr> *************** *** 929,932 **** --- 925,934 ---- ?></td> </tr> + <? + $description = getvalue("requests","request",$req); + if ($description) + { + ?> + <tr> <td colspan=2 class="regular" align="center" bgcolor="<? echo $OPT_col_dk; ?>"><b><? echo(__("Request Description")); ?></td> *************** *** 935,946 **** <tr> ! <td colspan=2 class="regular" align="left" bgcolor="<? echo $OPT_col_lt; ?>"><? echo(nl2br(htmlspecialchars(OPT_gpc_unslash(getvalue("requests","request",$req))))); ?></td> </tr> <? endTables(); startTables(); ?> <tr> ! <td colspan=6 class="regular" align="center" bgcolor="<? echo $OPT_col_dk; ?>"><b><? echo(__("Associated Tasks")); ?></td> </tr> <tr> --- 937,949 ---- <tr> ! <td colspan=2 class="regular" align="left" bgcolor="<? echo $OPT_col_lt; ?>"><? echo(nl2br(htmlspecialchars(OPT_gpc_unslash($description)))); ?></td> </tr> <? + } // end of if description endTables(); startTables(); ?> <tr> ! <td colspan='7' class="regular" align="center" bgcolor="<? echo $OPT_col_dk; ?>"><b><? echo(__("Associated Tasks")); ?></td> </tr> <tr> *************** *** 956,959 **** --- 959,963 ---- <tr> <td class="regular" align="center" bgcolor="<? echo $OPT_col_md; ?>"><b><? echo(__("Task")); ?></td> + <td class="regular" align="center" bgcolor="<? echo $OPT_col_md; ?>"><b><? echo(__("Status")); ?></td> <td class="regular" align="center" bgcolor="<? echo $OPT_col_md; ?>"><b><? echo(__("Remaining")); ?></td> <td class="regular" align="center" bgcolor="<? echo $OPT_col_md; ?>"><b><? echo(__("Estimated")); ?></td> *************** *** 970,974 **** </tr> <? ! $sql="select task, taskname from request2task, task where request2task.task = task.id and request = $req"; $result=CRM_run_query($sql); --- 974,978 ---- </tr> <? ! $sql="select task, taskname, StartDatePlanned, EndDatePlanned from request2task, task where request2task.task = task.id and request = $req"; $result=CRM_run_query($sql); *************** *** 976,979 **** --- 980,984 ---- { list($totalcount,$affectcount,$complete,$affect,$personal, $T_time, $T_estimated)=compute_progress($task_row[0]); + $icons = determineStatusIcons($task_row[2], $task_row[3], $complete, "../.."); $hrs_rem=sprintf("%.1f", ((100-$complete)/100 * $T_estimated/3600)); $hrs_total=sprintf("%.1f", $T_estimated/3600); *************** *** 1014,1026 **** echo("<tr><td class='regular' align='left' bgcolor='$OPT_col_lt'>".$task_disp); echo("</td>"); ! if ($hrs_rem > 0) ! { ! $rem_hrs_style='attention'; ! } ! else ! { ! $rem_hrs_style='regular'; ! } ! echo("<td class='$rem_hrs_style' align='center' bgcolor='$OPT_col_lt'>".$hrs_rem." hrs</td>"); echo("<td class='regular' align='center' bgcolor='$OPT_col_lt'>".$hrs_total. " hrs</td>"); if ($tsk_owner_name == "Nobody") --- 1019,1024 ---- echo("<tr><td class='regular' align='left' bgcolor='$OPT_col_lt'>".$task_disp); echo("</td>"); ! echo("<td class='regular' align='center' bgcolor='$OPT_col_lt'>".$icons." </td>"); ! echo("<td class='regular' align='center' bgcolor='$OPT_col_lt'>".$hrs_rem." hrs</td>"); echo("<td class='regular' align='center' bgcolor='$OPT_col_lt'>".$hrs_total. " hrs</td>"); if ($tsk_owner_name == "Nobody") *************** *** 1040,1049 **** } } - endTables(); - startTables(); ?> ! <tr><td class="regular" align="center" bgcolor="<? echo $OPT_col_md; ?>"><? echo($tsk_footer); ?></td></tr> ! <? // Show request progress if there is any include "$CRM_path/rt/req_view/progress.inc"; ?> --- 1038,1047 ---- } } ?> ! <tr><td class="regular" colspan="7" align="center" bgcolor="<? echo $OPT_col_md; ?>"><? echo($tsk_footer); ?></td></tr> ! <? // Show request progress if there is any ! endTables(); ! startTables(); include "$CRM_path/rt/req_view/progress.inc"; ?> |