Subversion Repositories DevTools

Rev

Rev 7349 | Rev 7395 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%
2
'=====================================================
3
'|                                                   |
121 hknight 4
'|                 RELEASE NOTES                     |
119 ghuddy 5
'|                                                   |
6
'=====================================================
7
%>
4254 dpurdie 8
<!-- Required to support jiraIssues.vbs -->
9
<SCRIPT LANGUAGE="VBScript" RUNAT=SERVER SRC="class/classaspJSON.vbs"></SCRIPT> 
10
<SCRIPT LANGUAGE="VBScript" RUNAT=SERVER SRC="common/base64encode.vbs"></SCRIPT> 
11
<SCRIPT LANGUAGE="VBScript" RUNAT=SERVER SRC="common/jiraIssues.vbs"></SCRIPT> 
119 ghuddy 12
<%
13
'------------ Variable Definition -------------
14
Dim rsCQ
15
Dim rsDepIss
16
Dim SQLstr
17
Dim fixedIssDict
18
Dim notesIssDict
19
Dim issArr()
20
Dim depIssDict
21
Dim sDocTitle
22
Dim rsQry, rsTemp
23
Dim iss_db_id, G1_template, G1_style, currG1
24
Dim retVal
25
Dim baseURL
26
Dim rsProjId
27
Dim rsPkgMetrics
28
Dim rsCodeReviewURL
129 ghuddy 29
Dim vcsInfoCollector
119 ghuddy 30
'------------ Constants Declaration -----------
31
Const enumLoc_iss_db = 0
32
Const enumLoc_iss_id = 1
33
Const enumLoc_iss_num = 2
34
Const enumLoc_summary = 3
35
Const enumLoc_status = 4
36
Const enumLoc_priority = 5
37
Const enumLoc_issue_type = 6
38
'------------ Variable Init -------------------
39
Set fixedIssDict = CreateObject("Scripting.Dictionary")
40
Set notesIssDict = CreateObject("Scripting.Dictionary")
41
Set depIssDict = CreateObject("Scripting.Dictionary")
129 ghuddy 42
Set vcsInfoCollector = CreateObject("Scripting.Dictionary")
119 ghuddy 43
'----------------------------------------------
44
%>
5266 dpurdie 45
<!-- Local Java Script -->
46
<script language="JavaScript">
47
//  Local Tips
48
formTips.tips.following       = stdTip(200, 'Following', 'The user may \'follow\' a package in one or more Projects.<p>When the package is released the user will be notified by email.' );
7349 dpurdie 49
formTips.tips.baseView       = stdTip(200, 'Base View', 'The group to which that package has been logically assigned to within this release.'+
50
                                                        '<p>If a WIP or PENDING Version will replace a package already in this release then it will take on the base view of the existing package when it is released.'+
51
                                                        '<p>If the released package is in a different Base View, then it will be displayed in [square brackets]' );
6440 dpurdie 52
formTips.tips.ripple_stop     = stdTip(200, 'Ripple Stop', 'When set, will prevent the package being rippled. May be cleared to allow the ripple to continue.<p>If marked as \'Persistent\', then each new version will be marked to prevent rippling.' );
6480 dpurdie 53
formTips.tips.PreviousVcsTag  = newTip(-150, 20, 200, 10, 'PREVIOUS VCS TAG','This is the vcs tag of the immediate ancestor version to the current package version.'+
54
                                       '<br><br>NOTE:<br>Derivation of this has no sensitivity to the selected release.');
55
formTips.tips.PreviousSignificantVcsTag= newTip(-150, 20, 200, 10, 'PREVIOUS SIGNIFICANT VCS TAG',
56
                                                       'This is the vcs tag of the ancestor version immediately preceding a significant (non-ripple) change that led to the current package version.'+
57
                                                       '<br><br>NOTE:<br>Derivation of this has no sensitivity to the selected release.');
58
 
59
formTips.tips.PreviousNonRippleVcsTag= newTip(-150, 20, 200, 10, 'PREVIOUS NON RIPPLE VCS TAG',
60
                                                       'This is the vcs tag of the preceding significant (non-ripple) change that led to the current package version.'+
61
                                                       '<br><br>NOTE:<br>Derivation of this has no sensitivity to the selected release.');
6497 dpurdie 62
formTips.tips.CreationHints= newTip(-150, 20, 200, 10, 'HINTS FOR PACKAGE CREATION',
63
                                                       'These are not correct commands. They are command hints to assist in creating a new package.');
6642 dpurdie 64
formTips.tips.BuildOwner= newTip(-150, 20, 200, 10, 'BUILD OWNER',
65
                                                       'The Build Owner will be notified of Build Failures when a new package-version fails to build.' +
66
                                                        '<p>The Build Owner is set to the person who created the new version or who released the version to the build system by setting its state to Pending.');
7379 dpurdie 67
formTips.tips.JatsExtraction_SVN  = stdTip(250,'Subversion', 'Various extraction commands.<br>Choose a command that suits the current requirements.' +
68
                                                     '<p>Default - suits most requirements' +
69
                                                     '<br>Tag - Trace Tag back to development branch' +
70
                                                     '<br>Tip - Tip of the development branch' +
71
                                                     '<br>Work - Default' +
72
                                                     '<br>Exact - Extract the tagged instance' );
73
formTips.tips.JatsExtraction_GIT  = stdTip(200,'Git', 'Various extraction commands.<br>Choose a command that suits the current requirements.' );
74
 
75
formTips.tips.JatsExtraction_CC   = stdTip(200, 'ClearCase', 'Various extraction commands.<br>Choose a command that suits the current requirements.' +
76
                                                     '<p>A Project Branch will be displayed if configured, but it may not be suitable for all packages.');
77
 
78
formTips.tips.JatsExtraction_CVS  = stdTip(200,'CVS','Various extraction commands.<br>Choose a command that suits the current requirements.' );
79
formTips.tips.JatsExtraction_     = stdTip(200,'Unknown Version Control System','Various extraction commands.<br>Choose a command that suits the current requirements.' );
6480 dpurdie 80
 
5266 dpurdie 81
</script>
119 ghuddy 82
<%
83
'----------------------------------------------------------------------------------------------------------------------------------------
84
Function asDepIss ( SSiss_db_id, SScolumn )
121 hknight 85
   If NOT depIssDict.Exists (SSiss_db_id) Then Exit Function
119 ghuddy 86
 
121 hknight 87
   asDepIss = issArr ( SScolumn, CInt( depIssDict.Item (SSiss_db_id) ) )
119 ghuddy 88
End Function
89
'----------------------------------------------------------------------------------------------------------------------------------------
90
Function FixedIssues ( parPv_id )
121 hknight 91
   Dim sqlstr, rsTemp
92
   sqlstr = "SELECT pv_id FROM cq_issues WHERE pv_id = "& parPv_id &" AND iss_state = "& enumISSUES_STATE_FIXED
93
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
119 ghuddy 94
 
121 hknight 95
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
96
      FixedIssues = TRUE
97
   Else
98
      FixedIssues = FALSE
99
   End If
119 ghuddy 100
 
121 hknight 101
   rsTemp.Close()
102
   Set rsTemp = nothing
119 ghuddy 103
End Function
104
'----------------------------------------------------------------------------------------------------------------------------------------
105
Function SQL_Package_Information ( nPv_id )
121 hknight 106
   SQL_Package_Information = _
107
   " SELECT *"&_
108
   "   FROM PACKAGE_VERSIONS pv"&_
109
   "  WHERE pv.pv_id = "& nPv_id
119 ghuddy 110
End Function
111
'----------------------------------------------------------------------------------------------------------------------------------------
112
Function SQL_Dependency_Issues ( NNpv_id )
121 hknight 113
   SQL_Dependency_Issues = _
114
   " SELECT pkg.pkg_name, pv.pkg_version, pv.pv_id, cqi.iss_db, cqi.iss_id, cqi.iss_state, pv.comments AS reasons"&_
115
   "     FROM cq_issues cqi,"&_
116
   "          package_dependencies dep,"&_
117
   "          packages pkg,"&_
118
   "          package_versions pv"&_
119
   "    WHERE dep.pv_id = "& NNpv_id &_
120
   "      AND dep.dpv_id = cqi.pv_id(+)"&_
121
   "      AND dep.dpv_id = pv.pv_id(+)"&_
122
   "      AND pv.pkg_id = pkg.pkg_id"&_
123
   "   ORDER BY UPPER(pkg.pkg_name) ASC, cqi.iss_state DESC"
119 ghuddy 124
End Function
125
'----------------------------------------------------------------------------------------------------------------------------------------
126
Function SQL_Additional_Notes ( nPv_id )
121 hknight 127
   SQL_Additional_Notes = ReadFile( rootPath & "queries\additional_notes.sql" )
128
   SQL_Additional_Notes = Replace( SQL_Additional_Notes, ":PV_ID", nPv_id )
119 ghuddy 129
End Function
130
'----------------------------------------------------------------------------------------------------------------------------------------
131
Function SQL_Unit_Tests ( nPv_id )
121 hknight 132
   SQL_Unit_Tests = ReadFile( rootPath & "queries\unit_tests.sql" )
133
   SQL_Unit_Tests = Replace( SQL_Unit_Tests, ":PV_ID", nPv_id )
119 ghuddy 134
End Function
135
'----------------------------------------------------------------------------------------------------------------------------------------
121 hknight 136
' Function returns the number of imported clearquest issues
137
' and builds a string suitable for querying the clearquest issues database
138
Function Get_Package_Issues ( NNpv_id, SSsql, DDfixedIss, DDnotesIssDict, nIssState )
3975 dpurdie 139
   Dim rsTemp, sqlstr, DEVIiss, retVal
119 ghuddy 140
 
121 hknight 141
   If IsObject(DDfixedIss) Then
142
      ' Find this package issues
143
      sqlstr = "SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE pv_id="& NNpv_id &"  AND iss_state = "& nIssState
144
   Else
145
      ' Find dependency issues
146
      sqlstr = "SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE  pv_id IN ( "&_
147
               " SELECT dpv_id FROM package_dependencies WHERE pv_id = "& NNpv_id &_
148
               " )"
149
   End If
119 ghuddy 150
 
121 hknight 151
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
152
   retVal = rsTemp.RecordCount
119 ghuddy 153
 
121 hknight 154
   DEVIiss  = "-1"
119 ghuddy 155
 
121 hknight 156
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
157
      If CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_DEVI_ID) Then
158
         DEVIiss = DEVIiss &","& rsTemp("iss_id")
159
      End If
119 ghuddy 160
 
121 hknight 161
      If IsObject(DDfixedIss) Then
162
         ' Store only Fixed Issues
159 ghuddy 163
         If CInt(rsTemp("iss_state")) = CInt(enumISSUES_STATE_FIXED) AND _
164
           DDfixedIss.Exists(Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id"))) = false Then DDfixedIss.Add Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")), ""
121 hknight 165
      End If
119 ghuddy 166
 
121 hknight 167
      If IsObject(DDnotesIssDict) Then
168
         ' Store Notes
159 ghuddy 169
         If Not IsNull(rsTemp("notes")) AND (rsTemp("notes") <> "") AND _
170
           DDnotesIssDict.Exists(Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id"))) = false Then DDnotesIssDict.Add Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")), Cstr(rsTemp("notes"))
121 hknight 171
      End If
119 ghuddy 172
 
121 hknight 173
      rsTemp.MoveNext
174
   WEnd
119 ghuddy 175
 
121 hknight 176
   ' Construct SQL statement for CQ database
177
   SSsql = ReadFile( rootPath & "queries\cq_issues.sql" )
178
   SSsql = Replace( SSsql, "/*enumCLEARQUEST_DEVI_ID*/", enumCLEARQUEST_DEVI_ID)
179
   SSsql = Replace( SSsql, "/*DEVIiss*/", DEVIiss)
119 ghuddy 180
 
121 hknight 181
   rsTemp.Close()
182
   Set rsTemp = nothing
119 ghuddy 183
 
121 hknight 184
   Get_Package_Issues = retVal
119 ghuddy 185
 
121 hknight 186
End Function
119 ghuddy 187
'----------------------------------------------------------------------------------------------------------------------------------------
188
Sub LastPvId (PvId)
121 hknight 189
   Dim sqlstr
119 ghuddy 190
 
131 ghuddy 191
   sqlstr = "SELECT pv_id, pkg_version, comments, last_pv_id FROM PACKAGE_VERSIONS WHERE PV_ID= "& PvId
119 ghuddy 192
 
121 hknight 193
   Set rsQry = OraDatabase.DbCreateDynaset( sqlstr, cint(0) )
119 ghuddy 194
 
195
End Sub
196
'----------------------------------------------------------------------------------------------------------------------------------------
197
Function  Get_CQ_Issues ( SSsql, OOrsCQ )
198
 
121 hknight 199
   On Error Resume Next
4553 dpurdie 200
   Set OOrsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
121 hknight 201
   Get_CQ_Issues = Err.Number
119 ghuddy 202
 
203
End Function
204
'----------------------------------------------------------------------------------------------------------------------------------------
205
Function Get_Dependency_CQ_Issues ( SSsql, OOrsCQ, DDdepIss, AAiss )
121 hknight 206
   Dim recCnt
119 ghuddy 207
 
121 hknight 208
   On Error Resume Next
4553 dpurdie 209
   Set OOrsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
119 ghuddy 210
 
121 hknight 211
   ' Exit with error if error occurs
212
   Get_Dependency_CQ_Issues = Err.Number
213
   If Err.Number <> 0 Then Exit Function
119 ghuddy 214
 
121 hknight 215
   recCnt = 1
119 ghuddy 216
 
121 hknight 217
   While ((NOT OOrsCQ.BOF) AND (NOT OOrsCQ.EOF))
218
      ReDim Preserve AAiss( 6, recCnt )
219
      'If NOT DDdepIss.Exists Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")) Then
220
         DDdepIss.Add Cstr(OOrsCQ("iss_db") &"."& OOrsCQ("iss_id")), Cstr(recCnt)
221
      'End If
222
      AAiss( enumLoc_iss_db, recCnt )    = OOrsCQ("iss_db")
223
      AAiss( enumLoc_iss_id, recCnt )    = OOrsCQ("iss_id")
224
      AAiss( enumLoc_iss_num, recCnt )   = OOrsCQ("iss_num")
225
      AAiss( enumLoc_summary, recCnt )   = OOrsCQ("summary")
226
      AAiss( enumLoc_status, recCnt )    = OOrsCQ("status")
227
      AAiss( enumLoc_priority, recCnt )    = OOrsCQ("priority")
228
      AAiss( enumLoc_issue_type, recCnt ) = OOrsCQ("issue_type")
119 ghuddy 229
 
121 hknight 230
      recCnt = recCnt + 1
231
      OOrsCQ.MoveNext
232
   WEnd
119 ghuddy 233
 
121 hknight 234
   OOrsCQ.Close()
119 ghuddy 235
End Function
236
'----------------------------------------------------------------------------------------------------------------------------------------
237
Sub Group_By ( rsG, styleG, currG )
121 hknight 238
   If rsG = currG Then Exit Sub
239
   Response.write styleG
240
   'currG = rsG
119 ghuddy 241
End Sub
242
'----------------------------------------------------------------------------------------------------------------------------------------
243
Sub CheckUnitTestsState ( nPv_id, outMSG, outMSG_ID, outNote, outTestsFound )
121 hknight 244
   Dim sqlstr, rsTemp
245
   sqlstr = ReadFile( rootPath & "queries\unit_test_entries_check.sql" )
246
   sqlstr = Replace( sqlstr, ":PV_ID", nPv_id)
247
   sqlstr = Replace( sqlstr, ":enumTEST_TYPE_NOT_DONE", enumTEST_TYPE_NOT_DONE)
119 ghuddy 248
 
121 hknight 249
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
119 ghuddy 250
 
121 hknight 251
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
252
      outMSG = rsTemp("msg")
253
      outMSG_ID = CInt(rsTemp("msg_id"))
254
      outNote = rsTemp("test_summary")
255
      outTestsFound = FALSE
119 ghuddy 256
 
121 hknight 257
      If IsNull(rsTemp("msg")) Then outTestsFound = TRUE
258
   End If
119 ghuddy 259
 
121 hknight 260
   rsTemp.Close()
261
   Set rsTemp = nothing
119 ghuddy 262
End Sub
263
'----------------------------------------------------------------------------------------------------------------------------------------
264
Function FormatAccepted ( sAccepted, nTest_id )
121 hknight 265
   Dim tempSTR
266
   If IsNull(nTest_id) Then Exit Function
119 ghuddy 267
 
121 hknight 268
   tempSTR = ""
119 ghuddy 269
 
121 hknight 270
   If pageIsEditable Then
271
      tempSTR = "<select name='acc"& nTest_id &"' class='form_item'>"
272
   Else
273
      tempSTR = "<select name='acc"& nTest_id &"' class='form_item' disabled>"
274
   End If
119 ghuddy 275
 
121 hknight 276
   If sAccepted = enumUNIT_TEST_ACCEPTED Then
277
      tempSTR = tempSTR  &"<option></option>"&_
278
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"' SELECTED>Yes</option>"&_
279
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"'>No</option>"
119 ghuddy 280
 
121 hknight 281
   ElseIf sAccepted = enumUNIT_TEST_NOTACCEPTED Then
282
      tempSTR = tempSTR  &"<option></option>"&_
283
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"'>Yes</option>"&_
284
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"' SELECTED>No</option>"
119 ghuddy 285
 
121 hknight 286
   Else
287
      tempSTR = tempSTR  &"<option SELECTED></option>"&_
288
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"'>Yes</option>"&_
289
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"'>No</option>"
119 ghuddy 290
 
121 hknight 291
   End If
119 ghuddy 292
 
121 hknight 293
   tempSTR = tempSTR & "</select>"
119 ghuddy 294
 
121 hknight 295
   FormatAccepted = tempSTR
119 ghuddy 296
 
297
End Function
298
'----------------------------------------------------------------------------------------------------------------------------------------
299
Function SQL_CodeReview ( nPv_id )
121 hknight 300
   SQL_CodeReview = _
301
   "   SELECT cr.date_of_review, cr.time_spent, cr.review_reason, cr.rteam_domain_expert,"&_
302
   "          cr.rteam_language_expert, cr.rteam_peer_developer, cr.rteam_author,"&_
303
   "          cr.files_reviewed, cr.review_results, cr.issues_raised,"&_
304
   "          cr.review_comments, cr.fnc_s_meets_functionality,"&_
305
   "          cr.fnc_c_meets_functionality"&_
306
   "     FROM code_reviews cr"&_
307
   "    WHERE cr.pv_id = "& nPv_id
119 ghuddy 308
End Function
309
'----------------------------------------------------------------------------------------------------------------------------------------
310
Function SQL_Build_Env ( nPv_id )
121 hknight 311
   SQL_Build_Env = _
312
   " SELECT pv.*, bm.BM_ID,"&_
