| Line 315... |
Line 315... |
| 315 |
</div>
|
315 |
</div>
|
| 316 |
</div>
|
316 |
</div>
|
| 317 |
<%
|
317 |
<%
|
| 318 |
End Sub
|
318 |
End Sub
|
| 319 |
'-------------------------------------------------
|
319 |
'-------------------------------------------------
|
| - |
|
320 |
Sub PlanControlPane
|
| - |
|
321 |
Dim planDropChecked : planDropChecked = ""
|
| - |
|
322 |
Dim planValue : planValue = 0
|
| - |
|
323 |
Dim planOff : planOff = ""
|
| - |
|
324 |
Dim planCautious : planCautious = ""
|
| - |
|
325 |
Dim planAggressive : planAggressive = ""
|
| - |
|
326 |
' Get the planning control information
|
| - |
|
327 |
query_string = _
|
| - |
|
328 |
"SELECT PLAN_THRESHOLD, PLAN_DROP" &_
|
| - |
|
329 |
" FROM release_tags rt" &_
|
| - |
|
330 |
" WHERE rt.rtag_id = " & parRtagId
|
| - |
|
331 |
|
| - |
|
332 |
Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
| - |
|
333 |
|
| - |
|
334 |
If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
|
| - |
|
335 |
|
| - |
|
336 |
If rsQry("PLAN_DROP") <> "N" Then
|
| - |
|
337 |
planDropChecked = " Checked"
|
| - |
|
338 |
End If
|
| - |
|
339 |
|
| - |
|
340 |
planValue = CInt(rsQry("PLAN_THRESHOLD"))
|
| - |
|
341 |
Select Case planValue
|
| - |
|
342 |
Case 0 : planOff = "Checked"
|
| - |
|
343 |
Case 20 : planCautious = "Checked"
|
| - |
|
344 |
Case 100 : planAggressive = "Checked"
|
| - |
|
345 |
Case Else : planCautious = "Checked"
|
| - |
|
346 |
End Select
|
| - |
|
347 |
|
| - |
|
348 |
End If
|
| - |
|
349 |
rsQry.Close()
|
| - |
|
350 |
Set rsQry = nothing
|
| - |
|
351 |
%>
|
| - |
|
352 |
<fieldset class="body_rowg fset" <%=IIF(canControl, "", "disabled")%>>
|
| - |
|
353 |
<legend class="body_scol">Plan Control</legend>
|
| - |
|
354 |
<span id=planMode>
|
| - |
|
355 |
<input type="radio" name="plan" <%=planOff%> value="0">Off
|
| - |
|
356 |
<br><input type="radio" name="plan" <%=planCautious%> value="20">Cautious
|
| - |
|
357 |
<br><input type="radio" name="plan" <%=planAggressive%> value="100">Aggressive
|
| - |
|
358 |
</span>
|
| - |
|
359 |
<hr>
|
| - |
|
360 |
<input id=planDrop type=checkbox <%=planDropChecked%>>Drop Plan
|
| - |
|
361 |
</fieldset>
|
| - |
|
362 |
<%
|
| - |
|
363 |
End Sub
|
| - |
|
364 |
'-------------------------------------------------
|
| - |
|
365 |
Sub InsertJavaScript %>
|
| - |
|
366 |
<script language="JavaScript" type="text/JavaScript">
|
| - |
|
367 |
formTips.tips.h_buildplan = stdTip(300, 'Build Plan', 'The build plan is a guess as to the order in which packages will be built.' +
|
| - |
|
368 |
'<p>It will be recalculated before each build.' +
|
| - |
|
369 |
'<p>The plan includes test builds, new builds and resultant ripples.'
|
| - |
|
370 |
);
|
| - |
|
371 |
formTips.tips.h_buildDuration = stdTip(300, 'Planned Duration', 'The build duration (seconds) of the last build of this package - if known.' +
|
| - |
|
372 |
'<p>This is used as a guess as to the duration of the planned build.'
|
| - |
|
373 |
);
|
| - |
|
374 |
formTips.tips.h_buildEnd = stdTip(300, 'Planned Completion', 'An educated guess as to the build completion time of the package.' +
|
| - |
|
375 |
'<p>It is based on the start time of the current build and the durations of each preceeding builds.' +
|
| - |
|
376 |
'<p>If the duration of a build is not known then a time of 300 seconds will be assumed.' +
|
| - |
|
377 |
' It also assumes 20 seconds to plan the next build.'
|
| - |
|
378 |
);
|
| - |
|
379 |
formTips.tips.h_lastchange = stdTip(300, 'Last Change', 'This is an indication of the time since the daemon interogated the database.' +
|
| - |
|
380 |
'<p>Short times will be shown as seconds. Longer times will be shown as a time within ' +
|
| - |
|
381 |
'the last 24 hours. Longer times will be shown as a date.'
|
| - |
|
382 |
);
|
| - |
|
383 |
formTips.tips.h_newPlan = stdTip(300, 'New Plan', 'New package versions added to the release have would extend the existing' +
|
| - |
|
384 |
' ripple by more than 20%.<p>The changes will not be included in the current ripple, but will' +
|
| - |
|
385 |
' be processed once the ripple is complete.'
|
| - |
|
386 |
);
|
| - |
|
387 |
<%If canControl Then%>
|
| - |
|
388 |
var planTime = 0;
|
| - |
|
389 |
var planDrop = 0;
|
| - |
|
390 |
$(document).ready(function() {
|
| - |
|
391 |
|
| - |
|
392 |
// Update the table when the Plan Control is modified
|
| - |
|
393 |
$('#planMode').change(function(event){
|
| - |
|
394 |
planTime = $("input[name='plan']:checked").val();
|
| - |
|
395 |
updatePlanTime();
|
| - |
|
396 |
});
|
| - |
|
397 |
|
| - |
|
398 |
$('#planDrop').change(function(event){
|
| - |
|
399 |
planDrop = $('#planDrop').is(":checked");
|
| - |
|
400 |
updatePlanDrop();
|
| - |
|
401 |
});
|
| - |
|
402 |
});
|
| - |
|
403 |
|
| - |
|
404 |
function updatePlanTime()
|
| - |
|
405 |
{
|
| - |
|
406 |
$.ajax({
|
| - |
|
407 |
type : 'POST',
|
| - |
|
408 |
url : '_json_plan_control.asp',
|
| - |
|
409 |
data : {Opr : 'setThreshold', threshold : planTime, rtag_id : <%=parRtagId%> },
|
| - |
|
410 |
dataType : 'json',
|
| - |
|
411 |
}).done(function (data){
|
| - |
|
412 |
if(data.result) {
|
| - |
|
413 |
console.log("notDone:", data);
|
| - |
|
414 |
vixAlert("The action failed due to some internal error<br>Error: " + data.emsgSummary + "<br>Details:" + data.emsgDetails);
|
| - |
|
415 |
|
| - |
|
416 |
}
|
| - |
|
417 |
}).fail(function (data,textStatus,errorThrown){
|
| - |
|
418 |
vixAlert("The action failed due to some internal error<br>Error: " + errorThrown);
|
| - |
|
419 |
})
|
| - |
|
420 |
}
|
| - |
|
421 |
|
| - |
|
422 |
function updatePlanDrop()
|
| - |
|
423 |
{
|
| - |
|
424 |
$.ajax({
|
| - |
|
425 |
type : 'POST',
|
| - |
|
426 |
url : '_json_plan_control.asp',
|
| - |
|
427 |
data : {Opr : 'setDrop', mode : planDrop, rtag_id : <%=parRtagId%> },
|
| - |
|
428 |
dataType : 'json',
|
| - |
|
429 |
}).done(function (data){
|
| - |
|
430 |
if(data.result) {
|
| - |
|
431 |
console.log("notDone:", data);
|
| - |
|
432 |
vixAlert("The action failed due to some internal error<br>Error: " + data.emsgSummary + "<br>Details:" + data.emsgDetails);
|
| 320 |
'
|
433 |
|
| - |
|
434 |
}
|
| - |
|
435 |
}).fail(function (data,textStatus,errorThrown){
|
| - |
|
436 |
vixAlert("The action failed due to some internal error<br>Error: " + errorThrown);
|
| - |
|
437 |
});
|
| - |
|
438 |
}
|
| - |
|
439 |
<%End If%>
|
| - |
|
440 |
</script>
|
| - |
|
441 |
<%End Sub
|
| - |
|
442 |
'----------------------------------------------
|
| 321 |
%>
|
443 |
%>
|
| 322 |
<html>
|
444 |
<html>
|
| 323 |
<head>
|
445 |
<head>
|
| 324 |
<title>Release Manager</title>
|
446 |
<title>Release Manager</title>
|
| 325 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
447 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
| Line 331... |
Line 453... |
| 331 |
<!--#include file="_jquery_includes.asp"-->
|
453 |
<!--#include file="_jquery_includes.asp"-->
|
| 332 |
<!-- TIPS -->
|
454 |
<!-- TIPS -->
|
| 333 |
<script type="text/javascript" src="scripts/json2.js?ver=<%=VixVerNum%>"></script>
|
455 |
<script type="text/javascript" src="scripts/json2.js?ver=<%=VixVerNum%>"></script>
|
| 334 |
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
|
456 |
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
|
| 335 |
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
|
457 |
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
|
| 336 |
<script language="JavaScript" type="text/JavaScript">
|
- |
|
| 337 |
formTips.tips.h_buildplan = stdTip(300, 'Build Plan', 'The build plan is a guess as to the order in which packages will be built.' +
|
- |
|
| 338 |
'<p>It will be recalculated before each build.' +
|
- |
|
| 339 |
'<p>The plan includes test builds, new builds and resultant ripples.'
|
- |
|
| 340 |
);
|
- |
|
| 341 |
formTips.tips.h_buildDuration = stdTip(300, 'Planned Duration', 'The build duration (seconds) of the last build of this package - if known.' +
|
- |
|
| 342 |
'<p>This is used as a guess as to the duration of the planned build.'
|
- |
|
| 343 |
);
|
- |
|
| 344 |
formTips.tips.h_buildEnd = stdTip(300, 'Planned Completion', 'An educated guess as to the build completion time of the package.' +
|
- |
|
| 345 |
'<p>It is based on the start time of the current build and the durations of each preceeding builds.' +
|
- |
|
| 346 |
'<p>If the duration of a build is not known then a time of 300 seconds will be assumed.' +
|
- |
|
| 347 |
' It also assumes 20 seconds to plan the next build.'
|
- |
|
| 348 |
);
|
- |
|
| 349 |
formTips.tips.h_lastchange = stdTip(300, 'Last Change', 'This is an indication of the time since the daemon interogated the database.' +
|
- |
|
| 350 |
'<p>Short times will be shown as seconds. Longer times will be shown as a time within ' +
|
- |
|
| 351 |
'the last 24 hours. Longer times will be shown as a date.'
|
- |
|
| 352 |
);
|
- |
|
| 353 |
formTips.tips.h_newPlan = stdTip(300, 'New Plan', 'New package versions added to the release have would extend the existing' +
|
- |
|
| 354 |
' ripple by more than 20%.<p>The changes will not be included in the current ripple, but will' +
|
- |
|
| 355 |
' be processed once the ripple is complete.'
|
- |
|
| 356 |
);
|
- |
|
| 357 |
|
- |
|
| 358 |
</script>
|
- |
|
| 359 |
<!-- DROPDOWN MENUS -->
|
458 |
<!-- DROPDOWN MENUS -->
|
| 360 |
<!--#include file="_menu_def.asp"-->
|
459 |
<!--#include file="_menu_def.asp"-->
|
| 361 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
460 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
| - |
|
461 |
<%Call InsertJavaScript %>
|
| 362 |
</head>
|
462 |
</head>
|
| 363 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
|
463 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
|
| 364 |
<!-- HEADER -->
|
464 |
<!-- HEADER -->
|
| 365 |
<!--#include file="_header.asp"-->
|
465 |
<!--#include file="_header.asp"-->
|
| 366 |
<!-- BODY ---->
|
466 |
<!-- BODY ---->
|
| 367 |
<table class="full_table">
|
467 |
<table class="full_table">
|
| 368 |
<tr>
|
468 |
<tr>
|
| 369 |
<td width="146px" class="bg_panel" valign="top">
|
469 |
<td width="146px" class="bg_panel" valign="top">
|
| 370 |
<%Call BuildMenuPane%>
|
470 |
<%Call BuildMenuPane%>
|
| - |
|
471 |
<%Call PlanControlPane%>
|
| 371 |
</td>
|
472 |
</td>
|
| 372 |
<td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
|
473 |
<td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
|
| 373 |
<%Call ShowDaemonStatus%>
|
474 |
<%Call ShowDaemonStatus%>
|
| 374 |
<%Call ShowBuildPlan%>
|
475 |
<%Call ShowBuildPlan%>
|
| 375 |
</td>
|
476 |
</td>
|