Subversion Repositories DevTools

Rev

Rev 5382 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5382 Rev 5474
Line 24... Line 24...
24
Dim Auto
24
Dim Auto
25
'------------ Constants Declaration -----------
25
'------------ Constants Declaration -----------
26
'------------ Variable Init -------------------
26
'------------ Variable Init -------------------
27
Set PageInfoHash = CreateObject("Scripting.Dictionary")
27
Set PageInfoHash = CreateObject("Scripting.Dictionary")
28
'----------------------------------------------
28
'----------------------------------------------
29
%>
-
 
30
<%
-
 
31
'------------------------------------------------------------------------------------------------------------------------
-
 
32
' This code is temporary and can be taken out at some point in the future (eg. 3 months from now. ie. Dec2008). Its purpose
-
 
33
' is to ensure that the release level metrics are up-to-date when a user expands the project link on the Release Metrics. The
-
 
34
' SQL queries and database PK_RMAPI update_release_metrics function have been updated to fix errors in the original solution
-
 
35
' but we would have to wait for the build tool to build at least one package in each release in each project before the
-
 
36
' release level metrics would be correct. So, instead, we force the re-computation of those metrics now. It doesn't  take long
-
 
37
' even on a large project like Stockholm, so it is no big deal.
-
 
38
'Sub UpdateReleaseMetrics
-
 
39
'   Dim rsQry
-
 
40
'   Dim rsQuery_String
-
 
41
'   Dim rtagid
-
 
42
'
-
 
43
'   On Error Resume Next
-
 
44
'
-
 
45
'   OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"),    ORAPARM_INPUT, ORATYPE_NUMBER
-
 
46
'
-
 
47
'   rsQuery_String = "SELECT rm.rtag_id"&_
-
 
48
'                    "  FROM projects p,"&_
-
 
49
'                    "       release_metrics rm,"&_
-
 
50
'                    "       release_tags rt"&_
-
 
51
'                    " WHERE p.proj_id = rt.proj_id"&_
-
 
52
'                    "   AND rm.rtag_id = rt.rtag_id"&_
-
 
53
'                    "   AND p.proj_id = :PROJ_ID"
-
 
54
'
-
 
55
'   Set rsQry = OraDatabase.DbCreateDynaset( rsQuery_String, cint(0))
-
 
56
'
-
 
57
'   While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
-
 
58
'      OraDatabase.Parameters.Add "RTAG_ID",         rsQry("rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
-
 
59
'
-
 
60
'      objEH.TryORA ( OraSession )
-
 
61
'
-
 
62
'      OraDatabase.ExecuteSQL "BEGIN  PK_RMAPI.UPDATE_RELEASE_METRICS ( :RTAG_ID ); END;"
-
 
63
'
-
 
64
'      objEH.CatchORA ( OraSession )
-
 
65
'
-
 
66
'      OraDatabase.Parameters.Remove "RTAG_ID"
-
 
67
'      rsQry.MoveNext
-
 
68
'   WEnd
-
 
69
'
-
 
70
'   OraDatabase.Parameters.Remove "PROJ_ID"
-
 
71
'
-
 
72
'   rsQry.Close
-
 
73
'   Set rsQry = nothing
-
 
74
'End Sub
-
 
75
 
-
 
76
'------------------------------------------------------------------------------------------------------------------------
-
 
77
%>
-
 
78
<%
-
 
79
'------------------------ MAIN LINE ---------------------------------
29
'------------------------ MAIN LINE ---------------------------------
80
' Call UpdateReleaseMetrics
-
 
81
'--------------------------------------------------------------------
-
 
82
%>
30
%>
83
<table width="100%" border="0" cellspacing="1" cellpadding="1">
31
<table width="100%" border="0" cellspacing="1" cellpadding="1">
84
   <tr>
32
   <tr>
85
      <td background="images/bg_form_lightbluedark.gif">
33
      <td background="images/bg_form_lightbluedark.gif">
86
         <table width="100%" border="0" cellspacing="1" cellpadding="3">
34
         <table width="100%" border="0" cellspacing="1" cellpadding="3">