313
   "         bm.BM_NAME,"&_
4134 dpurdie 314
   "         pkgbinfo.BSA_ID,"&_
315
   "         bsa.BSA_NAME"&_
121 hknight 316
   "     FROM PACKAGE_BUILD_INFO pkgbinfo,"&_
317
   "           BUILD_MACHINES bm,"&_
4134 dpurdie 318
   "           PACKAGE_VERSIONS pv,"&_
319
   "           BUILD_STANDARDS_ADDENDUM bsa"&_
121 hknight 320
   "    WHERE pkgbinfo.BM_ID = bm.BM_ID"&_
321
   "    AND pv.PV_ID = pkgbinfo.PV_ID"&_
322
   "      AND pkgbinfo.PV_ID = "& nPv_id  &_
4134 dpurdie 323
   "      AND pkgbinfo.BSA_ID = bsa.BSA_ID"&_
121 hknight 324
   "   ORDER BY UPPER(bm.BM_NAME) "
119 ghuddy 325
End Function
326
'----------------------------------------------------------------------------------------------------------------------------------------
327
Function DecodeOverallResult ( ByVal cCheck )
121 hknight 328
   If cCheck = "" OR IsNull(cCheck) Then cCheck = 0
119 ghuddy 329
 
121 hknight 330
   Select Case CInt( cCheck )
331
      Case enumCODE_REVIEW_ACCEPTED
332
         DecodeOverallResult = "Accepted"
333
      Case enumCODE_REVIEW_MINOR_UPDATES
334
         DecodeOverallResult = "Minor updates required"
335
      Case enumCODE_REVIEW_MAJOR_REWORK
336
         DecodeOverallResult = "Major rework required"
337
      Case Else
338
         DecodeOverallResult = ""
339
   End Select
119 ghuddy 340
 
341
End Function
342
'----------------------------------------------------------------------------------------------------------------------------------------
4134 dpurdie 343
Function GetBuildType ( nBuildType, nBuildName )
119 ghuddy 344
 
4134 dpurdie 345
   if (IsNull(nBuildType) OR (nBuildType = "")) Then
346
       GetBuildType = "Build type not defined"
347
   ElseIf (IsNull(nBuildName) OR (nBuildName = "") ) Then
348
       GetBuildType = "Build Name not defined"
121 hknight 349
   Else
4134 dpurdie 350
        GetBuildType = nBuildName    
121 hknight 351
   End If
119 ghuddy 352
 
4134 dpurdie 353
  '' Wrap around brackets
121 hknight 354
   GetBuildType = "("& GetBuildType &")"
119 ghuddy 355
 
356
End Function
357
'----------------------------------------------------------------------------------------------------------------------------------------
358
Sub GetPackageMetrics (NNpv_id, rsTemp)
359
 
121 hknight 360
   OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 361
 
121 hknight 362
   Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("PackageMetrics.sql"), cint(0))
119 ghuddy 363
 
121 hknight 364
   OraDatabase.Parameters.Remove "PV_ID"
119 ghuddy 365
 
366
End Sub
367
'----------------------------------------------------------------------------------------------------------------------------------------
368
Sub GetCodeReviewURLs (NNpv_id, rsTemp)
369
 
121 hknight 370
   OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 371
 
121 hknight 372
   Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("CodeReviewURLs.sql"), cint(0))
119 ghuddy 373
 
121 hknight 374
   OraDatabase.Parameters.Remove "PV_ID"
119 ghuddy 375
 
376
End Sub
161 iaugusti 377
 
378
 
379
'---------------------------------------------------------------
380
Sub Query_Config_Spec (NNRtag_id, NNPv_id)
381
   OraDatabase.Parameters.Add "RTAG_ID", NNRtag_id,   ORAPARM_INPUT, ORATYPE_NUMBER
382
   OraDatabase.Parameters.Add "PV_ID", NNPv_id,   ORAPARM_INPUT, ORATYPE_NUMBER
383
   If NNRtag_id <> "" Then
384
      If pkgInfoHash.Item ("dlocked") <> "Y" Then
385
         Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("config_spec.sql"), cint(0))
386
      Else
387
         Set rsQry = OraDatabase.DbCreateDynaset( Replace(GetQuery("config_spec.sql"), "PV.LAST_PV_ID", "PV.PV_ID"), cint(0))
388
      End If
389
   Else
390
      If pkgInfoHash.Item ("dlocked") <> "Y" Then
391
         Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("config_spec_nortag.sql"), cint(0))
392
      Else
393
         Set rsQry = OraDatabase.DbCreateDynaset( Replace(GetQuery("config_spec_nortag.sql"), "PV.LAST_PV_ID", "PV.PV_ID"), cint(0))
394
      End If
395
   End If
396
   OraDatabase.Parameters.Remove "RTAG_ID"
397
   OraDatabase.Parameters.Remove "PV_ID"
398
End Sub
399
 
400
'---------------------------------------------------------------
167 brianf 401
' Returns the jats extraction commands
2735 dpurdie 402
Sub Jats_Extract_Command (ByRef sjats_cmds(), ByRef ajats_cmd_test, ByRef sjats_cmds_qh, ByRef sjats_extractable)
161 iaugusti 403
   Dim dlocked: dlocked = pkgInfoHash.Item("dlocked")
169 brianf 404
   Dim pkg_vcs_tag: pkg_vcs_tag = Get_Pkg_Vcs_Tag(Request("pv_id"))
1376 dpurdie 405
   Dim ii: ii = -1
406
   Dim baseCmd
2735 dpurdie 407
   sjats_extractable = false
161 iaugusti 408
 
6497 dpurdie 409
   sjats_cmds_qh = vcsInfoCollector.Item("vcs_tag")
410
   If ( sjats_cmds_qh = "CC" OR sjats_cmds_qh = "SVN" ) Then
411
      sjats_extractable = true
412
   End If
413
 
167 brianf 414
   ' if not released then use last package version vcs tag and branch else use current vcs tag
415
   If dlocked <> "Y" Then
416
     ' not released, so get last package version id
1376 dpurdie 417
 
6497 dpurdie 418
     Dim last_version_valid
167 brianf 419
     Dim last_pv_id: last_pv_id = pkgInfoHash.Item("last_pv_id")
6497 dpurdie 420
     Dim last_pkg_vcs_tag
1376 dpurdie 421
     Dim VcsType
161 iaugusti 422
 
6497 dpurdie 423
     last_version_valid = TRUE
424
     If IsNull(pkgInfoHash.Item ("previous_version")) Then
425
         last_version_valid = FALSE
426
     ElseIf last_pv_id = pkgInfoHash.Item ("pv_id") Then
427
         last_version_valid = FALSE
428
     ElseIf pkgInfoHash.Item ("pkg_count") = 1 Then 
429
         last_version_valid = FALSE
430
     End If
431
 
432
     If last_version_valid Then
433
         last_pkg_vcs_tag = Get_Pkg_Vcs_Tag(last_pv_id)
434
     End If
435
 
2365 dpurdie 436
     If (last_version_valid AND last_pkg_vcs_tag <> "") Then
437
        VcsType = Mid(last_pkg_vcs_tag, 1, InStr(1, last_pkg_vcs_tag, "::") - 1 )
438
        sjats_cmds_qh = VcsType
439
        baseCmd =  "jats vcsrelease -extract -label """ & last_pkg_vcs_tag & """"
440
        ii = ii+1 : sjats_cmds(ii) = baseCmd
1376 dpurdie 441
 
442
         ' ClearCase extraction may get a project specific branch appended
443
         ' This will be used to automatically branch the files in the package
444
         '
445
         If (VcsType = "CC") Then
446
             Call Query_Config_Spec (Request("rtag_id"), last_pv_id)
447
             Dim config_branch: config_branch = rsQry("config_spec_branch")
448
             If NOT IsNull(config_branch) AND (config_branch <> "") Then
449
                 ii = ii+1 : sjats_cmds(ii) = baseCmd & " -branch " & config_branch
450
             End If
451
         End If
452
 
453
         If (VcsType = "SVN") Then
454
            ii = ii+1 : sjats_cmds(ii) = baseCmd & " -devMode=Tag"
455
            ii = ii+1 : sjats_cmds(ii) = baseCmd & " -devMode=Tip"
456
            ii = ii+1 : sjats_cmds(ii) = baseCmd & " -devMode=Work"
457
            ii = ii+1 : sjats_cmds(ii) = baseCmd & " -devMode=Exact"
458
         End If
167 brianf 459
     Else
6497 dpurdie 460
         'ii = ii+1 : sjats_cmds(ii) = "No Previous version to extract"
167 brianf 461
     End If
1376 dpurdie 462
 
463
     baseCmd =  "jats vcsrelease -extract -label """ & pkg_vcs_tag & """"
464
     ii = ii+1 : sjats_cmds(ii) = baseCmd
465
 
161 iaugusti 466
   Else
2735 dpurdie 467
    ' released
6497 dpurdie 468
    if sjats_extractable Then
2735 dpurdie 469
        baseCmd =  "jats vcsrelease -extract -label """ & pkg_vcs_tag & """"
470
        ii = ii+1 : sjats_cmds(ii) = baseCmd
471
    Else
472
        baseCmd =  "Cannot be extracted with JATS"
473
        ii = ii+1 : sjats_cmds(ii) = baseCmd
474
    End If
475
 
161 iaugusti 476
   End If
167 brianf 477
 
1376 dpurdie 478
   ' Test Command
2735 dpurdie 479
   if sjats_extractable Then
480
        ajats_cmd_test = "jats vcsrelease -test -label """ & pkg_vcs_tag & """"
481
   Else
482
        ajats_cmd_test = "Cannot be extracted with JATS"
483
   End If
161 iaugusti 484
 
1376 dpurdie 485
   ReDim Preserve sjats_cmds(ii)
161 iaugusti 486
   rsQry.Close()
487
   Set rsQry = nothing
488
 
489
End Sub
490
 
167 brianf 491
'---------------------------------------------------------------
492
' Returns the VCS tag for the specified package version
2365 dpurdie 493
' Note: ORAPARM_OUTPUT default size is 127 bytes. This is too short for some
494
'
169 brianf 495
Function Get_Pkg_Vcs_Tag(apv_id)
167 brianf 496
   OraDatabase.Parameters.Add "PV_ID", apv_id, ORAPARM_INPUT, ORATYPE_NUMBER
2365 dpurdie 497
   OraDatabase.Parameters.Add "RETURN_CODE","xxxx", ORAPARM_OUTPUT, ORATYPE_VARCHAR2
2735 dpurdie 498
   OraDatabase.Parameters("RETURN_CODE").MinimumSize = 200
1376 dpurdie 499
   On Error Resume Next
500
        OraDatabase.ExecuteSQL ("BEGIN   :RETURN_CODE := PK_RMAPI.RETURN_VCS_TAG( :PV_ID );   END;")
501
        Get_Pkg_Vcs_Tag = OraDatabase.Parameters("RETURN_CODE").Value
502
   On Error Goto 0
167 brianf 503
   OraDatabase.Parameters.Remove "PV_ID"
504
   OraDatabase.Parameters.Remove "RETURN_CODE"
505
End Function
5266 dpurdie 506
'-------------------------------------------------
507
' Description:  Return a string displaying if the user is following this package in theis Release
119 ghuddy 508
'----------------------------------------------------------------------------------------------------------------------------------------
5266 dpurdie 509
Function GetFollowing ()
510
   Dim rsQry
5269 dpurdie 511
   Dim thisProject, otherProjects, someProjects
5266 dpurdie 512
 
513
   GetFollowing = "Not logged in"
514
 
515
   If objAccessControl.UserLogedIn() Then
516
       OraDatabase.Parameters.Add "PKG_ID",  pkgInfoHash.Item ("pkg_id"), ORAPARM_INPUT, ORATYPE_NUMBER
517
       OraDatabase.Parameters.Add "PROJ_ID", pkgInfoHash.Item ("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
518
       OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId(), ORAPARM_INPUT, ORATYPE_NUMBER
519
 
5269 dpurdie 520
       If pkgInfoHash.Item ("proj_id") <> "" Then
521
           Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PACKAGE_INTEREST WHERE PKG_ID = :PKG_ID AND PROJ_ID = :PROJ_ID AND USER_ID = :USER_ID", cint(0))
522
           thisProject = rsQry.RecordCount > 0
5266 dpurdie 523
 
5269 dpurdie 524
           Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PACKAGE_INTEREST WHERE PKG_ID = :PKG_ID AND PROJ_ID != :PROJ_ID AND USER_ID = :USER_ID", cint(0))
525
           otherProjects = rsQry.RecordCount > 0
5266 dpurdie 526
 
5269 dpurdie 527
           If thisProject Then
528
               If otherProjects Then
529
                    GetFollowing = "Yes. In this and " & rsQry.RecordCount & " other projects"
530
                   Else
531
                    GetFollowing = "Yes. Only this project"
532
               End If
533
           Else
534
               If otherProjects Then
535
                    GetFollowing = "Yes. In " & rsQry.RecordCount & " other projects"
536
                   Else
537
                    GetFollowing = "No"
538
               End If
5266 dpurdie 539
           End If
5269 dpurdie 540
 
5266 dpurdie 541
       Else
5269 dpurdie 542
           Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PACKAGE_INTEREST WHERE PKG_ID = :PKG_ID AND USER_ID = :USER_ID", cint(0))
543
           someProjects = rsQry.RecordCount > 0
544
 
545
           If rsQry.RecordCount > 0 Then
546
                GetFollowing = "Yes. In " & rsQry.RecordCount & " Projects"
5266 dpurdie 547
               Else
548
                GetFollowing = "No"
549
           End If
5269 dpurdie 550
 
5266 dpurdie 551
       End If
552
 
5269 dpurdie 553
 
5266 dpurdie 554
       OraDatabase.Parameters.Remove "USER_ID"
555
       OraDatabase.Parameters.Remove "PROJ_ID"
556
       OraDatabase.Parameters.Remove "PKG_ID"
557
       rsQry.Close()
558
       Set rsQry = nothing
559
 
5270 dpurdie 560
       If pageIsEditable Then
561
           GetFollowing = GetFollowing &  "<img class='image12 vixIframeDialog' href='_iframe_pkgs_followed.asp?proj_id=" & pkgInfoHash.Item ("proj_id") & "&pkg_id=" & pkgInfoHash.Item ("pkg_id") & "' title='Follow: " & pkgInfoHash.Item ("pkg_name") &"' src='images/i_follow.gif'>"
562
       End If
5266 dpurdie 563
 
564
    End If
565
End Function
5980 dpurdie 566
'---------------------------------------------------------------
5338 dpurdie 567
' Description:  Return a string displaying licence information
5980 dpurdie 568
'---------------------------------------------------------------
5338 dpurdie 569
Function getLicence
570
   Dim rsQry, rsSql, lName
571
   Dim licenceList
572
   Dim joiner : joiner = ""
573
   Dim otherVersions : otherVersions = ""
574
 
575
   Set licenceList=Server.CreateObject("Scripting.Dictionary")
576
   getLicence = ""
577
 
578
   ' Determine license for this package-version
579
	OraDatabase.Parameters.Add "PV_ID", pkgInfoHash.Item ("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
580
 
581
    Set rsQry = OraDatabase.DbCreateDynaset( _
582
		"SELECT l.NAME FROM LICENCES l, LICENCING ld" &_
583
		" WHERE l.LICENCE = ld.LICENCE " &_
584
		" and ld.PV_ID = :PV_ID" &_
585
		" ORDER by l.NAME" _
586
		, cint(0))
587
 
588
	While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
589
       lName = rsQry("name")
590
	   getLicence = getLicence & joiner & lName 
591
	   licenceList.Add lName, "Y"
592
	   joiner = ", "
593
	   rsQry.MoveNext
594
	WEnd
595
    rsQry.Close()
596
    Set rsQry = nothing
597
 
598
	'
599
	' Indicate if other versions have licences - ignore those we already know about
600
	' The data is stored on a package-version basis
601
	'
602
    Set rsQry = OraDatabase.DbCreateDynaset( _
603
		"SELECT UNIQUE ld.NAME" &_
604
		" FROM licencing l,LICENCES ld" &_
605
		" WHERE l.pv_id IN" &_
606
		"  (SELECT pv_id" &_
607
		"  FROM package_versions" &_
608
		"  WHERE pkg_id IN" &_
609
		"    (SELECT pkg_id FROM package_versions WHERE pv_id=:PV_ID)" &_
610
		"    AND pv_id != :PV_ID" &_
611
		"  )" &_
612
		"  AND l.LICENCE = ld.LICENCE" &_
613
		"  ORDER by ld.NAME" _
614
		, cint(0))
615
 
616
	joiner = ""
617
	While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
618
       lName = rsQry("name")
619
       If NOT licenceList.Exists(lName) Then
620
           otherVersions = otherVersions & joiner & rsQry("name")
621
	       joiner = ", "
622
       End If
623
	   rsQry.MoveNext
624
	WEnd
5952 dpurdie 625
 
5338 dpurdie 626
    OraDatabase.Parameters.Remove "PV_ID"
627
    rsQry.Close()
628
    Set rsQry = nothing
629
 
630
	If otherVersions <> "" Then
631
		getLicence = getLicence & ". Other Versions: " & otherVersions
632
	End If
633
End Function
5472 dpurdie 634
'-------------------------------------------------
635
Function getLinkUrl(pvid)
636
     Dim joiner : joiner = "?"
637
 
638
     getLinkUrl = scriptName
639
 
640
     If parRtag_id <> "" Then
641
        getLinkUrl = getLinkUrl + joiner + "rtag_id=" + parRtag_id
642
        joiner = "&"
643
     End If
644
 
645
     getLinkUrl = getLinkUrl + joiner + "pv_id=" + pvid
646
End Function
6480 dpurdie 647
'-------------------------------------------------
648
'   DisplayVersionRow   - Display a row of vesrion information
6497 dpurdie 649
'       pvid    - pvid to process. Null -> "Initial Version"
6480 dpurdie 650
'       title   - row title
651
'       helpTag - Tag for help
652
'
653
Sub DisplayVersionRow( pvid, title, helpTag )
654
      Dim   versionText
655
      Dim   tagText
656
      Dim   showLink
657
      Dim   clipClass
658
      Dim   ExtractText
659
      Dim   queryResult
660
 
6497 dpurdie 661
      If IsNull(pvid) Then
662
          versionText = "Initial Version"
663
          tagText = NULL
664
          showLink = FALSE
6480 dpurdie 665
      Else
6497 dpurdie 666
          Set   queryResult = OraDatabase.DbCreateDynaset( "SELECT pkg_version from package_versions where pv_id =" & pvid , cint(0))
6480 dpurdie 667
 
6497 dpurdie 668
          If (NOT queryResult.BOF ) AND (NOT queryResult.EOF) Then
669
            versionText = queryResult("pkg_version")
670
            tagText = Get_Pkg_Vcs_Tag(pvid)
671
            showLink = isDefined("showPrevVerLinks") 
672
          Else
673
            versionText = "Unknown"
674
            tagText = NULL
675
            showLink = FALSE
676
          End If
677
 
678
          queryResult.Close()
679
          Set queryResult = nothing
680
 
681
     End If
682
 
6480 dpurdie 683
      If sjats_extractable Then
684
        clipClass = "clip"
685
        ExtractText = NewLine_To_BR ( To_HTML(tagText) ) 
686
      Else
687
        clipClass = ""
688
        ExtractText = "Cannot be extracted with JATS"
689
      End If
690
      %>
691
         <tr>
6873 dpurdie 692
            <td width="20%" ><%=title%><%=Quick_Help(helpTag)%></td>
693
            <td>
6480 dpurdie 694
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
6873 dpurdie 695
                <tr>
696
                  <td width=15% colspan=2 nowrap>
6480 dpurdie 697
                    <%=versionText%>
698
                    <%If showLink Then %>
699
                        <a href=<%=getLinkUrl(pvid)%>>
6827 dpurdie 700
                        <img src="images/i_link.gif" hspace="2" border="0" align='absmiddle' title="Show this version">
6480 dpurdie 701
                        </a>
702
                    <%End If%>
703
                  </td>
704
                  <%If NOT IsNull(tagText) Then %>
6873 dpurdie 705
                  <td colspan=2 nowrap class="<%=clipClass%>">
6480 dpurdie 706
                    <%=ExtractText%>
707
                  </td>
708
                  <%End If%>
709
                </tr>
710
              </table>
711
            </td>
712
         </tr>
713
      <%
714
End Sub
6497 dpurdie 715
 
716
'-------------------------------------------------
717
'   DisplayCreationCommands
718
'   Display commands that may be useful in the creation of the package
719
'
720
Sub DisplayCreationCommands
6508 dpurdie 721
    Dim VcsType: VcsType = vcsInfoCollector.Item("vcs_tag")
6497 dpurdie 722
    Dim title: title = "Package Creation Hints"
723
    Dim SvnUrl
724
    Dim SvnLabel
725
 
726
    If VcsType = "SVN" Then
727
        If pkgInfoHash.Item("src_path") <> "" Then
728
            SvnUrl = pkgInfoHash.Item("src_path")
729
            Dim lastBit: lastBit = InStrRev(SvnUrl, "/" )
730
            If lastBit > 1 Then
731
                SvnUrl = Left(SvnUrl, lastBit-1) 
732
            End If
733
        Else
734
            SvnUrl = "AUPERASVN0X/RepoName/" & pkgInfoHash.Item ("pkg_name")
735
        End If
736
        If pkgInfoHash.Item("pkg_label") <> "" Then
737
            SvnLabel = pkgInfoHash.Item("pkg_label") 
738
        Else
739
            SvnLabel = "SomeLabel.WIP"
740
        End If
741
 
742
      %>
743
         <tr>
6873 dpurdie 744
            <td><%=title%><%=Quick_Help("CreationHints")%></td>
745
            <td>
6497 dpurdie 746
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
6873 dpurdie 747
                  <tr><td nowrap class="clip"> jats svn create_package -new <%=SvnUrl%> </td></tr>
748
                  <tr><td nowrap class="clip"> jats svn create_package -new <%=SvnUrl%> -import=&lt;PkgDir&gt; </td></tr>
749
                  <tr><td nowrap class="clip"> jats svn create_package -new <%=SvnUrl%> -label=<%=SvnLabel%> -import=&lt;PkgDir&gt; </td></tr>
750
                  <tr><td nowrap class="clip"> jats svn create_package -new <%=SvnUrl%> -label=<%=SvnLabel%> -import=<%=pkgInfoHash.Item ("pkg_name")%> </td></tr>
6497 dpurdie 751
              </table>
752
            </td>
753
         </tr>
754
      <%
6508 dpurdie 755
    Else
756
    %>
757
         <tr>
6873 dpurdie 758
            <td><%=title%></td>
759
            <td>Not supported under this version control system.</td>
6508 dpurdie 760
         </tr>
761
     <%
6497 dpurdie 762
    End If
763
End Sub
119 ghuddy 764
%>
765
<%
766
'------------------ MAIN LINE --------------------
767
'-------------------------------------------------
5932 dpurdie 768
If pkgInfoHash.Exists("pv_id") Then
119 ghuddy 769
%>
770
<!-- PACKAGE INFORMATION --------------------------------------------------------------------------------------------------------------->
6324 dpurdie 771
   <fieldset class="fset">
772
   <legend class="body_colb"><img src='images/s_info.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Package Information</legend>
773
   <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
774
   <%If pageIsEditable Then%>
6827 dpurdie 775
           <span onClick="MM_openVixIFrame('_wform_pkg_info.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Package Info')" class="txt_linked pointer">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 776
   <%End If%>
777
   </div>
121 hknight 778
   <a name="PACKAGE_INFORMATION"></a>
6873 dpurdie 779
   <table width="100%" border="0" cellspacing="1" cellpadding="2" class='lhsGrey'>
129 ghuddy 780
      <%
781
      Set rsQry = OraDatabase.DbCreateDynaset( SQL_Package_Information ( parPv_id ), cint(0))
161 iaugusti 782
 
137 ghuddy 783
      Call get_vcs_info_for_package( rsQry("pkg_label"), rsQry("build_type"), rsQry("vcs_type_id"), rsQry("dlocked"), vcsInfoCollector )
161 iaugusti 784
 
785
      %>
129 ghuddy 786
 
161 iaugusti 787
      <%
5293 dpurdie 788
        ' Status:
161 iaugusti 789
        Dim sstate
171 brianf 790
        Dim bcan_unlock
161 iaugusti 791
        Dim stitle
171 brianf 792
        Dim bis_patch
5293 dpurdie 793
        Dim spkgType
6610 dpurdie 794
        Dim shref
161 iaugusti 795
 
171 brianf 796
        bis_patch = not IsNull(pkgInfoHash.Item ("is_patch")) 
3616 dpurdie 797
        If bis_patch Then
798
          ' the user can unlock a patch if they have permission
799
          ' packages can be unlocked by the btnUnlockRelease button
5061 dpurdie 800
          bcan_unlock = canActionControlInProject("UnlockPatch")
5293 dpurdie 801
          spkgType = "Patch"
3616 dpurdie 802
        Else
5061 dpurdie 803
          bcan_unlock = canActionControlInProject("EditCriticalInfoForLockedPackage")
5293 dpurdie 804
          spkgType = "Package"
3616 dpurdie 805
        End If
171 brianf 806
 
5086 dpurdie 807
        If pkgInfoHash.Item("is_sdkpkg") Then bcan_unlock = FALSE
808
 
3959 dpurdie 809
        Select Case pkgInfoHash.Item ("dlocked")
810
            Case "Y"  sstate = "Released"
811
            Case "N"  sstate = "Not Released"
812
            Case "P"  sstate = "Not Released. Pending approval"
6181 dpurdie 813
            Case "A"  sstate = "Not Released. Approved for build"
3959 dpurdie 814
            Case "R"  sstate = "Not Released. Rejected"
815
            Case Else sstate = "Not Released. Invalid State"
816
        End Select
817
 
171 brianf 818
        If bcan_unlock  Then
161 iaugusti 819
          If (pkgInfoHash.Item ("dlocked") = "Y") Then
5293 dpurdie 820
            ' Unlock patch/package.
821
            stitle="Unlock the " & spkgType
161 iaugusti 822
            shref="_s_unlock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
5293 dpurdie 823
 
161 iaugusti 824
          ElseIf (pkgInfoHash.Item ("dlocked") = "N") Then
5293 dpurdie 825
            ' lock patch/package.
826
            stitle="Lock the "& spkgType &". Release requirements are not applied."
161 iaugusti 827
            shref="_s_lock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
5293 dpurdie 828
 
3616 dpurdie 829
          Else
5293 dpurdie 830
            ' unlock patch/package.
831
            stitle="Unlock the " & spkgType
3616 dpurdie 832
            shref="_s_unlock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
833
            bcan_unlock = FALSE
161 iaugusti 834
          End If
835
        End if
129 ghuddy 836
      %>
161 iaugusti 837
 
121 hknight 838
      <tr>
6873 dpurdie 839
         <td>
6579 dpurdie 840
         <% If bcan_unlock Then %>
6873 dpurdie 841
              <span title='<%=stitle%>' class='pointer' onClick="window.location='<%=shref%>'">Status:&nbsp;<img src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'></span>
171 brianf 842
         <% Else %>
6873 dpurdie 843
              Status:<img src='images/i_edit_disable.gif' width='12' height='12' border='0' title='Cannot change status' align='absmiddle'>
171 brianf 844
         <% End If %>
161 iaugusti 845
         </td>
6873 dpurdie 846
         <td><%=sstate%></td>
161 iaugusti 847
      </tr>
848
 
849
      <tr>
6873 dpurdie 850
         <td>Deployable:</td>
851
         <td><%=iif(IsNull( rsQry("is_deployable") ), "No","Yes")%></td>
121 hknight 852
      </tr>
129 ghuddy 853
 
161 iaugusti 854
      <tr>
6873 dpurdie 855
         <td>Short Description:</td>
856
         <td class="clip">
161 iaugusti 857
            <%If IsNull( rsQry("pv_description") ) Then%>
5596 dpurdie 858
               <span class='err_alert'>Required!</span>
859
            <%Else%>
860
              <%=NewLine_To_BR ( To_HTML( rsQry("pv_description") ) )%>
161 iaugusti 861
            <%End If%>
862
         </td>
863
      </tr>
864
      <tr>
6873 dpurdie 865
         <td>Package Overview:</td>
866
         <td class="clip">
161 iaugusti 867
            <%If IsNull( rsQry("pv_overview") ) Then%>
5596 dpurdie 868
               <span class='err_alert'>Required!</span>
869
            <%Else%>
870
               <%=NewLine_To_BR ( To_HTML( rsQry("pv_overview") ) )%>
161 iaugusti 871
            <%End If%>
872
         </td>
873
      </tr>
5338 dpurdie 874
	  <!-- Package Licence information -->
5980 dpurdie 875
      <%
876
        Dim sonclick
6642 dpurdie 877
        Dim imgClass
878
        Dim sClass
5980 dpurdie 879
      %>
5338 dpurdie 880
      <tr>
6873 dpurdie 881
         <td>
6827 dpurdie 882
            <%BuildEditButtonRaw canActionControlInProject ("EditPackageLicence") OR canActionControl("MSMaintainer"), _
883
                "Package Licence:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
884
                "MM_openVixIFrame('_wform_change_licence.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change License')" %>
5980 dpurdie 885
         </td>
6873 dpurdie 886
         <td>
5338 dpurdie 887
            <%=getLicence()%>
888
         </td>
889
      </tr>
6827 dpurdie 890
	  <!-- Build Owner -->
6873 dpurdie 891
      <tr>
892
        <td>
6827 dpurdie 893
         <%BuildEditButtonRaw objAccessControl.UserLogedIn() AND NOT pkgInfoHash.Item("is_sdkpkg"),_
894
             "Build Owner:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
895
             "MM_openVixIFrame('_wform_change_owner.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change Owner')" %>
6642 dpurdie 896
          <%=Quick_Help("BuildOwner")%>
161 iaugusti 897
        </td>         
6873 dpurdie 898
        <td><%=emailField(pkgInfoHash.Item ("owner"),pkgInfoHash.Item ("owner_email"))%></td>         
161 iaugusti 899
      </tr>
900
 
901
      <tr>
6873 dpurdie 902
         <td>Created:</td>
903
         <td>
6999 dpurdie 904
            <%=DisplayDateTimeSecs(pkgInfoHash.Item ("created_stamp"))&" by "& emailField(pkgInfoHash.Item ("creator"),pkgInfoHash.Item ("creator_email"))%>
161 iaugusti 905
         </td>
906
      </tr>
907
 
908
      <%
909
        ' Last Modified:
910
      %>
911
      <tr>
6873 dpurdie 912
         <td>Last Modified:</td>
913
         <td>
6610 dpurdie 914
            <%=DisplayDateTimeSecs(pkgInfoHash.Item ("modified_stamp"))&" by "& emailField(pkgInfoHash.Item ("modifier"),pkgInfoHash.Item ("modifier_email"))%>
161 iaugusti 915
         </td>
916
      </tr>
917
 
918
      <%
919
        ' Added to Release
920
        If IsNull(pkgInfoHash.Item ("is_patch"))  AND  (Request("rtag_id") <> "") AND (pkgInfoHash.Item ("insertor") <> "") Then
921
      %>
922
      <tr>
6873 dpurdie 923
         <td>Added to Release:</td>
924
         <td>
6999 dpurdie 925
            <%=DisplayDateTimeSecs(pkgInfoHash.Item ("insert_stamp")) &" by "& emailField(pkgInfoHash.Item ("insertor"),pkgInfoHash.Item ("insertor_email"))%>
161 iaugusti 926
         </td>
927
      </tr>
928
      <%End If%>
929
 
139 ghuddy 930
      <%If (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) OR (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) Then%>
129 ghuddy 931
         <tr>
6873 dpurdie 932
            <td>Version Control System:</td>
933
            <td>
129 ghuddy 934
               <%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
5596 dpurdie 935
             <%If (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) AND pkgInfoHash.Item ("build_type") = "A" Then%>
936
             <span class='err_alert'>[Requires Manual Build]</span>
937
             <%End If%>
938
             <td>
129 ghuddy 939
         </tr>
1376 dpurdie 940
 
129 ghuddy 941
         <tr>
6873 dpurdie 942
            <td>Source Path:</td>
943
            <td>
1376 dpurdie 944
               <%If IsNull( rsQry("src_path") ) Then%>
945
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("src_path") ) )%>
129 ghuddy 946
               <%End If%>
947
            </td>
948
         </tr>
1376 dpurdie 949
 
129 ghuddy 950
         <tr>
6873 dpurdie 951
            <td>Label:</td>
952
            <td>
1376 dpurdie 953
               <%If IsNull( rsQry("pkg_label") ) Then%>
954
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pkg_label") ) )%>
129 ghuddy 955
               <%End If%>
956
            </td>
957
         </tr>
7379 dpurdie 958
      <%ElseIf vcsInfoCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG OR vcsInfoCollector.Item("vcs_tag") = enum_VCS_GIT_TAG Then%>
129 ghuddy 959
         <tr>
6873 dpurdie 960
            <td>Version Control System:</td>
961
            <td>
129 ghuddy 962
               <%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
963
            </td>
964
         </tr>
1376 dpurdie 965
 
129 ghuddy 966
         <tr>
6873 dpurdie 967
            <td>Source Path:</td>
968
            <td class="clip">
129 ghuddy 969
               <%If IsNull( rsQry("src_path") ) Then%>
970
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("src_path") ) )%>
971
               <%End If%>
972
            </td>
973
         </tr>
1376 dpurdie 974
 
183 brianf 975
         <tr>
6873 dpurdie 976
            <td>Tag:</td>
977
            <td class="clip">
191 brianf 978
               <%If IsNull( rsQry("pkg_label") ) Then%>
979
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pkg_label") ) )%>
980
               <%End If%>
183 brianf 981
            </td>
982
         </tr>
1376 dpurdie 983
 
129 ghuddy 984
      <%ElseIf vcsInfoCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG Then%>
985
         <tr>
6873 dpurdie 986
            <td>Version Control System:</td>
987
            <td>
129 ghuddy 988
               <%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
989
            </td>
990
         </tr>
991
      <%Else%>
992
         <tr>
6873 dpurdie 993
            <td>Version Control System:</td>
994
            <td>
129 ghuddy 995
               <span class='err_alert'>Required!</span>
996
            </td>
997
         </tr>
998
      <%End If%>
999
 
121 hknight 1000
      <tr>
6873 dpurdie 1001
         <td>
6827 dpurdie 1002
         <%BuildEditButtonRaw (pkgInfoHash.Item("can_edit_in_project") = "1") AND (objAccessControl.UserLogedIn) AND (canActionInProject()) AND pkgInfoHash.Item("base_view_id") <> "",_
1003
             "Base View:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
7349 dpurdie 1004
             "MM_openVixIFrame('_wform_change_group.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Set Package Base View')" %><%=Quick_Help("baseView")%>
6579 dpurdie 1005
         </td>
6873 dpurdie 1006
         <td class="clip">
6642 dpurdie 1007
         <% Dim CleanView : CleanView = pkgInfoHash.Item("view_name")
1008
            If CleanView = "" Then CleanView = "N/A"
7349 dpurdie 1009
            If pkgInfoHash.Item("release_view_name") <> ""  AND pkgInfoHash.Item("view_name") <> pkgInfoHash.Item("release_view_name") Then 
1010
                Response.Write "[" & pkgInfoHash.Item("release_view_name") & "]&nbsp;"
1011
            End If
6642 dpurdie 1012
            Response.Write CleanView
1013
          %>
121 hknight 1014
         </td>
1015
      </tr>
161 iaugusti 1016
 
121 hknight 1017
      <tr>
6873 dpurdie 1018
         <td>Following:<%=Quick_Help("following")%></td>
1019
         <td><%=GetFollowing()%></td>
5266 dpurdie 1020
      </tr>
1021
 
1022
      <tr>
6873 dpurdie 1023
         <td>Build Standard:</td>
121 hknight 1024
         <%
1025
         If pkgInfoHash.Item ("bs_id") <> "" Then
1026
            If pkgInfoHash.Item ("bs_id") = "1" Then
6873 dpurdie 1027
               Response.write "<td>JATS<br></td>"
119 ghuddy 1028
 
121 hknight 1029
            ElseIf pkgInfoHash.Item ("bs_id") = "2" Then
6873 dpurdie 1030
               Response.write "<td>ANT<br></td>"
119 ghuddy 1031
 
121 hknight 1032
            ElseIf pkgInfoHash.Item ("bs_id") = "3" Then
6873 dpurdie 1033
               Response.write "<td>NONE"
5596 dpurdie 1034
               If pkgInfoHash.Item("build_type") = "A" Then
1035
                    Response.write "<span class='err_alert'> [Must be specified for an automated build]</span>"
1036
               End If
1037
               Response.write "<br></td>"
121 hknight 1038
            End If
1039
         Else
129 ghuddy 1040
            If vcsInfoCollector.Item("vcs_tag") <> enum_VCS_UNCONTROLLED_TAG Then
6873 dpurdie 1041
               Response.write "<td><span class='err_alert'>Required!</span><br></td>"
129 ghuddy 1042
            Else
6873 dpurdie 1043
               Response.write "<td>Unspecified<br></td>"
129 ghuddy 1044
            End If
121 hknight 1045
         End If
1046
         %>
1047
      </tr>
129 ghuddy 1048
      <%If (NOT IsNull(pkgInfoHash.Item ("bs_id"))) AND (pkgInfoHash.Item ("bs_id") <> "3") Then%>
1049
         <tr>
6873 dpurdie 1050
            <td>Build Environment:</td>
129 ghuddy 1051
            <%
1052
            '--- Get Build Env Details
1053
            Set rsTemp = OraDatabase.DbCreateDynaset( SQL_Build_Env ( parPv_id ), cint(0))
1054
            %>
6873 dpurdie 1055
            <td>
129 ghuddy 1056
               <%If rsTemp.RecordCount = 0 Then%>
1057
                  <%If rsQry("is_build_env_required") = enumDB_NO Then%>
1058
                     Not Required
1059
                  <%Else%>
1060
                     <span class='err_alert'>Required!</span>
1061
                  <%End If%>
1062
               <%Else%>
1063
                  <%If (IsNull( rsQry("is_build_env_required") ) AND (rsQry("comments") <> "Rippled Build.")) Then%>
1064
                     <span class='err_alert'>Required!</span>
1065
                  <%ElseIf rsQry("is_build_env_required") = enumDB_NO Then%>
1066
                     Not Required.
1067
                  <%Else%>
1376 dpurdie 1068
                     <table width="40%"  border="0" cellspacing="0" cellpadding="1">
129 ghuddy 1069
                        <%
1070
                        currG1 = 0
1071
                        While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
4134 dpurdie 1072
                           If currG1 <> CInt(rsTemp("bm_id")) Then%>
129 ghuddy 1073
                              <tr>
6873 dpurdie 1074
                                 <td colspan="2" nowrap>
4134 dpurdie 1075
                                    <%=rsTemp("bm_name")%>&nbsp;<%=GetBuildType( rsTemp("bsa_id"),rsTemp("bsa_name") )%>
129 ghuddy 1076
                                 </td>
1077
                              </tr>
1078
                              <%currG1 = CInt(rsTemp("bm_id"))
1079
                           End If
1080
                           rsTemp.MoveNext
1081
                        WEnd
1082
                        %>
1083
                     </table>
1084
                  <%End If%>
121 hknight 1085
               <%End If%>
129 ghuddy 1086
            </td>
1087
         </tr>
1088
      <%End If%>
1089
 
2735 dpurdie 1090
      <%
1091
      ' Get JATS extraction commands
1092
      Dim  sjats_cmd_test, sjats_cmds_qh, sjats_extractable
1093
      ReDim sjats_cmds(6)
1094
      call Jats_Extract_Command(sjats_cmds, sjats_cmd_test, sjats_cmds_qh, sjats_extractable)
6497 dpurdie 1095
      Dim PrevVerTitle : PrevVerTitle = "Previous Version:"
2735 dpurdie 1096
 
6480 dpurdie 1097
      ' Previous Versions 
6827 dpurdie 1098
      If pkgInfoHash.Item ("pkg_count") = 1 AND pkgInfoHash.Item ("dlocked") = "N" Then
6497 dpurdie 1099
        Call DisplayVersionRow(NULL, PrevVerTitle, "PreviousVcsTag")
1100
        Call DisplayCreationCommands()
6480 dpurdie 1101
 
6497 dpurdie 1102
      ElseIf IsNull(pkgInfoHash.Item ("is_patch")) Then
1103
 
6480 dpurdie 1104
        If canActionControlInProject("ChangePreviousVersion") AND NOT pkgInfoHash.Item("is_sdkpkg") Then
5590 dpurdie 1105
            sonclick="MM_openVixIFrame('_wform_change_previous_version.asp?rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change Previous Version')"
6873 dpurdie 1106
            PrevVerTitle = "<span onClick=""" & sonclick & """ class='sublbox_txt'> " & PrevVerTitle & " <img src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'></span>"
6480 dpurdie 1107
        Else
6642 dpurdie 1108
            PrevVerTitle = PrevVerTitle & "<img src='images/i_edit_disable.gif' width='12' height='12' border='0' align='absmiddle'>"
6480 dpurdie 1109
        End If
1110
        Call DisplayVersionRow(pkgInfoHash.Item ("last_pv_id"), PrevVerTitle, "PreviousVcsTag") 
129 ghuddy 1111
 
6480 dpurdie 1112
        Dim iLastSignificantPVID
1113
        Dim iRippleBasePVID
1114
        Call getLastSignificantVersions(pkgInfoHash.Item("pv_id"), iRippleBasePVID, iLastSignificantPVID)
129 ghuddy 1115
 
6480 dpurdie 1116
        Call DisplayVersionRow(iRippleBasePVID, "Previous NonRipple Version:", "PreviousNonRippleVcsTag") 
1117
        Call DisplayVersionRow(iLastSignificantPVID, "Previous Significant Version:", "PreviousSignificantVcsTag") 
1118
      End If
161 iaugusti 1119
      %>
1120
      <tr>
6873 dpurdie 1121
         <td>JATS extraction commands:<%=Quick_Help ( "JatsExtraction_" & sjats_cmds_qh )%></td>
6121 dpurdie 1122
         <td style="padding: 0px;">
1123
         <table class="full_table">
1376 dpurdie 1124
         <% Dim ii : For ii = 0 to UBound(sjats_cmds) %>
6873 dpurdie 1125
             <tr><td class="clip"><%=NewLine_To_BR ( To_HTML(sjats_cmds(ii)) )%>&nbsp;</td>
1376 dpurdie 1126
         <% Next %>
161 iaugusti 1127
         </td>
1376 dpurdie 1128
         </tr>
1129
         </table>
161 iaugusti 1130
      </tr>
1131
      <tr>
6873 dpurdie 1132
         <td>JATS Test:<%=Quick_Help ( "JatsTest" )%></td>
1133
         <td class="clip"><%=NewLine_To_BR ( To_HTML(sjats_cmd_test) )%></td>
161 iaugusti 1134
      </tr>
129 ghuddy 1135
 
161 iaugusti 1136
      <%
1376 dpurdie 1137
      ' Beyond Compare difference command
1138
      Dim prevVcsTag
1139
      Dim curVcsTag
6497 dpurdie 1140
      Dim sBcCmd, sBcClass 
1376 dpurdie 1141
 
1142
      prevVcsTag = Get_Pkg_Vcs_Tag(iLastSignificantPVID)
1143
      curVcsTag = Get_Pkg_Vcs_Tag(parPv_id)
1144
      sBcCmd = ""
6497 dpurdie 1145
      sBcClass = ""
1376 dpurdie 1146
 
6497 dpurdie 1147
      If pkgInfoHash.Item ("pkg_count") = 1 Then
1148
            sBcCmd = "No prior version compare against"
1149
      ElseIf (IsNull(prevVcsTag) OR prevVcsTag = "" ) Then
1376 dpurdie 1150
            sBcCmd = "No prior label to compare against"
1151
      ElseIf (IsNull(curVcsTag) OR curVcsTag = "" ) Then
1152
            sBcCmd = "Current VCS tag not yet specified"
2735 dpurdie 1153
      ElseIf (not sjats_extractable) Then
1154
            sBcCmd = "Cannot be extracted with JATS"
1376 dpurdie 1155
      Else
1156
            sBcCmd = "jats vcsdiff -old=" & prevVcsTag & " -new=" & curVcsTag
6497 dpurdie 1157
            sBcClass = "clip"
1376 dpurdie 1158
      End If
1159
      sBcCmd = NewLine_To_BR( To_HTML (sBcCmd) )
6873 dpurdie 1160
      %>
1376 dpurdie 1161
 
161 iaugusti 1162
      <tr>
6873 dpurdie 1163
        <td>Beyond Compare command:<%=Quick_Help ( "BeyondCompare" )%></td>
1164
        <td class="<%=sBcClass%>"><%=sBcCmd%></td>
161 iaugusti 1165
      </tr>
1166
 
119 ghuddy 1167
 
121 hknight 1168
      <%If pkgInfoHash.Item("is_deployable") = "Y" Then
1169
         OraDatabase.Parameters.Add "PV_ID", pkgInfoHash.Item ("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
1170
         Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("DeploymentManagerReference.sql"), cint(0))
1171
         If rsTemp.RecordCount = 0 Then%>
1172
            <tr>
6873 dpurdie 1173
               <td>SBOM Information:</td>
121 hknight 1174
               <%If pkgInfoHash.Item("product_state") = 3 Then%>
6873 dpurdie 1175
                  <td class="err_alert"><b>Ready For Deployment!</b></td>
121 hknight 1176
               <%ElseIf pkgInfoHash.Item("product_state") = 2 Then%>
6873 dpurdie 1177
                  <td class="err_alert"><b>Ready For Testing!</b></td>
121 hknight 1178
               <%ElseIf pkgInfoHash.Item("product_state") = 1 Then%>
6873 dpurdie 1179
                  <td class="err_alert"><b>Ready For Integration!</b></td>
121 hknight 1180
               <%ElseIf pkgInfoHash.Item("product_state") = 5 Then%>
6873 dpurdie 1181
                  <td class="err_alert"><b>Ready For Integration and Deployment!</b></td>
121 hknight 1182
               <%ElseIf IsNull(pkgInfoHash.Item("product_state")) Then%>
6873 dpurdie 1183
                  <td class="err_alert"><b>Information Unavailable!</b></td>
121 hknight 1184
               <%End If%>
119 ghuddy 1185
 
1186
            </tr>
121 hknight 1187
         <%Else%>
119 ghuddy 1188
            <tr>
6873 dpurdie 1189
               <td>SBOM Added/Updated:</td>
1190
               <td><%=rsTemp("branch_name")%> - <%=rsTemp("bom_name")%><%=VBNewLine%><%=rsTemp("version")%></td>
119 ghuddy 1191
            </tr>
121 hknight 1192
         <%End If
1193
         rsTemp.Close()
1194
         Set rsTemp = Nothing
1195
         OraDatabase.Parameters.Remove "PV_ID"
1196
      End If
1197
      %>
1198
   </table>
161 iaugusti 1199
   </fieldset>
121 hknight 1200
   <br>
1376 dpurdie 1201
 
121 hknight 1202
<!-- PACKAGE METRICS -------------------------------------------------------------------------------------------------------------------->
5383 dpurdie 1203
   <%
1204
   Call GetPackageMetrics( parPv_id, rsPkgMetrics )
1205
   %>
6324 dpurdie 1206
   <fieldset class="fset" onclick="ToggleDisplay('divPkgMetrics','pkg_metrics_filler')">
5526 dpurdie 1207
   <%If IsNull(rsPkgMetrics("pkg_name")) Then %>
5383 dpurdie 1208
      <legend class="body_colb">
6827 dpurdie 1209
         <img src="images/i_metrics.gif" width="20" height="24" hspace="4" border="0" align='absmiddle' >Package Metrics not available
6324 dpurdie 1210
      </legend>
5526 dpurdie 1211
   <%Else%>
1212
      <legend class="body_colb">
6827 dpurdie 1213
         <img src="images/i_metrics.gif" width="20" height="24" hspace="4" border="0" align='absmiddle' >Package Metrics...
6324 dpurdie 1214
      </legend>
5383 dpurdie 1215
      <div name="pkg_metrics_filler" id="pkg_metrics_filler" style="display:block;" class="div_filler">
6827 dpurdie 1216
         <span class="txt_linked pointer">Show...</span>
5383 dpurdie 1217
      </div>
1218
      <div name="divPkgMetrics" id="divPkgMetrics" style="display:none;">
1219
         <a name="PACKAGE_METRICS"></a>
6873 dpurdie 1220
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='lhsGrey'>
5383 dpurdie 1221
            <tr>
6873 dpurdie 1222
               <td width='20%'>Autobuilt:</td>
1223
               <td><%If rsPkgMetrics("is_autobuildable") = "Y" Then%>Yes<%Else%>No<%End If%></td>
5383 dpurdie 1224
            </tr>
1225
            <tr>
6873 dpurdie 1226
               <td>Unit Tested:</td>
1227
               <td><%If rsPkgMetrics("unit_tested") = "Y" Then%>Yes<%Else%>No<%End If%></td>
5383 dpurdie 1228
            </tr>
1229
            <tr>
6873 dpurdie 1230
               <td>Autotested:</td>
1231
               <td><%If rsPkgMetrics("autotested") = "Y" Then%>Yes<%Else%>No<%End If%></td>
5383 dpurdie 1232
            </tr>
1233
            <%If NOT IsNull(rsPkgMetrics("code_lines")) Then%>
1234
            <tr>
6873 dpurdie 1235
               <td>Code Lines:</td>
1236
               <td><%=rsPkgMetrics("code_lines")%></td>
5383 dpurdie 1237
            </tr>
1238
            <%End If%>
1239
            <%If NOT IsNull(rsPkgMetrics("comment_lines")) Then%>
1240
            <tr>
6873 dpurdie 1241
               <td>Comment Lines:</td>
1242
               <td><%=rsPkgMetrics("comment_lines")%></td>
5383 dpurdie 1243
            </tr>
1244
            <%End If%>
1245
            <%If NOT IsNull(rsPkgMetrics("blank_lines")) Then%>
1246
            <tr>
6873 dpurdie 1247
               <td>Blank Lines:</td>
1248
               <td><%=rsPkgMetrics("blank_lines")%></td>
5383 dpurdie 1249
            </tr>
1250
            <%End If%>
1251
            <%If NOT IsNull(rsPkgMetrics("branches")) Then%>
1252
            <tr>
6873 dpurdie 1253
               <td>Number of Branches:</td>
1254
               <td><%=rsPkgMetrics("branches")%></td>
5383 dpurdie 1255
            </tr>
1256
            <%End If%>
1257
            <%If NOT IsNull(rsPkgMetrics("branch_list")) Then%>
1258
            <tr>
6873 dpurdie 1259
               <td>Branch List:</td>
1260
               <td><%=rsPkgMetrics("branch_list")%></td>
5383 dpurdie 1261
            </tr>
1262
            <%End If%>
1263
            <%If NOT IsNull(rsPkgMetrics("code_files")) Then%>
1264
            <tr>
6873 dpurdie 1265
               <td>Code Files:</td>
1266
               <td><%=rsPkgMetrics("code_files")%></td>
5383 dpurdie 1267
            </tr>
1268
            <%End If%>
1269
            <%If NOT IsNull(rsPkgMetrics("ignored_files")) Then%>
1270
            <tr>
6873 dpurdie 1271
               <td>Ignored Files:</td>
1272
               <td><%=rsPkgMetrics("ignored_files")%></td>
5383 dpurdie 1273
            </tr>
1274
            <%End If%>
1275
            <%If NOT IsNull(rsPkgMetrics("makefiles")) Then%>
1276
            <tr>
6873 dpurdie 1277
               <td>Makefiles:</td>
1278
               <td><%=rsPkgMetrics("makefiles")%></td>
5383 dpurdie 1279
            </tr>
1280
            <%End If%>
1281
            <%If NOT IsNull(rsPkgMetrics("total_files")) Then%>
1282
            <tr>
6873 dpurdie 1283
               <td>Total Files:</td>
1284
               <td><%=rsPkgMetrics("total_files")%></td>
5383 dpurdie 1285
            </tr>
1286
            <%End If%>
1287
            <%If NOT IsNull(rsPkgMetrics("directories")) Then%>
1288
            <tr>
6873 dpurdie 1289
               <td>Number of Directories:</td>
1290
               <td><%=rsPkgMetrics("directories")%></td>
5383 dpurdie 1291
            </tr>
1292
            <%End If%>
1293
            <%If NOT IsNull(rsPkgMetrics("directory_depth")) Then%>
1294
            <tr>
6873 dpurdie 1295
               <td>Directory Depth:</td>
1296
               <td><%=rsPkgMetrics("directory_depth")%></td>
5383 dpurdie 1297
            </tr>
1298
            <%End If%>
1299
            <%If NOT IsNull(rsPkgMetrics("created_stamp")) Then%>
1300
            <tr>
6873 dpurdie 1301
               <td>Metrics Collected:</td>
1302
               <td><%=rsPkgMetrics("created_stamp")%></td>
5383 dpurdie 1303
            </tr>
1304
            <%End If%>
5632 dpurdie 1305
            <%If NOT IsNull(rsPkgMetrics("build_time")) Then%>
1306
            <tr>
6873 dpurdie 1307
               <td>Build Time:</td>
1308
               <td><%=rsPkgMetrics("build_time")%> Seconds</td>
5632 dpurdie 1309
            </tr>
1310
            <%End If%>
1311
 
5383 dpurdie 1312
         </table>
1313
      </div>
5526 dpurdie 1314
   <%End If%>
5383 dpurdie 1315
   </fieldset>
1316
   <br>
1317
   <%
1318
   rsPkgMetrics.Close()
1319
   Set rsPkgMetrics = nothing
1320
   %>
121 hknight 1321
<!-- PRODUCTS AFFECTED BY CHANGE -------------------------------------------------------------------------------------------------------->
119 ghuddy 1322
 
1323
<!-- REASON FOR DEPRECATION/DEPENDANCY DEPRECATED ----------------------------------------------------------------------------------------------------------------->
121 hknight 1324
   <%If pkgInfoHash.Item("deprecated_state") = 6 Then %>
119 ghuddy 1325
 
121 hknight 1326
      <fieldset class="fset"><legend class="body_colb"><img src='images/s_notes.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Reason for deprecation</legend>
1327
         <a name="REASON_FOR_DEPRECATION"></a>
6873 dpurdie 1328
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
121 hknight 1329
            <tr>
6873 dpurdie 1330
               <td>
121 hknight 1331
                  <%
1332
                  Dim rsComment
1333
                  Set rsComment = OraDatabase.DbCreateDynaset("SELECT * FROM DEPRECATED_PACKAGES WHERE RTAG_ID ="& Request("rtag_id") &" AND PKG_ID = "& pkgInfoHash.Item ("pkg_id") &"", cint(0))
1334
                  If rsComment("comments") <> "" Then
1335
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
1336
                     Response.write "<tr>"
1337
                     Response.write "<td class='sublbox_txt'>"& NewLine_To_BR((  rsComment("comments") ) ) &"<br></td>"
1338
                     Response.write "</tr>"
1339
                     Response.write "</table>"
1340
                  'Else
1341
                  '   If FixedIssues ( parPv_id ) Then
1342
                  '      Response.write "<span class='sublbox_txt'>Not specified.</span><br>"
1343
                  '   Else
1344
                  '      Response.write "<span class='err_alert'>Required!</span><br>"
1345
                  '   End If
1346
                  End If
1347
                  rsComment.Close()
1348
                  Set rsComment = nothing
1349
                  %>
1350
               </td>
1351
            </tr>
1352
         </table>
1353
      </fieldset>
4230 dpurdie 1354
      <br>
121 hknight 1355
   <%End If%>
119 ghuddy 1356
<!-- SBOM PRIORITY/CRITICALITY  --------------------------------------------------------------------------------------------------------->
121 hknight 1357
   <%If NOT pageIsEditable AND pkgInfoHash.Item ("is_deployable") = "Y" Then%>
6324 dpurdie 1358
      <fieldset class="fset">
1359
      <legend class="body_colb"><img src='icons/i_prod_sbom_priority.gif' hspace='4' border='0' align='absmiddle'>SBOM Priority</legend>
1360
       <%If (pkgInfoHash.Item ("dlocked") = "Y") Then%>
1361
       <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
6827 dpurdie 1362
            <span onClick="MM_openVixIFrame('_wform_sbom_priority.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','SBOM Priority')" class="pointer txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 1363
       </div>
1364
       <%End If%>
121 hknight 1365
         <a name="SBOM_PRIORITY"></a>
6873 dpurdie 1366
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class=allGrey>
121 hknight 1367
            <tr>
6873 dpurdie 1368
               <td>
121 hknight 1369
                  <%If pkgInfoHash.Item ("sbom_priority") <> "" Then%>
1370
                     <table border='0' cellspacing='0' cellpadding='0'>
1371
                        <tr>
6873 dpurdie 1372
                           <td>
121 hknight 1373
                              <%
1374
                              If pkgInfoHash.Item ("sbom_priority") = "C" Then
1375
                                 Response.write "<b><font color='red'>Critical.</font></b>"
1376
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "I" Then
1377
                                 Response.write "<b>Important.</b>"
1378
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "R" Then
1379
                                 Response.write "Routine"
1380
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "L" Then
1381
                                 Response.write "Low"
1382
                              End If
1383
                              %>
1384
                           </td>
1385
                        </tr>
1386
                     </table>
1387
                  <%Else%>
1388
                     <span class='err_alert'>Required!</span><br>
1389
                  <%End If%>
1390
               </td>
1391
            </tr>
1392
         </table>
1393
      </fieldset>
4230 dpurdie 1394
      <br>
121 hknight 1395
   <%End If%>
119 ghuddy 1396
<!-- CHANGE TYPE  ----------------------------------------------------------------------------------------------------------------------->
4230 dpurdie 1397
   <fieldset class="fset">
1398
   <a name="CHANGE_TYPE"></a>
121 hknight 1399
   <%If pkgInfoHash.Item ("build_type") = "A" Then%>
4218 dpurdie 1400
         <legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Change Type</legend>
6324 dpurdie 1401
         <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
1402
              <%If (pkgInfoHash.Item ("dlocked") <> "A")  AND (pkgInfoHash.Item ("dlocked") <> "Y") AND criticalSectionIsEditable Then%>
6827 dpurdie 1403
                 <span onClick="MM_openVixIFrame('_wform_rename_version.asp?renameMode=2&rfile=<%=ScriptName%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Change Ripple Type')" class="txt_linked pointer">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 1404
              <%End If%>
1405
         </div>
6873 dpurdie 1406
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
121 hknight 1407
            <tr>
6873 dpurdie 1408
               <td>
121 hknight 1409
                  <%
1410
                  If pkgInfoHash.Item ("change_type") <> "" Then
1411
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
1412
                     Response.write "<tr>"
1413
                     If pkgInfoHash.Item ("change_type") = "M" Then
1414
                        Response.write "<td class='sublbox_txt'>Major Change.<br></td>"
1415
                     ElseIf pkgInfoHash.Item ("change_type") = "N" Then
1416
                        Response.write "<td class='sublbox_txt'>Minor Change.<br></td>"
1417
                     ElseIf pkgInfoHash.Item ("change_type") = "P" Then
1418
                        Response.write "<td class='sublbox_txt'>Patch Change.<br></td>"
4230 dpurdie 1419
                     ElseIf pkgInfoHash.Item ("change_type") = "F" Then
1420
                        Response.write "<td class='sublbox_txt'>Version Specified by User.<br></td>"
1421
                     Else
1422
                        Response.write "<td><span class='err_alert'>Unknown Change Type: " & pkgInfoHash.Item ("change_type") & "</span></td>"
121 hknight 1423
                     End If
1424
                     Response.write "</tr>"
1425
                     Response.write "</table>"
1426
                  Else
1427
                     Response.write "<span class='err_alert'>Required!</span><br>"
1428
                  End If
1429
                  %>
1430
               </td>
1431
            </tr>
1432
         </table>
4230 dpurdie 1433
   <%ElseIf pkgInfoHash.Item ("build_type") = "M" Then%>
1434
         <legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Build Type</legend>
6873 dpurdie 1435
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
4230 dpurdie 1436
            <tr>
6873 dpurdie 1437
               <td>Manually Built Package.
4230 dpurdie 1438
                  <%If pkgInfoHash.Item ("change_type") <> "F" Then%>
1439
                        <span class='err_alert'>Unexpected Change Type: <%=pkgInfoHash.Item ("change_type")%></span>
1440
                  <%End If%>
1441
               </td>
1442
            </tr>
1443
         </table>
5898 dpurdie 1444
   <%ElseIf pkgInfoHash.Item ("build_type") = "U" Then%>
1445
         <legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Build Type</legend>
6873 dpurdie 1446
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
5898 dpurdie 1447
            <tr>
6873 dpurdie 1448
               <td>
6881 dpurdie 1449
               <span class='err_alert'>UnbuildablePackage.</span> This version has been created outside of the build system, possibly via Deployment Manager or as a part of the unification of the Pulse Build System.
5898 dpurdie 1450
               </td>
1451
            </tr>
1452
         </table>
4230 dpurdie 1453
   <%ElseIf pkgInfoHash.Item ("build_type") = "Y" Then%>
1454
         <legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Build Type</legend>
6873 dpurdie 1455
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
4230 dpurdie 1456
            <tr>
6873 dpurdie 1457
               <td>Ripple Built</td>
4230 dpurdie 1458
            </tr>
1459
         </table>
1460
   <%Else%>
1461
         <legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Build Type</legend>
6873 dpurdie 1462
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
4230 dpurdie 1463
            <tr>
6873 dpurdie 1464
               <td><span class='err_alert'>Unknown Build Type (<%=pkgInfoHash.Item ("build_type")%>) Change Type (<%=pkgInfoHash.Item ("change_type")%>)</span></td>
4230 dpurdie 1465
            </tr>
1466
         </table>
121 hknight 1467
   <%End If%>
4230 dpurdie 1468
   </fieldset>
1469
   <br>
131 ghuddy 1470
 
119 ghuddy 1471
<!-- RIPPLE PROPERTIES  ----------------------------------------------------------------------------------------------------------------------->
131 ghuddy 1472
   <%If IsNull(pkgInfoHash.Item ("is_patch")) Then%>
6324 dpurdie 1473
      <fieldset class="fset">
1474
         <legend class="body_colb"><img src='icons/i_pkg_ripple_type.gif' hspace='4' border='0' align='absmiddle' height='25' width='25'>Ripple Properties</legend>
1475
         <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
6538 dpurdie 1476
            <%Dim canEditRippleProperties : canEditRippleProperties = FALSE
6700 dpurdie 1477
 
1478
                canEditRippleProperties = (pageIsEditable AND canShowControlInProject( "RipplePackage" )) OR _ 
6538 dpurdie 1479
                                          canShowControlInProject( "AdvRipPackageVersions" ) OR _
6700 dpurdie 1480
                                          canShowControlInProject( "PegPackageVersions" ) OR _
6538 dpurdie 1481
                                          criticalSectionIsEditable
1482
 
1483
            If canEditRippleProperties Then%>
6827 dpurdie 1484
                <span onClick="MM_openVixIFrame('_wform_ripple_properties.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Edit Ripple Type')" class="txt_linked pointer">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 1485
            <%End If%>
1486
         </div>
121 hknight 1487
         <a name="RIPPLE_PROPERTIES"></a>
6873 dpurdie 1488
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='lhsGrey'>
131 ghuddy 1489
            <%If Request("rtag_id") <> "" Then
5098 dpurdie 1490
               If pkgInfoHash.Item ("is_pegged")  Then %>
131 ghuddy 1491
                  <tr>
6873 dpurdie 1492
                     <td>Is Pegged <%=Quick_Help ( "pegged_version" )%></td>
1493
                     <td>Yes</td>
131 ghuddy 1494
                  </tr>
1495
               <%End If%>
5098 dpurdie 1496
            <%End If%>
131 ghuddy 1497
 
5098 dpurdie 1498
            <%If NOT pkgInfoHash.Item ("is_pegged") Then%>
6440 dpurdie 1499
              <%If Request("rtag_id") <> "" Then%>
131 ghuddy 1500
               <tr>
6873 dpurdie 1501
                  <td>Build Inclusion<%=Quick_Help ( "ripple_build" )%>
131 ghuddy 1502
                  </td>
6440 dpurdie 1503
                     <%Dim rsQryRipple
1504
                     Set rsQryRipple = OraDatabase.DbCreateDynaset( "SELECT p.PKG_NAME, pv.PV_OVERVIEW, pv.PKG_ID,nvl(dnr.root_pv_id, -1) as root_pv_id, dnr.* FROM DO_NOT_RIPPLE dnr, PACKAGE_VERSIONS pv, PACKAGES p WHERE dnr.RTAG_ID ="& Request("rtag_id") &"AND dnr.PV_ID ="&Request("pv_id") &" AND  pv.pv_id(+) = dnr.ROOT_PV_ID AND p.PKG_ID(+) = pv.PKG_ID", cint(0))
6370 dpurdie 1505
                        If rsQryRipple.RecordCount <> 0  Then
6440 dpurdie 1506
                            Dim CauseText
1507
                            Dim rowData
1508
                            If (IsNull(rsQryRipple("root_file")) AND IsNull(rsQryRipple("root_cause"))) Then
1509
                                If rsQryRipple("root_pv_id") < 0 Then
1510
                                    CauseText = "Directly Excluded"
6370 dpurdie 1511
                                Else
1512
                                    CauseText = "Indirectly excluded by <a class=""txt_linked"" title='"&rsQryRipple("PV_OVERVIEW")&"' href=fixed_issues.asp?pv_id="& rsQryRipple("root_pv_id") & "&rtag_id="&rsQryRipple("rtag_id") & ">" & rsQryRipple("pkg_name") & "</a>"
1513
                                End If
1514
 
1515
                            ElseIf IsNull(rsQryRipple("root_file")) Then
1516
                               CauseText = rsQryRipple("root_cause")
1517
 
1518
                            Else
1519
                                CauseText = "<a class=""txt_linked"" title=""" & rsQryRipple("root_file") &_
1520
                                          " Log file may have expired."" " &_
7260 dpurdie 1521
                                          "href=""" & ABTLOG_URL & "/" & rsQryRipple("root_file") & """>" &_
6370 dpurdie 1522
                                          "Build Failure Log File</a>"
1523
                            End If
1524
                            %>
6873 dpurdie 1525
                            <td>No.&nbsp;<%=CauseText%></td>
6440 dpurdie 1526
                         <%Else%>
6873 dpurdie 1527
                            <td>Yes</td>
6440 dpurdie 1528
                         <%End If%>
131 ghuddy 1529
                     <%rsQryRipple.Close()
6440 dpurdie 1530
                     Set rsQryRipple = nothing%>
131 ghuddy 1531
               </tr>
6440 dpurdie 1532
               <%End If%>
6642 dpurdie 1533
               <%If pkgInfoHash.Item ("advisory_ripple") Then%>
6873 dpurdie 1534
                <tr>
1535
                      <td>Advisory Ripple <%=Quick_Help ( "advisory_ripple" )%></td>
1536
                      <td>Enabled</td>
6642 dpurdie 1537
                </tr>
1538
               <%End If%>
131 ghuddy 1539
               <tr>
6873 dpurdie 1540
                  <td>Ripple Type <%=Quick_Help ( "ripple_type" )%></td>
1541
                  <td>
131 ghuddy 1542
                        <%
1543
                        Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
1544
                        Response.write "<tr>"
1545
                        Response.write "<td class='sublbox_txt'>"
5648 dpurdie 1546
                        Dim selectedRippleType, selectedRippleName, selectedRippleState
131 ghuddy 1547
                        selectedRippleType = pkgInfoHash.Item ("ripple_field")
5648 dpurdie 1548
                        selectedRippleName = rippleFieldName(selectedRippleType, selectedRippleState)
1549
                        If NOT selectedRippleState Then
131 ghuddy 1550
                           Response.write "<span class='err_alert'>Required!</span>"
1551
                        Else
5648 dpurdie 1552
                            Response.write( selectedRippleName )
131 ghuddy 1553
                        End If
1554
                        If ( selectedRippleType = "L" ) Then
1555
                        Dim qry
1556
                        Set qry = OraDatabase.DbCreateDynaset( "SELECT major_limit, minor_limit, patch_limit, build_number_limit from package_versions where pv_id="& Request("pv_id"), cint(0))
1557
                        Response.write " "
1558
                        If isNull(qry("major_limit")) Then
1559
                           Response.write("0")
1560
                        Else
1561
                           Response.write( qry.Fields( "major_limit" ).Value )
1562
                        End If
1563
                        Response.write ", "
1564
                        If isNull(qry("minor_limit")) Then
1565
                           Response.write("0")
1566
                        Else
1567
                           Response.write( qry.Fields( "minor_limit" ).Value )
1568
                        End If
1569
                        Response.write ", "
1570
                        If isNull(qry("patch_limit")) Then
1571
                           Response.write("0")
1572
                        Else
1573
                           Response.write( qry.Fields( "patch_limit" ).Value )
1574
                        End If
1575
                        Response.write ", "
1576
                        If isNull(qry("build_number_limit")) Then
1577
                           Response.write("0")
1578
                        Else
1579
                           Response.write( qry.Fields( "build_number_limit" ).Value )
1580
                        End If
1581
                        qry.Close()
1582
                        Set qry = nothing
1583
                        End If
5648 dpurdie 1584
                        Response.Write "</td>"
131 ghuddy 1585
                        Response.write "</tr>"
1586
                        Response.write "</table>"
1587
                        %>
1588
                  </td>
1589
               </tr>
1590
            <%End If%>
6480 dpurdie 1591
            <%If Request("rtag_id") <> ""  AND pkgInfoHash.Item("dlocked") = "Y" Then
6440 dpurdie 1592
              Dim sClickStop, sStopText, dRippleStop, sButtonText, sPersistText
1593
              dRippleStop = pkgInfoHash.Item("ripple_stop")
1594
              If dRippleStop = "" OR IsNull(dRippleStop) Then
1595
                sClickStop="vixConfirm('Marked this package so as to prevent it from being built<br>when its dependencies change, until it is manually resumed.<p>Stop Ripple Builds',{title:'Stop Ripple', button:'Stop', url: '_s_ripple_stop.asp?mode=s&rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &"'});"
1596
                sStopText = "Normal"
1597
                sButtonText = "Change"
1598
              ElseIf dRippleStop = "s" Then 
1599
                sClickStop="vixConfirm('This package has been marked to prevented ripple builds.<p>Remove this marker',{title:'Remove Ripple', button:'Remove', url: '_s_ripple_stop.asp?mode=r&rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &"'});"
1600
                sStopText = "Ripples will stop at this package"
1601
                sButtonText = "Remove"
1602
              ElseIf dRippleStop = "w" Then 
1603
                sClickStop="vixConfirm('This package has been marked to prevented ripple builds<br>and a ripple is required.<p>Allow ripple to continue.',{title:'Continue Ripple', button:'Allow Ripple', url: '_s_ripple_stop.asp?mode=g&rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &"'});"
1604
                sStopText = "Ripple required and awaiting manual intervention"
1605
                sButtonText = "Resume"
1606
              ElseIf dRippleStop = "g" Then 
1607
                sStopText = "Ripple resumed. Awaiting build"
1608
              Else
1609
                sStopText = "Ripple Stop: Unknown state:" & dRippleStop 
1610
              End If
1611
 
1612
              sPersistText = ""
6441 dpurdie 1613
              If pkgInfoHash.Exists("persist_ripple_stop") Then
1614
                  If NOT IsNull(pkgInfoHash.Item("persist_ripple_stop")) Then
1615
                      sPersistText = "&nbsp;[Persistent Ripple Stop Enabled]"
1616
                  End If
6440 dpurdie 1617
              End If
1618
 
1619
             %>
1620
             <tr>
6873 dpurdie 1621
                  <td>Ripple Stop <%=Quick_Help ( "ripple_stop" )%></td>
1622
                  <td><%=sStopText%><%=sPersistText%>
6440 dpurdie 1623
                  <%If canActionInProject() AND sClickStop <> "" Then%>
6827 dpurdie 1624
                    <span onClick="<%=sClickStop%>" class="txt_linked pointer"><%=sButtonText%><img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6873 dpurdie 1625
                  <%End If%>
1626
                  </td>
6440 dpurdie 1627
            </tr>
1628
            <%End If%>
121 hknight 1629
         </table>
1630
      </fieldset>
1631
      <br>
1632
   <%End If%>
131 ghuddy 1633
 
119 ghuddy 1634
<!-- REASON FOR RELEASE ----------------------------------------------------------------------------------------------------------------->
6324 dpurdie 1635
   <fieldset class="fset">
1636
      <legend class="body_colb"><img src='images/s_notes.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Reason for this version</legend>
6610 dpurdie 1637
      <div style="display: block;float: right;margin-top: -25px;background-color: #FFF;padding: 0 5px;">
1638
          <span class="clipElement txt_linked" title="Copy to Clipboard" data-target="releaseReason">Copy<%=enum_imgClipBoard12%></span>
6324 dpurdie 1639
       <%If pageIsEditable Then%>
6873 dpurdie 1640
             <span title='Insert dependency changes as the comment' onClick="return vixConfirm('Current comments would be deleted.<br>Do you wish to continue?',{url :'_update_versions.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>' })" class="txt_linked pointer">Update Dependencies<img src="images/i_new.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6827 dpurdie 1641
             <span onClick="MM_openVixIFrame('_wform_reason_for_version.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Reason For Release')" class="txt_linked pointer">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 1642
       <%End If%>
1643
      </div>
121 hknight 1644
      <a name="REASON_FOR_THIS_RELEASE"></a>
6873 dpurdie 1645
      <table width="100%" border="0" cellspacing="1" cellpadding="2" >
121 hknight 1646
         <tr>
6873 dpurdie 1647
            <td>
121 hknight 1648
            <%If pkgInfoHash.Item ("comments") <> "" Then%>
6873 dpurdie 1649
               <table width="100%" border='0' cellspacing='0' cellpadding='0' class='allGrey'>
121 hknight 1650
                  <tr>
6873 dpurdie 1651
                     <td id=releaseReason> <%Response.Write( NewLine_To_BR(pkgInfoHash.Item("comments")) )%><br></td>
121 hknight 1652
                  </tr>
1653
               </table>
1654
            <%ElseIf FixedIssues ( parPv_id ) Then%>
6873 dpurdie 1655
               <span>Not specified.</span><br>
121 hknight 1656
            <%Else%>
1657
               <span class='err_alert'>Required!</span><br>
1658
            <%End If%>
1659
            </td>
1660
         </tr>
1661
      </table>
1662
   </fieldset>
4230 dpurdie 1663
   <br>
119 ghuddy 1664
<!-- REASON FOR NON_RIPPLE RELEASE ----------------------------------------------------------------------------------------------------------------->
121 hknight 1665
   <%If pkgInfoHash.Item ("comments") = "Rippled Build." Then%>
119 ghuddy 1666
 
6324 dpurdie 1667
      <fieldset class="fset">
1668
         <legend class="body_colb"><img src='images/s_notes.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Reason for last non-ripple build</legend>
6873 dpurdie 1669
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class='allGrey'>
121 hknight 1670
            <tr>
6873 dpurdie 1671
               <td>
121 hknight 1672
                  <%
1673
                  'Dim rsQry
1674
                  Call LastPvId(pkgInfoHash.Item ("pv_id"))
119 ghuddy 1675
 
121 hknight 1676
                  While rsQry("comments") = "Rippled Build."
1677
                     Call LastPvId(rsQry("last_pv_id"))
1678
                  Wend
119 ghuddy 1679
 
121 hknight 1680
                  If pkgInfoHash.Item ("comments") <> "" Then
1681
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
1682
                     Response.write "<tr>"
1683
                     Response.write "<td class='sublbox_txt'><b>Package Version:</b> <b>"& NewLine_To_BR(( rsQry ("pkg_version") ) ) &"</b><br></td>"
1684
                     Response.write "</tr>"
1685
                     Response.write "<tr>"
1686
                     Response.write "<td class='sublbox_txt'>"& NewLine_To_BR(( rsQry ("comments") ) ) &"<br></td>"
1687
                     Response.write "</tr>"
119 ghuddy 1688
 
121 hknight 1689
                     Response.write "</table>"%>
119 ghuddy 1690
 
121 hknight 1691
                     <table width="100%" border="0" cellspacing="1" cellpadding="2">
1692
                        <tr>
1693
                           <td valign="top" class="sublbox_txt"><b>Fixed Issues For Last Non-Ripple Build</b></td>
1694
                           <td align="right" valign="top">
1695
                              <%If pageIsEditable Then%>
6827 dpurdie 1696
                                 <span onClick="MM_openVixIFrame('_wform_import_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&skip_open=true','Import Fixed Issues')" class="txt_linked pointer">Import Fixed Issues from ClearQuest<img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
121 hknight 1697
                              <%End If%>
1698
                           </td>
1699
                        </tr>
1700
                     </table>
1701
                     <%Call Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_FIXED )
1702
                     If (retVal > 0) Then
1703
                        retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1704
                        If retVal = 0 Then%>
1705
                           <table width="100%" border="0" cellspacing="1" cellpadding="3">
1706
                              <tr>
6873 dpurdie 1707
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field" align="center">Fixed</td>
1708
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Issue&nbsp;Id&nbsp;</td>
1709
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Issue&nbsp;DB&nbsp;</td>
161 iaugusti 1710
                                 <td bgcolor=#e4e9ec nowrap width="100%" class="form_field">Summary</td>
6873 dpurdie 1711
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Issue&nbsp;Type&nbsp;</td>
1712
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Priority</td>
1713
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Status</td>
1714
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Note</td>
1715
                                 <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">&nbsp;</td>
121 hknight 1716
                              </tr>
1717
                              <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1718
                                 <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1719
                                    <tr>
161 iaugusti 1720
                                       <td align="center" nowrap bgcolor=#e4e9ec><img src="images/i_tick_black.gif" width="7" height="7" vspace="2"></td>
6873 dpurdie 1721
                                       <td nowrap class="form_item"><span onClick="MM_openVixIFrame('_wform_issues_details.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Details')" class="txt_linked pointer"><%=rsCQ("iss_num")%></span></td>
1722
                                       <td class="form_item">
4553 dpurdie 1723
                                            <%If Cint(rsCQ("iss_db")) = enumCLEARQUEST_DEVI_ID Then%>
3975 dpurdie 1724
                                                DEVI
1725
                                            <%Else%>
1726
                                                UNKNOWN
1727
                                            <%End If%></td>
6873 dpurdie 1728
                                       <td class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1729
                                       <td nowrap  class="form_item"><%=rsCQ("issue_type")%></td>
1730
                                       <td nowrap  class="form_item"><%=rsCQ("priority")%></td>
1731
                                       <td nowrap  class="form_item"><%=rsCQ("Status")%></td>
121 hknight 1732
                                       <%If sectionIsEditable Then%>
1733
                                           <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 1734
                                             <td align="center"  class="form_item"><span class='pointer' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')"><img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></span></td>
121 hknight 1735
                                          <%Else%>
6873 dpurdie 1736
                                             <td align="center"  class="form_item"><span class='pointer' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')"><img src="images/i_note_off.gif" width="11" height="12" border="0" title="Add Note"></span></td>
121 hknight 1737
                                          <%End If%>
1738
                                       <%Else%>
1739
                                          <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 1740
                                             <td align="center"  class="form_item"><img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></td>
121 hknight 1741
                                          <%Else%>
6873 dpurdie 1742
                                             <td align="center"  class="form_item"><img src="images/i_note_off.gif" width="11" height="12" border="0"></td>
121 hknight 1743
                                          <%End If%>
1744
                                       <%End If%>
1745
                                       <%If NOT pageIsEditable Then%>
6873 dpurdie 1746
                                          <td align="center"  class="form_item"><img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0"></td>
121 hknight 1747
                                       <%Else%>
6873 dpurdie 1748
                                          <td align="center"  class="form_item"><span class=pointer data-href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this issue from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list"></span></td>
121 hknight 1749
                                       <%End If%>
1750
                                    </tr>
1751
                                    <%rsCQ.MoveNext
1752
                                 WEnd
1753
                                 rsCQ.Close()%>
1754
                              <%Else%>
1755
                                 <tr>
161 iaugusti 1756
                                    <td bgcolor=#e4e9ec nowrap>&nbsp;</td>
6873 dpurdie 1757
                                    <td nowrap></td>
1758
                                    <td class="form_item"></td>
1759
                                    <td class="form_item"></td>
1760
                                    <td class="form_item"></td>
1761
                                    <td class="form_item"></td>
1762
                                    <td class="form_item"></td>
1763
                                    <td class="form_item"></td>
1764
                                    <td align="center"  class="form_item"></td>
121 hknight 1765
                                 </tr>
1766
                              <%End If%>
1767
                           </table>
1768
                        <%End If%>
1769
                        <%If retVal <> 0 Then Response.write enumMSSQL_ERROR
1770
                     End If
1771
                  Else
1772
                     If FixedIssues ( parPv_id ) Then
1773
                        Response.write "<span class='sublbox_txt'>Not specified.</span><br>"
1774
                     Else
1775
                        Response.write "<span class='err_alert'>Required!</span><br>"
1776
                     End If
1777
                  End If
119 ghuddy 1778
 
121 hknight 1779
                  rsQry.Close()
1780
                  Set rsQry = nothing
1781
                  %>
1782
               </td>
1783
            </tr>
1784
         </table>
1785
      </fieldset>
4230 dpurdie 1786
      <br>
121 hknight 1787
   <%End If%>
1788
<!-- FIXED ISSUES ----------------------------------------------------------------------------------------------------------------------->
123 ghuddy 1789
   <fieldset class="fset">
1790
      <legend class="body_colb">
6827 dpurdie 1791
         <img src="images/s_bugs.gif" width="21" height="18" border="0" hspace="4" align='absmiddle'>
123 ghuddy 1792
         Issues
1793
      </legend>
5861 dpurdie 1794
      <a name="ISSUES"></a>
121 hknight 1795
      <p class="body_colb"><a name="ISSUES"></a></p>
1796
      <table width="100%" border="0" cellpadding="2" cellspacing="1">
1797
         <tr>
4254 dpurdie 1798
            <!-- Jira Issues -->
121 hknight 1799
            <td valign="top" class="body_colb">JIRA Issues</td>
1800
            <td align="right" valign="top">
6827 dpurdie 1801
            <%BuildEditButtonRaw  pageIsEditable, "Import JIRA issues", "Edit", TRUE, "src='images/i_download.gif' width='12' height='12' hspace='2' border='0' align='absmiddle'", "MM_openVixIFrame('_wform_import_jira_issues.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id&"&skip_open=true','Import Issues')" %>
121 hknight 1802
            </td>
119 ghuddy 1803
 
4254 dpurdie 1804
            <%
1805
            Dim issueInfo, el, key
1806
            Set issueInfo = CreateObject( "Scripting.Dictionary" )
1807
            Call getJiraIssueDetails(parPv_id,issueInfo, 0)
1808
            If issueInfo.Count > 0 Then
1809
            %>
121 hknight 1810
 
6873 dpurdie 1811
            <table width="100%" border="0" cellspacing="1" cellpadding="3" class=stdGrey>
1812
                <thead>
1813
                   <th width="1%" align="center">Fixed</th>
1814
                   <th width="1%" >IssueId</th>
1815
                   <th width="1%" >IssueDB</th>
1816
                   <th width="100%" >Summary</th>
1817
                   <th width="1%" >IssueType</th>
1818
                   <th width="1%" >Priority</th>
1819
                   <th width="1%" >Status</th>
1820
                   <th width="1%" >Note</th>
1821
                   <th width="1%" ></th>
1822
                </thead>
4254 dpurdie 1823
                <%
1824
                For Each key In issueInfo
1825
                Set el = issueInfo.item(key)
1826
                %>
1827
                <tr>
1828
                  <%If el.Exists("resolution") Then %>
6873 dpurdie 1829
                     <td align="center" nowrap>
4254 dpurdie 1830
                        <img src="images/i_tick_black.gif" width="7" height="7" vspace="2">
1831
                     </td>
1832
                  <%Else%>
6873 dpurdie 1833
                     <td align="center" nowrap></td>
4254 dpurdie 1834
                  <%End If%>
6873 dpurdie 1835
                  <td nowrap class="form_item">
4254 dpurdie 1836
                     <a href="<%=el.item("url")%>" target="_blank" class="txt_linked"><%=key%></a>
1837
                  </td>
6873 dpurdie 1838
                  <td><%=el.item("type")%></td>
1839
                  <td><%=NewLine_To_BR ( To_HTML ( el.item("summary") ) )%></td>
1840
                  <td nowrap><%=el.item("issuetype")%></td>
1841
                  <td nowrap><%=el.item("priority")%></td>
1842
                  <td nowrap><%=el.item("status")%></td>
1843
                  <td nowrap></td>
4254 dpurdie 1844
                  <%If NOT pageIsEditable Then%>
6873 dpurdie 1845
                     <td align="center">
4254 dpurdie 1846
                        <img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0">
1847
                     </td>
1848
                  <%Else%>
6873 dpurdie 1849
                     <td align="center">
1850
                        <span class=pointer data-href="_remove_jira_issue.asp?iss_link=<%=el.item("key")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this issue from Release Manager');">
4254 dpurdie 1851
                           <img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list">
6873 dpurdie 1852
                        </span>
4254 dpurdie 1853
                     </td>
1854
                  <%End If%>
1855
               </tr>
1856
               <%
1857
               Next
1858
               Set issueInfo = nothing
1859
               %>
1860
            </table>
121 hknight 1861
            <%End If%>
119 ghuddy 1862
 
4254 dpurdie 1863
            <!-- Fixed ClearCase Issues -->
121 hknight 1864
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
1865
               <tr>
1866
                  <td valign="top" class="body_colb">Fixed Issues</td>
1867
                  <td align="right" valign="top">
6827 dpurdie 1868
                    <%BuildEditButtonRaw  pageIsEditable, "Import Fixed Issues from ClearQuest", "Edit", TRUE, "src='images/i_download.gif' width='12' height='12' hspace='2' border='0' align='absmiddle'", "MM_openVixIFrame('_wform_import_issues.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id&"&skip_open=true','Import Fixed Issues')" %>
121 hknight 1869
                  </td>
1870
               </tr>
1871
            </table>
119 ghuddy 1872
 
121 hknight 1873
            <%retVal = Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_FIXED )
1874
            If (retVal > 0) Then
1875
               retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1876
               If retVal = 0 Then%>
6873 dpurdie 1877
                  <table width="100%" border="0" cellspacing="1" cellpadding="3" class=stdGrey>
1878
                     <thead>
1879
                        <th width="1%" align="center">Fixed</th>
1880
                        <th width="1%" >IssueId</th>
1881
                        <th width="1%" >IssueDB</th>
1882
                        <th width="100%">Summary</th>
1883
                        <th width="1%" >IssueType</th>
1884
                        <th width="1%" >Priority</th>
1885
                        <th width="1%" >Status</th>
1886
                        <th width="1%" >Note</th>
1887
                        <th width="1%" ></th>
1888
                     </thead>
121 hknight 1889
                     <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1890
                        <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1891
                           <tr>
161 iaugusti 1892
                              <td align="center" nowrap bgcolor=#e4e9ec><img src="images/i_tick_black.gif" width="7" height="7" vspace="2"></td>
6873 dpurdie 1893
                              <td nowrap class="form_item">
6827 dpurdie 1894
                                <%BuildEditButtonRaw  TRUE, rsCQ("iss_num") , "Edit", TRUE, "", "MM_openVixIFrame('_wform_issues_details.asp?iss_db="&rsCQ("iss_db")&"&iss_id="&rsCQ("iss_id")&"','Issue Details')" %>
123 ghuddy 1895
                              </td>
6873 dpurdie 1896
                              <td class="form_item">
4553 dpurdie 1897
                                 <%If CInt(rsCQ("iss_db")) = enumCLEARQUEST_DEVI_ID Then%>
123 ghuddy 1898
                                    DEVI
1899
                                 <%Else%>
3975 dpurdie 1900
                                    UNKNOWN
123 ghuddy 1901
                                 <%End If%>
1902
                              </td>
6873 dpurdie 1903
                              <td class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1904
                              <td nowrap  class="form_item"><%=rsCQ("issue_type")%></td>
1905
                              <td nowrap  class="form_item"><%=rsCQ("priority")%></td>
1906
                              <td nowrap  class="form_item"><%=rsCQ("Status")%></td>
6827 dpurdie 1907
                              <%If sectionIsEditable AND pageIsEditable Then
1908
                                    Dim noteImage
1909
                                    If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then
1910
                                        noteImage = "images/i_note_on.gif"
1911
                                    Else
1912
                                        noteImage = "images/i_note_off.gif"
1913
                                    End If
1914
                                End If
1915
                                 %>
1916
 
1917
 
121 hknight 1918
                              <%If sectionIsEditable AND pageIsEditable Then%>
1919
                                 <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 1920
                                    <td align="center"  class="form_item">
1921
                                       <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')">
123 ghuddy 1922
                                          <img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
6873 dpurdie 1923
                                       </span>
123 ghuddy 1924
                                    </td>
121 hknight 1925
                                 <%Else%>
6873 dpurdie 1926
                                    <td align="center"  class="form_item">
1927
                                       <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')">
123 ghuddy 1928
                                          <img src="images/i_note_off.gif" width="11" height="12" border="0" title="Add Note">
6873 dpurdie 1929
                                       </span>
123 ghuddy 1930
                                    </td>
121 hknight 1931
                                 <%End If%>
1932
                              <%Else%>
1933
                                 <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 1934
                                    <td align="center"  class="form_item">
123 ghuddy 1935
                                       <img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
1936
                                    </td>
121 hknight 1937
                                 <%Else%>
6873 dpurdie 1938
                                    <td align="center"  class="form_item">
123 ghuddy 1939
                                       <img src="images/i_note_off.gif" width="11" height="12" border="0">
1940
                                    </td>
121 hknight 1941
                                 <%End If%>
1942
                              <%End If%>
1943
                              <%If NOT pageIsEditable Then%>
6873 dpurdie 1944
                                 <td align="center"  class="form_item">
123 ghuddy 1945
                                    <img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0">
1946
                                 </td>
121 hknight 1947
                              <%Else%>
6873 dpurdie 1948
                                 <td align="center"  class="form_item">
1949
                                    <span class=pointer data-href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this issue from Release Manager');">
123 ghuddy 1950
                                       <img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list">
6873 dpurdie 1951
                                    </span>
123 ghuddy 1952
                                 </td>
121 hknight 1953
                              <%End If%>
1954
                           </tr>
1955
                           <%rsCQ.MoveNext
1956
                        WEnd
1957
                        rsCQ.Close()%>
1958
                     <%Else%>
1959
                        <tr>
6873 dpurdie 1960
                           <td>&nbsp;</td>
1961
                           <td></td>
1962
                           <td></td>
1963
                           <td></td>
1964
                           <td></td>
1965
                           <td></td>
1966
                           <td></td>
1967
                           <td></td>
1968
                           <td></td>
121 hknight 1969
                        </tr>
1970
                     <%End If%>
119 ghuddy 1971
 
121 hknight 1972
                  </table>
1973
               <%End If%>
1974
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
1975
            <%End If%>
119 ghuddy 1976
 
4254 dpurdie 1977
            <!-- Outstanding ClearCase Issues -->
121 hknight 1978
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
1979
               <tr>
1980
                  <td valign="top" class="body_colb">Outstanding Issues</td>
1981
                  <td align="right" valign="top">
1982
                     <%If pageIsEditable Then%>
6873 dpurdie 1983
                        <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_import_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Import Issues')" class="txt_linked">
123 ghuddy 1984
                           Import Outstanding Issues from ClearQuest
6827 dpurdie 1985
                           <img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'>
6873 dpurdie 1986
                        </span>
121 hknight 1987
                     <%End If%>
1988
                  </td>
1989
               </tr>
1990
            </table>
119 ghuddy 1991
 
121 hknight 1992
            <%retVal = Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_IMPORTED )
1993
            If (retVal > 0) Then
1994
               retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1995
               If retVal = 0 Then%>
6873 dpurdie 1996
                  <table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdGrey>
121 hknight 1997
                     <form name="fixedissues" method="get" action="_update_issues_state.asp">
6873 dpurdie 1998
                        <thead>
121 hknight 1999
                           <%If pageIsEditable Then%>
6873 dpurdie 2000
                              <th nowrap width="1%" align="center">Fixed</th>
121 hknight 2001
                           <%End If%>
6873 dpurdie 2002
                           <th  nowrap width="1%" >Issue&nbsp;Id&nbsp;</th>
2003
                           <th  nowrap width="1%" >Issue DB&nbsp;</th>
2004
                           <th  nowrap width="100%" >Summary</th>
2005
                           <th  nowrap width="1%" >Issue&nbsp;Type&nbsp;</th>
2006
                           <th  nowrap width="1%" >Priority</th>
2007
                           <th  nowrap width="1%" >Status</th>
2008
                           <th  nowrap width="1%" >Note</th>
2009
                           <th  nowrap width="1%" >&nbsp;</th>
2010
                        </thead>
121 hknight 2011
                        <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
2012
                           <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
2013
                              <tr>
2014
                                 <%If pageIsEditable Then%>
6873 dpurdie 2015
                                    <td align="center" nowrap>
123 ghuddy 2016
                                       <input type="checkbox" name="FRfixed" value="<%=rsCQ("iss_db") &"."& rsCQ("iss_id")%>">
2017
                                    </td>
121 hknight 2018
                                 <%End If%>
6873 dpurdie 2019
                                 <td nowrap class="form_item">
2020
                                    <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issues_details.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Details')" class="txt_linked">
123 ghuddy 2021
                                       <%=rsCQ("iss_num")%>
6873 dpurdie 2022
                                    </span>
123 ghuddy 2023
                                 </td>
6873 dpurdie 2024
                                 <td class="form_item">
4553 dpurdie 2025
                                    <%If CInt(rsCQ("iss_db")) = enumCLEARQUEST_DEVI_ID Then%>
123 ghuddy 2026
                                       DEVI
2027
                                    <%Else%>
4553 dpurdie 2028
                                       UNKNOWN
123 ghuddy 2029
                                    <%End If%>
2030
                                 </td>
6873 dpurdie 2031
                                 <td class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
2032
                                 <td nowrap  class="form_item"><%=rsCQ("issue_type")%></td>
2033
                                 <td nowrap  class="form_item"><%=rsCQ("priority")%></td>
2034
                                 <td nowrap  class="form_item"><%=rsCQ("Status")%></td>
121 hknight 2035
                                 <%If sectionIsEditable AND pageIsEditable Then%>
2036
                                    <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 2037
                                       <td align="center"  class="form_item">
2038
                                          <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')">
123 ghuddy 2039
                                             <img src="images/i_note_on.gif" width="11" height="12" border="0" alt="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
6873 dpurdie 2040
                                          </span>
123 ghuddy 2041
                                       </td>
121 hknight 2042
                                    <%Else%>
6873 dpurdie 2043
                                       <td align="center"  class="form_item">
2044
                                          <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','Issue Notes')">
123 ghuddy 2045
                                             <img src="images/i_note_off.gif" width="11" height="12" border="0" alt="Add Note">
6873 dpurdie 2046
                                          </span>
123 ghuddy 2047
                                       </td>
121 hknight 2048
                                    <%End If%>
2049
                                 <%Else%>
2050
                                    <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
6873 dpurdie 2051
                                       <td align="center"  class="form_item">
123 ghuddy 2052
                                          <img src="images/i_note_on.gif" width="11" height="12" border="0" alt="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
2053
                                       </td>
121 hknight 2054
                                    <%Else%>
6873 dpurdie 2055
                                       <td align="center"  class="form_item">
123 ghuddy 2056
                                          <img src="images/i_note_off.gif" width="11" height="12" border="0">
2057
                                       </td>
121 hknight 2058
                                    <%End If%>
2059
                                 <%End If%>
2060
                                 <%If NOT pageIsEditable Then%>
6873 dpurdie 2061
                                    <td align="center"  class="form_item">
123 ghuddy 2062
                                       <img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0">
2063
                                    </td>
121 hknight 2064
                                 <%Else%>
6873 dpurdie 2065
                                    <td align="center"  class="form_item">
2066
                                       <span class=pointer data-href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this issue from Release Manager');">
123 ghuddy 2067
                                          <img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list">
6873 dpurdie 2068
                                       </span>
123 ghuddy 2069
                                    </td>
121 hknight 2070
                                 <%End If%>
2071
                              </tr>
2072
                              <%rsCQ.MoveNext
2073
                           WEnd
2074
                           rsCQ.Close()%>
2075
                           <%If pageIsEditable Then%>
6873 dpurdie 2076
                              <tr class=blank>
161 iaugusti 2077
                                 <td align="center" nowrap bgcolor=#e4e9ec>
123 ghuddy 2078
                                    <input type="submit" name="Apply" value="Apply" class="form_btn">
2079
                                 </td>
121 hknight 2080
                                 <td></td>
2081
                                 <td></td>
2082
                                 <td></td>
2083
                                 <td></td>
2084
                                 <td></td>
2085
                                 <td></td>
2086
                                 <td></td>
2087
                                 <td></td>
2088
                              </tr>
2089
                           <%End If%>
2090
                        <%Else%>
2091
                           <tr>
2092
                              <%If pageIsEditable Then%>
161 iaugusti 2093
                                 <td bgcolor=#e4e9ec nowrap>&nbsp;</td>
121 hknight 2094
                              <%End If%>
6873 dpurdie 2095
                              <td nowrap></td>
2096
                              <td class="form_item"></td>
2097
                              <td class="form_item"></td>
2098
                              <td class="form_item"></td>
2099
                              <td class="form_item"></td>
2100
                              <td class="form_item"></td>
2101
                              <td class="form_item"></td>
2102
                              <td align="center"  class="form_item"></td>
121 hknight 2103
                           </tr>
2104
                        <%End If%>
2105
                        <input name="pv_id" type="hidden" value="<%=parPv_id%>">
2106
                        <input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
2107
                     </form>
2108
                  </table>
2109
               <%End If%>
2110
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
2111
            <%End If%>
123 ghuddy 2112
<!-- DEVI-050133 Although it would seem to the human eye that the following row and table closing tags are needed, -->
2113
<!--             they do in fact cause the page to be rendered incorrectly. Hence they are commented out for now   -->
2114
<!--             until the true cause of the mis-rendering can be ascertained.                                    -->
2115
<!--     </tr> -->
2116
<!--  </table> -->
121 hknight 2117
   </fieldset>
4230 dpurdie 2118
   <br>
119 ghuddy 2119
<!-- DEPENDENCY ISSUES (NOT FOR PATCHES!) ------------------------------------------------------------------------------------------------------->
2120
 
121 hknight 2121
   <%If IsNull(pkgInfoHash.Item ("is_patch")) Then%>
6827 dpurdie 2122
      <fieldset class="fset"><legend class="body_colb"><img src="images/s_bugs.gif" width="21" height="18" border="0" hspace="4" align='absmiddle'>Dependency Issues</legend>
6873 dpurdie 2123
         <table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdGrey>
119 ghuddy 2124
 
4585 dpurdie 2125
            <%
2126
            If  Request("ShowIssues") <> "" Then
2127
                retVal = Get_Package_Issues ( parPv_id, SQLstr, NULL, NULL, NULL )
2128
            Else
2129
                retVal = 0
2130
                %>
2131
                <tr>
6873 dpurdie 2132
                    <td>
2133
                        <span class='pointer txt_linked' onClick="window.location.href=window.location.href+'&ShowIssues=1'">Show Issues of Dependent Packages</span>
4585 dpurdie 2134
                    </td>
2135
                </tr>
2136
                <%
2137
            End If
121 hknight 2138
            If (retVal > 0) Then
2139
               retVal = Get_Dependency_CQ_Issues ( SQLstr, rsCQ, depIssDict, issArr )
2140
               If retVal = 0 Then%>
2141
                  <%
2142
                  currG1 = 0
2143
                  G1_template = _
2144
                  "<tr>"&_
2145
                  "  <td colspan='7'><img src='images/spacer.gif' width='2' height='2'></td>"&_
2146
                  "</tr>"&_
2147
                  "<tr>"&_
161 iaugusti 2148
                  "  <td colspan='7' bgcolor=#e4e9ec class='form_item'>/*DEP_NAME_VERSION*//*REASONS*/</td>"&_
121 hknight 2149
                  "</tr>"
2150
                  Set rsDepIss = OraDatabase.DbCreateDynaset( SQL_Dependency_Issues( parPv_id ), cint(0))
2151
                  %>
2152
                  <%If ((NOT rsDepIss.BOF) AND (NOT rsDepIss.EOF)) Then%>
2153
                     <%While ((NOT rsDepIss.BOF) AND (NOT rsDepIss.EOF))%>
2154
                        <%
2155
                        iss_db_id = Cstr(rsDepIss("iss_db") &"."& rsDepIss("iss_id"))
2156
                        G1_style = Replace(G1_template, "/*DEP_NAME_VERSION*/", "<SPAN class='envolPkg'><b>"& rsDepIss("pkg_name") &" "& rsDepIss("pkg_version") &"</b></SPAN>")
2157
                        If IsNull(rsDepIss("iss_id")) Then
2158
                           If IsNull(rsDepIss("reasons")) Then
2159
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>Reason for this version is not specified.")
2160
                           Else
2161
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>"& NewLine_To_BR ( To_HTML ( rsDepIss("reasons") ) ) )
2162
                           End If
2163
                        Else
2164
                           If IsNull(rsDepIss("reasons")) Then
2165
                              G1_style = Replace(G1_style, "/*REASONS*/", "")
2166
                           Else
2167
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>"& NewLine_To_BR ( To_HTML ( rsDepIss("reasons") ) ) )
2168
                           End If
2169
                        End If
119 ghuddy 2170
 
121 hknight 2171
                        Call Group_By ( rsDepIss("pv_id"), G1_style, currG1 )
2172
                        If NOT IsNull(rsDepIss("iss_id")) Then
2173
                           If rsDepIss("pv_id") <> currG1 Then
2174
                              currG1 = rsDepIss("pv_id")%>
6873 dpurdie 2175
                              <thead>
2176
                                 <th width="1%" align="center"></th>
2177
                                 <th width="1%" align="center">Fixed</th>
2178
                                 <th width="1%" >IssueId</th>
2179
                                 <th width="1%" >Issue DB</th>
2180
                                 <th width="100%">Summary</th>
2181
                                 <th width="1%" >IssueType</th>
2182
                                 <th width="1%" >Priority</th>
2183
                              </thead>
121 hknight 2184
                           <%End If%>
2185
                           <tr>
161 iaugusti 2186
                              <td bgcolor=#e4e9ec></td>
6873 dpurdie 2187
                              <td align="center" nowrap>
121 hknight 2188
                                 <%If CInt(rsDepIss("iss_state")) = enumISSUES_STATE_FIXED Then%>
2189
                                    <img src="images/i_tick_black.gif" width="7" height="7" vspace="2">
2190
                                 <%Else%>
2191
                                    <img src="images/spacer.gif" width="7" height="7" vspace="2">
2192
                                 <%End If%>
2193
                              </td>
6873 dpurdie 2194
                              <td nowrap class="form_item"><span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_issues_details.asp?iss_db=<%=asDepIss( iss_db_id, enumLoc_iss_db )%>&iss_id=<%=asDepIss( iss_db_id, enumLoc_iss_id )%>','Issue Details')" class="txt_linked"><%=asDepIss( iss_db_id, enumLoc_iss_num )%></span></td>
2195
                              <td class="form_item">
4553 dpurdie 2196
                                    <%If CInt(asDepIss( iss_db_id, enumLoc_iss_db )) = enumCLEARQUEST_DEVI_ID Then%>
3975 dpurdie 2197
                                        DEVI
2198
                                    <%Else%>
2199
                                        UNKNOWN
2200
                                    <%End If%></td>
6873 dpurdie 2201
                              <td class="form_item"><%=asDepIss( iss_db_id, enumLoc_summary)%></td>
2202
                              <td nowrap  class="form_item"><%=asDepIss( iss_db_id, enumLoc_issue_type)%></td>
2203
                              <td nowrap  class="form_item"><%=asDepIss( iss_db_id, enumLoc_priority)%></td>
121 hknight 2204
                           </tr>
2205
                        <%End If%>
2206
                        <%rsDepIss.MoveNext
2207
                     WEnd
2208
                     rsDepIss.Close()
2209
                     Set rsDepIss = nothing%>
2210
                  <%Else%>
2211
                     <tr>
6873 dpurdie 2212
                        <td nowrap></td>
2213
                        <td></td>
2214
                        <td></td>
2215
                        <td></td>
2216
                        <td></td>
2217
                        <td></td>
2218
                        <td></td>
121 hknight 2219
                     </tr>
2220
                  <%End If%>
2221
               <%End If%>
2222
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
2223
            <%End If%>
2224
         </table>
2225
      </fieldset>
4230 dpurdie 2226
      <br>
121 hknight 2227
   <%End If%>
119 ghuddy 2228
<!-- UNIT TESTS --------------------------------------------------------------------------------------------------------------------->
121 hknight 2229
   <%
2230
   Dim testCheckMSG, testCheckMSG_ID, testCheckNote, testCheckTestsFound
2231
   Call CheckUnitTestsState ( parPv_id, testCheckMSG, testCheckMSG_ID, testCheckNote, testCheckTestsFound  )
2232
   Set rsQry = OraDatabase.DbCreateDynaset( SQL_Unit_Tests ( parPv_id ), cint(0))
2233
   %>
6324 dpurdie 2234
   <fieldset class="fset">
6827 dpurdie 2235
      <legend class="body_colb"><img src="images/i_unit_test.gif" width="18" height="25" hspace="4" border="0" align='absmiddle' alt="">Unit Tests
2236
      <%If testCheckMSG_ID = 0 AND (pkgInfoHash.Item("dlocked") <> "Y") Then%>
121 hknight 2237
         &nbsp;&nbsp;<%=testCheckMSG%>
2238
      <%End If%></legend>
6324 dpurdie 2239
      <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
2240
           <%If ( scriptName = "fixed_issues.asp" ) Then%>
2241
              <%If objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
6873 dpurdie 2242
                 <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_unit_test.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Add Unit Test')" class="txt_linked">New Test<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align='absmiddle' alt="Add new test."></span>
6324 dpurdie 2243
              <%End If%>
2244
              <%If (NOT testCheckTestsFound) AND (testCheckMSG_ID = 0)  Then%>
6827 dpurdie 2245
                 <a href='_not_done_unit_test.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&notdone=Y' class='txt_linked'>Click here if Not Done!<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align='absmiddle' alt="Add new test."></a>
6324 dpurdie 2246
              <%End If%>
2247
           <%End If%>
2248
      </div>
121 hknight 2249
      <a name="UNIT_TESTS"></a>
2250
      <%If (NOT testCheckTestsFound) AND (testCheckMSG_ID = -1) Then%>
2251
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
2252
            <tr>
6873 dpurdie 2253
               <td class="form_item">
121 hknight 2254
                  <%Call DisplayInfo ( "UNIT_TEST_NOT_DONE", 300 )%>
2255
                  <span class="rep_small">Last Modified: <%=testCheckMSG%></span><br>
2256
                  <%=NewLine_To_BR( To_HTML ( testCheckNote ) )%>
2257
               </td>
2258
            </tr>
2259
         </table>
2260
      <%End If%>
119 ghuddy 2261
 
6873 dpurdie 2262
      <table width="100%" border="0" cellspacing="1" cellpadding="2" class='stdGrey'>
121 hknight 2263
         <form name="review" method="get" action="_update_unit_test_accepted_state.asp">
6873 dpurdie 2264
            <thead>
2265
               <th width="1%" nowrap valign="middle">Test Type</th>
2266
               <th width="100%" nowrap valign="middle">Test Summary</th>
2267
               <th width="1%" nowrap align="center" valign="middle">Test<br>Completed</th>
2268
               <th width="1%" nowrap align="center" valign="middle">Passed<br># / Total</th>
2269
               <th width="1%" nowrap align="center" valign="middle">Results</th>
2270
               <th width="1%" nowrap align="center" valign="middle">Accepted</th>
2271
               <th width="1%" nowrap align="center" valign="middle">Review<br>Completed</th>
2272
               <th width="1%" nowrap valign="middle">Comments /<br>Issue#</th>
2273
               <th width="1%" ></th>
2274
            </thead>
2275
            <%
2276
               Dim ShowApply: ShowApply = FALSE
2277
               While ((NOT rsQry.BOF) AND (NOT rsQry.EOF) )%>
121 hknight 2278
               <tr>
2279
                  <%If NOT pageIsEditable Then%>
6873 dpurdie 2280
                     <%If NOT IsNull(rsQry("test_id")) AND ( scriptName = "fixed_issues.asp") Then %>
2281
                        <td nowrap   valign="top"><span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_update_unit_test.asp?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Update Unit Test')" class="txt_linked"><img src="images/i_test.gif" width="16" height="16" hspace="3" align='absmiddle' border="0"><%=rsQry("test_type_name")%></span></td>
2282
                     <%Else %>
2283
                        <td nowrap   valign="top"><img src="images/i_test.gif" width="16" height="16" hspace="3" align='absmiddle'><%=rsQry("test_type_name")%></td>
121 hknight 2284
                     <%End If%>
6873 dpurdie 2285
                  <%Else %>
2286
                     <td nowrap   valign="top"><span class='pointer txt_linked' onClick="MM_openVixIFrame('<%If Not IsNull(rsQry("test_id")) Then%>_wform_update_unit_test.asp<%Else%>_wform_unit_test.asp<%End If%>?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&test_type_id=<%=rsQry("test_type_id")%>','Update Unit Test')" class="txt_linked"><img src="images/i_test.gif" width="16" height="16" hspace="3" align='absmiddle' border="0"><%=rsQry("test_type_name")%></span></td>
2287
                  <%End If %>
2288
                  <%If rsQry("test_type_id") <> CStr(enumTEST_TYPE_AUTOBUILD_UTF) Then %>
2289
                  <td valign="top"><%=NewLine_To_BR( To_HTML( rsQry("test_summary") ))%></td>
2290
                  <td nowrap   valign="top"><%If ( NOT IsNull(rsQry("tester")) ) Then%><%=DisplayDate ( rsQry("completion_date") )%><br>by <%=emailField(rsQry("tester"),rsQry("tester_email"))%><%End If%></td>
2291
                  <td nowrap   valign="top" align="center"><%=rsQry("numof_test")%></td>
119 ghuddy 2292
 
6873 dpurdie 2293
                  <%If CInt(rsQry("test_type_id")) = enumTEST_TYPE_AUTOMATIC Then %>
2294
                     <td align="center" valign="top">
121 hknight 2295
                        <%If NOT IsNull( rsQry("results_url") ) Then%>
2296
                           <%If InStr( rsQry("results_url"), "http://" ) = 1 Then%>
2297
                              <a href="<%=rsQry("results_url")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
2298
                           <%Else%>
3959 dpurdie 2299
                              <a href="<%=dpkg_archiveURL & pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") & rsQry("results_url")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
121 hknight 2300
                           <%End If%>
2301
                        <%End If%>
2302
                     </td>
6873 dpurdie 2303
                  <% Else %>
2304
                     <td align="center" valign="top">
121 hknight 2305
                        <%If NOT IsNull( rsQry("results_attachment_name") ) Then%>
4809 dpurdie 2306
                            <a href="<%=TEMP_FOLDER &"/"& pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") &"/"& rsQry("results_attachment_name")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
121 hknight 2307
                        <%End If%>
2308
                     </td>
2309
                  <%End If%>
119 ghuddy 2310
 
6873 dpurdie 2311
                  <td nowrap bgcolor=#e4e9ec class="sublbox_txt" valign="top" align="center">
2312
                        <%=FormatAccepted(rsQry("test_accepted"), rsQry("test_id"))%>
2313
                        <%ShowApply = true%>
2314
                  </td>
2315
                  <td nowrap   valign="top"><%If NOT IsNull(rsQry("reviewee")) Then%><%=DisplayDate ( rsQry("acceptance_date") )%><br>by <%=emailField(rsQry("reviewee"),rsQry("reviewee_email"))%><%End If%></td>
2316
                  <td valign="top"><%=NewLine_To_BR( To_HTML( rsQry("review_comments") ))%></td>
2317
                  <%Else%>
2318
                    <td colspan=7><a class=txt_linked href='unit_test_log.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>'>See Unit Tests tab</a></td>
2319
                  <%End If%>
157 ghuddy 2320
                  <%
2321
                  If (  (    pageIsEditable _
2322
                         AND (scriptName = "fixed_issues.asp") _
2323
                         AND (IsNull(rsQry("test_accepted")) OR (rsQry("test_accepted") = enumUNIT_TEST_NOTACCEPTED))) _
2324
                      OR _
2325
                        (    objAccessControl.UserLogedIn _
2326
                         AND (scriptName = "fixed_issues.asp") _
2327
                         AND (pkgInfoHash.Item("dlocked") = "Y") _
2328
                         AND (IsNull(rsQry("test_accepted")) OR (rsQry("test_accepted") = enumUNIT_TEST_NOTACCEPTED)) _
2329
                         AND (rsQry("test_type_id") <> CStr(enumTEST_TYPE_AUTOBUILD_UTF))) ) Then
2330
                  %>
6873 dpurdie 2331
                     <td valign="top"><%If NOT IsNull(rsQry("test_id")) Then%><span class=pointer data-href="_remove_unit_test.asp?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this unit test');"><img src="images/i_delete.gif" alt="Remove this test." width="13" height="12" hspace="3" border="0"></span><%End If%></td>
2332
                  <% Else %>
2333
                     <td valign="top"></td>
121 hknight 2334
                  <%End If%>
2335
               </tr>
157 ghuddy 2336
               <%
2337
               rsQry.MoveNext
2338
            WEnd
2339
            %>
6873 dpurdie 2340
            <tr class=blank>
2341
               <td></td>
2342
               <td></td>
2343
               <td></td>
2344
               <td></td>
2345
               <td></td>
2346
               <td align="center">
2347
                  <%If ShowApply AND (testCheckTestsFound) AND (testCheckMSG_ID = 0) AND ( scriptName = "fixed_issues.asp" ) AND pageIsEditable Then%>
157 ghuddy 2348
                     <input type="submit" name="Apply" value="Apply" class="form_btn">
2349
                  <%End If%>
2350
               </td>
6873 dpurdie 2351
               <td></td>
2352
               <td></td>
2353
               <td></td>
121 hknight 2354
            </tr>
2355
            <input name="pv_id" type="hidden" value="<%=parPv_id%>">
2356
            <input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
2357
         </form>
2358
      </table>
2359
   </fieldset>
4230 dpurdie 2360
    <br>
119 ghuddy 2361
<!-- CODE REVIEW ------------------------------------------------------------------------------------------------------------------->
6324 dpurdie 2362
   <%Set rsQry = OraDatabase.DbCreateDynaset( SQL_CodeReview ( parPv_id ), cint(0))%>
2363
   <fieldset class="fset">
2364
      <legend class="body_colb"><img src='images/s_code_review.gif' width='21' height='23' hspace='4' border='0' align='absmiddle'>Code Review</legend>
2365
      <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
2366
           <%If ( scriptName = "fixed_issues.asp" ) Then%>
2367
              <%If objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
6873 dpurdie 2368
                 <span class='pointer txt_linked' onClick="MM_openBrWindow('_wform_update_code_review.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','CodeReviewEdit','scrollbars=yes,status=yes,resizable=yes,width=950,height='+ ( screen.height - 100 ) +',top=0,left=0')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 2369
              <%End If%>
2370
              <%If rsQry.RecordCount > 0 Then%>
2371
                 <%If NOT IsNull(rsQry("date_of_review")) Then%>
2372
                    &nbsp;
6873 dpurdie 2373
                    <span class='pointer txt_linked' onClick="MM_openBrWindow('_wform_code_review.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','CodeReviewView','scrollbars=yes,status=yes,resizable=yes,width=950,height='+ ( screen.height - 100 ) +',top=0,left=0')" class="txt_linked">View<img src="images/i_open.gif" width="12" height="12" hspace="2" border="0" align='absmiddle'></span>
6324 dpurdie 2374
                 <%End If%>
2375
              <%End If%>
2376
           <%End If%>
2377
      </div>
121 hknight 2378
      <a name="CODE_REVIEW" id="CODE_REVIEW"></a>
2379
      <%If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then%>
2380
         <%If NOT IsNull(rsQry("date_of_review")) Then%>
6873 dpurdie 2381
            <table width="100%"  border="0" cellspacing="1" cellpadding="4" class=lhsGrey>
121 hknight 2382
               <tr>
6873 dpurdie 2383
                  <td>Date of Review</td>
2384
                  <td width='1%' nowrap><%=DisplayDate ( rsQry("date_of_review") )%>&nbsp;&nbsp;&nbsp;</td>
2385
                  <td width='1%' align="right" nowrap class="hdr">&nbsp;&nbsp;&nbsp;Time Spent:</td>
2386
                  <td><%=rsQry("time_spent")%> hrs </td>
121 hknight 2387
               </tr>
2388
               <tr>
6873 dpurdie 2389
                  <td>Reason for Review</td>
2390
                  <td colspan="3"  ><%=NewLine_To_BR( To_HTML( rsQry("review_reason") ))%></td>
121 hknight 2391
               </tr>
2392
               <tr>
6873 dpurdie 2393
                  <td>Review Results </td>
2394
                  <td colspan="3"  >
121 hknight 2395
                  <%=DecodeOverallResult( rsQry("review_results") )%>
2396
                  </td>
2397
               </tr>
2398
               <tr>
6873 dpurdie 2399
                  <td>Issues Raised </td>
2400
                  <td colspan="3"  ><%=NewLine_To_BR( To_HTML( rsQry("issues_raised") ))%></td>
121 hknight 2401
               </tr>
119 ghuddy 2402
            </table>
121 hknight 2403
         <%Else%>
119 ghuddy 2404
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
121 hknight 2405
               <tr>
6873 dpurdie 2406
                  <td><span class='sublbox_txt'>No details found.</span></td>
121 hknight 2407
               </tr>
119 ghuddy 2408
            </table>
121 hknight 2409
         <%End If%>
2410
      <%Else%>
2411
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
2412
            <tr>
6873 dpurdie 2413
               <td><span class='sublbox_txt'>No details found.</span></td>
121 hknight 2414
            </tr>
2415
         </table>
2416
      <%End If%>
119 ghuddy 2417
 
121 hknight 2418
      <!-- Code Review URL section for this version -->
2419
      <%Call GetCodeReviewURLs( parPv_id, rsCodeReviewURL )%>
6873 dpurdie 2420
      <table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdGrey>
121 hknight 2421
         <tr>
2422
            <td align="left" valign="top" class="body_colb">Code Review URL for this version</td>
2423
            <td align="right" valign="top" <%If NOT IsNull(rsCodeReviewURL("url")) Then Response.Write("colspan='5'")%>>
157 ghuddy 2424
               <%If (scriptName = "fixed_issues.asp") AND objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
6873 dpurdie 2425
                  <span class='pointer txt_linked' onclick="MM_openVixIFrame('_wform_edit_code_review_url.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Edit Code Review URL')" class="txt_linked">New<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align='absmiddle'></span>
121 hknight 2426
               <%End If%>
2427
            </td>
2428
         </tr>
2429
         <%If IsNull(rsCodeReviewURL("full_url")) Then %>
2430
            <tr>
6873 dpurdie 2431
               <td width="100%"  colspan="2">
121 hknight 2432
                  <span class='sublbox_txt'>No details found.</span>
2433
               </td>
2434
            </tr>
2435
         <%Else%>
2436
            <tr>
161 iaugusti 2437
               <td bgcolor=#e4e9ec class="form_field">URL</td>
2438
               <td bgcolor=#e4e9ec width="25%" class="form_field">Reason for Review</td>
2439
               <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Date of Review</td>
2440
               <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Last Modified</td>
2441
               <td bgcolor=#e4e9ec nowrap width="18px" class="form_field"></td>
2442
               <td bgcolor=#e4e9ec nowrap width="18px" class="form_field"></td>
121 hknight 2443
            </tr>
2444
            <%If ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF)) Then
2445
               While ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF))%>
2446
                  <tr>
2447
                     <%If (Left(rsCodeReviewURL("url"),4) = "http") Then%>
6873 dpurdie 2448
                        <td valign="top"><a href="<%=rsCodeReviewURL("url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("url")%></a></td>
121 hknight 2449
                     <%Else%>
6873 dpurdie 2450
                        <td valign="top"><a href="<%=rsCodeReviewURL("full_url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("full_url")%></a></td>
121 hknight 2451
                     <%End If%>
6873 dpurdie 2452
                     <td valign="top"><%=rsCodeReviewURL("reason")%></td>
2453
                     <td valign="top"><%=DisplayDate(rsCodeReviewURL("date_of_review"))%></td>
2454
                     <td valign="top"><%=DisplayDate(rsCodeReviewURL("last_modified"))%></td>
157 ghuddy 2455
                     <%If (scriptName = "fixed_issues.asp") AND objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
6873 dpurdie 2456
                        <td valign="top"><span class='pointer txt_linked' onclick="MM_openVixIFrame('_wform_edit_code_review_url.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&cr_id=<%=rsCodeReviewURL("cr_id")%>','Edit Code Review URL')" class="txt_linked"><img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle' alt="Edit this code review URL"></span></td>
2457
                        <td valign="top"><span calss=pointer data-href="_remove_code_review_url.asp?cr_id=<%=rsCodeReviewURL("cr_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onclick="return vixConfirmDelete('this code review URL from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this code review URL" align='absmiddle'></span></td>
121 hknight 2458
                     <%Else%>
6873 dpurdie 2459
                        <td valign="top"></td>
2460
                        <td valign="top"></td>
121 hknight 2461
                     <%End If%>
2462
                  </tr>
2463
                  <%rsCodeReviewURL.MoveNext
2464
               WEnd
2465
            Else%>
2466
               <tr>
6873 dpurdie 2467
                  <td></td>
2468
                  <td></td>
2469
                  <td></td>
2470
                  <td></td>
2471
                  <td></td>
2472
                  <td></td>
121 hknight 2473
               </tr>
2474
            <%End If
2475
         End If%>
2476
      </table>
119 ghuddy 2477
 
121 hknight 2478
      <!-- Code Review URL section for last non-ripple build -->
2479
      <%If pkgInfoHash.Item ("comments") = "Rippled Build." Then
2480
         Call LastPvId(pkgInfoHash.Item ("pv_id"))
2481
         While rsQry("comments") = "Rippled Build."
119 ghuddy 2482
            Call LastPvId(rsQry("last_pv_id"))
121 hknight 2483
         Wend
2484
         Dim sOldPkgVersion
157 ghuddy 2485
         Dim oldDlocked
2486
         Call Get_Pkg_Short_Info ( rsQry("pv_id"), NULL, NULL, sOldPkgVersion, NULL, NULL, oldDlocked )
121 hknight 2487
         Call GetCodeReviewURLs( rsQry("pv_id"), rsCodeReviewURL )
2488
         %>
2489
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
2490
            <tr>
2491
               <td align="left" valign="top" class="body_colb" <%If NOT IsNull(rsCodeReviewURL("url")) Then Response.Write("colspan='6'")%>>Code Review URL for last non-ripple build (<a class="lbl_link" href="fixed_issues.asp?pv_id=<%=rsQry("pv_id")%>"><%=sOldPkgVersion%></a>)</td>
2492
            </tr>
2493
            <%If IsNull(rsCodeReviewURL("url")) Then%>
2494
               <tr>
6873 dpurdie 2495
                  <td width="100%"  colspan="2">
121 hknight 2496
                     <span class='sublbox_txt'>No details found.</span>
119 ghuddy 2497
                  </td>
121 hknight 2498
               </tr>
2499
            <%Else%>
2500
               <tr>
161 iaugusti 2501
                  <td bgcolor=#e4e9ec class="form_field">URL</td>
2502
                  <td bgcolor=#e4e9ec width="30%" class="form_field">Reason for Review</td>
2503
                  <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Date of Review</td>
2504
                  <td bgcolor=#e4e9ec nowrap width="1%" class="form_field">Last Modified</td>
2505
                  <td bgcolor=#e4e9ec nowrap width="18px" class="form_field"></td>
2506
                  <td bgcolor=#e4e9ec nowrap width="18px" class="form_field"></td>
121 hknight 2507
               </tr>
2508
               <%If ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF)) Then
119 ghuddy 2509
                  While ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF))%>
121 hknight 2510
                     <tr>
2511
                        <%If (Left(rsCodeReviewURL("url"),4) = "http") Then%>
6873 dpurdie 2512
                           <td valign="top"><a href="<%=rsCodeReviewURL("url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("url")%></a></td>
121 hknight 2513
                        <%Else%>
6873 dpurdie 2514
                           <td valign="top"><a href="<%=rsCodeReviewURL("full_url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("full_url")%></a></td>
121 hknight 2515
                        <%End If%>
6873 dpurdie 2516
                        <td valign="top"><%=rsCodeReviewURL("reason")%></td>
2517
                        <td valign="top"><%=rsCodeReviewURL("date_of_review")%></td>
2518
                        <td valign="top"><%=rsCodeReviewURL("last_modified")%></td>
157 ghuddy 2519
                        <%If (scriptName = "fixed_issues.asp") AND objAccessControl.UserLogedIn AND (pageIsEditable OR (oldDlocked = "Y")) Then%>
6873 dpurdie 2520
                           <td valign="top"><span class='pointer txt_linked' onclick="MM_openVixIFrame('_wform_edit_code_review_url.asp?pv_id=<%=rsCodeReviewURL("pv_id")%>&rtag_id=<%=parRtag_id%>&cr_id=<%=rsCodeReviewURL("cr_id")%>','Edit Code Review URL')" class="txt_linked"><img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align='absmiddle' alt="Edit this code review URL"></span></td>
2521
                           <td valign="top"><span class=pointer data-href="_remove_code_review_url.asp?cr_id=<%=rsCodeReviewURL("cr_id")%>&pv_id=<%=rsCodeReviewURL("pv_id")%>&rtag_id=<%=parRtag_id%>" onclick="return vixConfirmDelete('this code review URL from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this code review URL" align='absmiddle'></span></td>
121 hknight 2522
                        <%Else%>
6873 dpurdie 2523
                           <td valign="top"></td>
2524
                           <td valign="top"></td>
121 hknight 2525
                        <%End If%>
2526
                     </tr>
2527
                     <%rsCodeReviewURL.MoveNext
119 ghuddy 2528
                  WEnd
121 hknight 2529
               Else%>
119 ghuddy 2530
                  <tr>
6873 dpurdie 2531
                     <td></td>
2532
                     <td></td>
2533
                     <td></td>
2534
                     <td></td>
2535
                     <td></td>
2536
                     <td></td>
119 ghuddy 2537
                  </tr>
121 hknight 2538
               <%End If
2539
            End If%>
2540
         </table>
2541
      <%End If%>
119 ghuddy 2542
 
121 hknight 2543
   </fieldset>
2544
   <br>
119 ghuddy 2545
<!-- ADDITIONAL NOTES ------------------------------------------------------------------------------------------------------------------->
6324 dpurdie 2546
   <fieldset class="fset">
6827 dpurdie 2547
      <legend class="body_colb"><img src="images/i_additional_notes.gif" width="26" height="20" hspace="4" border="0" align='absmiddle' alt="">Additional Notes</legend>
6324 dpurdie 2548
      <div style="display: block;float: right;margin-top: -20px;background-color: #FFF;padding: 0 5px;">
2549
       <%If pageIsEditable Then%>
6873 dpurdie 2550
          <span class='pointer txt_linked' onClick="MM_openVixIFrame('_wform_additional_note.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Additional Notes')" class="txt_linked">New Note<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align='absmiddle' title="Add new note."></span>
6324 dpurdie 2551
       <%End If%>
2552
      </div>
121 hknight 2553
      <a name="ADDITIONAL_NOTES"></a>
6873 dpurdie 2554
      <table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdGrey>
121 hknight 2555
         <%Set rsQry = OraDatabase.DbCreateDynaset( SQL_Additional_Notes ( parPv_id ), cint(0))%>
2556
         <%If rsQry.RecordCount < 1 Then%>
2557
            <tr>
6873 dpurdie 2558
               <td>&nbsp;</td>
121 hknight 2559
            </tr>
2560
         <%End If%>
2561
         <%While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
6873 dpurdie 2562
            <tr class=hdr>
2563
               <td width="100%" nowrap>
121 hknight 2564
                  <%If pageIsEditable Then%>
6873 dpurdie 2565
                     <span onClick="MM_openVixIFrame('_wform_update_additional_note.asp?note_id=<%=rsQry("note_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','Update Note')" class="pointer"><img src="images/i_edit.gif" alt="Edit" width="12" height="12" hspace="3" vspace="3" border="0" align='absmiddle'><%=To_HTML (rsQry("note_title"))%></span>
121 hknight 2566
                  <%Else%>
2567
                     <%=To_HTML (rsQry("note_title"))%>
2568
                  <%End If%>
2569
               </td>
6873 dpurdie 2570
               <td width="1%">
121 hknight 2571
                  <%If pageIsEditable Then%>
6873 dpurdie 2572
                     <span class=pointer data-href="_remove_additional_note.asp?note_id=<%=rsQry("note_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return vixConfirmDelete('this note');"><img src="images/i_delete.gif" alt="Remove this note." width="13" height="12" hspace="3" border="0"></span>
121 hknight 2573
                  <%End If%>
2574
               </td>
2575
            </tr>
2576
            <tr>
6873 dpurdie 2577
               <td colspan="2">
4230 dpurdie 2578
                  <%=NewLine_To_BR( To_HTML ( rsQry("note_body") ) )%><br>
121 hknight 2579
                  <span class="rep_small">Last Modified: <%=rsQry("lastmod")%></span>
2580
               </td>
2581
            </tr>
2582
            <tr>
2583
               <td colspan="2"><img src='images/spacer.gif' width='2' height='2'></td>
2584
            </tr>
2585
            <%rsQry.MoveNext
2586
         WEnd%>
2587
      </table>
2588
   </fieldset>
5932 dpurdie 2589
   <br>
2590
<%End If%>
2591