<%
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Package_Information ( parPv_id ), cint(0))
Call get_vcs_info_for_package( rsQry("pkg_label"), rsQry("build_type"), rsQry("vcs_type_id"), rsQry("dlocked"), vcsInfoCollector )
%>
<%
' State
Dim sstate
Dim bcan_unlock
Dim stitle
Dim bis_patch
Dim slockonclick: slockonclick=""
bis_patch = not IsNull(pkgInfoHash.Item ("is_patch"))
If bis_patch Then
' the user can unlock a patch if they have permission
' packages can be unlocked by the btnUnlockRelease button
bcan_unlock = objAccessControl.IsDataActive ("PROJECTS", DB_PROJ_ID, "EditProjects") AND objAccessControl.IsActive("UnlockPatch")
Else
bcan_unlock = objAccessControl.IsActive("EditCriticalInfoForLockedPackage")
End If
Select Case pkgInfoHash.Item ("dlocked")
Case "Y" sstate = "Released"
Case "N" sstate = "Not Released"
Case "P" sstate = "Not Released. Pending approval"
Case "A" sstate = "Not Released. Aproved for build"
Case "R" sstate = "Not Released. Rejected"
Case Else sstate = "Not Released. Invalid State"
End Select
If bcan_unlock Then
If (pkgInfoHash.Item ("dlocked") = "Y") Then
' Unlock patch.
stitle="Unlock the patch"
shref="_s_unlock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
ElseIf (pkgInfoHash.Item ("dlocked") = "N") Then
' lock patch.
stitle="Lock the patch. Release requirements are not applied."
shref="_s_lock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
Else
' unlock patch.
stitle="Unlock the patch"
shref="_s_unlock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
bcan_unlock = FALSE
End If
End if
%>
<% If bcan_unlock Then
If (slockonclick = "") Then%>
Status:
<% Else %>
Status:
<% End If %>
<% Else %>
Status:
<% End If %>
|
<%=sstate%> |
| Deployable: |
<%If IsNull( rsQry("is_deployable") ) Then%>No<%Else%>Yes<%End If%>
|
| Short Description: |
<%If IsNull( rsQry("pv_description") ) Then%>
Required!<%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pv_description") ) )%>
<%End If%>
|
| Package Overview: |
<%If IsNull( rsQry("pv_overview") ) Then%>
Required!<%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pv_overview") ) )%>
<%End If%>
|
<%
Dim shref
Dim smail
Dim sonclick
' Owner:
sonclick="MM_openBrWindow('_wform_change_owner.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','ChangeOwner','resizable=yes,width=400,height=200')"
smail = pkgInfoHash.Item ("owner_email")
shref = "mailto:"& smail
%>
<%If objAccessControl.UserLogedIn() Then%>
class='body_txt'>
Owner:
<%Else%>
Owner:
<%End If%>
|
|
<%
' Created:
smail = pkgInfoHash.Item ("creator_email")
shref = "mailto:"& smail
%>
| Created: |
| <%=EuroDate(pkgInfoHash.Item ("created_stamp"))&" by "& pkgInfoHash.Item ("creator")%> |
class='txt_linked'> > |
|
<%
' Last Modified:
smail = pkgInfoHash.Item ("modifier_email")
shref = "mailto:"& smail
%>
| Last Modified: |
| <%=EuroDateTime(pkgInfoHash.Item ("modified_stamp")) &" by "& pkgInfoHash.Item ("modifier")%> |
class='txt_linked'> > |
|
<%
' Added to Release
smail = pkgInfoHash.Item ("insertor_email")
shref = "mailto:"& smail
If IsNull(pkgInfoHash.Item ("is_patch")) AND (Request("rtag_id") <> "") AND (pkgInfoHash.Item ("insertor") <> "") Then
%>
| Added to Release: |
| <%=EuroDate(pkgInfoHash.Item ("insert_stamp")) &" by "& pkgInfoHash.Item ("insertor")%> |
class='txt_linked'> > |
|
<%End If%>
<%If (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) OR (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) Then%>
| Version Control System: |
<%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
|
| Source Path: |
<%If IsNull( rsQry("src_path") ) Then%>
Required!<%Else%><%=NewLine_To_BR ( To_HTML( rsQry("src_path") ) )%>
<%End If%>
|
| Label: |
<%If IsNull( rsQry("pkg_label") ) Then%>
Required!<%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pkg_label") ) )%>
<%End If%>
|
<%ElseIf vcsInfoCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG Then%>
| Version Control System: |
<%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
|
| Source Path: |
<%If IsNull( rsQry("src_path") ) Then%>
Required!<%Else%><%=NewLine_To_BR ( To_HTML( rsQry("src_path") ) )%>
<%End If%>
|
| Tag: |
<%If IsNull( rsQry("pkg_label") ) Then%>
Required!<%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pkg_label") ) )%>
<%End If%>
|
<%ElseIf vcsInfoCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG Then%>
| Version Control System: |
<%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
|
<%Else%>
| Version Control System: |
Required!
|
<%End If%>
| Base View: |
<%=Get_Pkg_Base_View ( parPv_id, parRtag_id )%>
|
|
Build Standard:
|
<%
If pkgInfoHash.Item ("bs_id") <> "" Then
If pkgInfoHash.Item ("bs_id") = "1" Then
Response.write "JATS
| "
ElseIf pkgInfoHash.Item ("bs_id") = "2" Then
Response.write "ANT
| "
ElseIf pkgInfoHash.Item ("bs_id") = "3" Then
Response.write "NONE
| "
End If
Else
If vcsInfoCollector.Item("vcs_tag") <> enum_VCS_UNCONTROLLED_TAG Then
Response.write "Required!
| "
Else
Response.write "Unspecified
| "
End If
End If
%>
<%If (NOT IsNull(pkgInfoHash.Item ("bs_id"))) AND (pkgInfoHash.Item ("bs_id") <> "3") Then%>
| Build Environment: |
<%
'--- Get Build Env Details
Set rsTemp = OraDatabase.DbCreateDynaset( SQL_Build_Env ( parPv_id ), cint(0))
%>
<%If rsTemp.RecordCount = 0 Then%>
<%If rsQry("is_build_env_required") = enumDB_NO Then%>
Not Required
<%Else%>
Required!
<%End If%>
<%Else%>
<%If (IsNull( rsQry("is_build_env_required") ) AND (rsQry("comments") <> "Rippled Build.")) Then%>
Required!
<%ElseIf rsQry("is_build_env_required") = enumDB_NO Then%>
Not Required.
<%Else%>
<%
currG1 = 0
While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
'retVal = Lookup_Document ( rsQry("doc_num"), sDocTitle, NULL, NULL, NULL )
%>
<%If currG1 <> CInt(rsTemp("bm_id")) Then%>
|
<%=rsTemp("bm_name")%> <%=GetBuildType( rsTemp("bsa_id") )%>
|
<%currG1 = CInt(rsTemp("bm_id"))
End If
rsTemp.MoveNext
WEnd
%>
|
|
<%End If%>
<%End If%>
|
<%End If%>
<%
' Get JATS extraction commands
Dim sjats_cmd_test, sjats_cmds_qh, sjats_extractable
ReDim sjats_cmds(6)
call Jats_Extract_Command(sjats_cmds, sjats_cmd_test, sjats_cmds_qh, sjats_extractable)
%>
<%If IsNull(pkgInfoHash.Item ("is_patch")) Then%>
<%
' Previous Version
sonclick="MM_openBrWindow(""_wform_change_previous_version.asp?rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &""",""ChangeOwner"",""resizable=yes,width=400,height=200"")"
If objAccessControl.IsActive("ChangePreviousVersion") Then
%>
class='body_txt'>
Previous Version:
<%Else%>
Previous Version:
<%End If%>
|
<%
Dim sprevious_version_value
sprevious_version_value = ""
If IsNull(pkgInfoHash.Item ("previous_version")) Then
sprevious_version_value = "Unknown!"
Else
sprevious_version_value = pkgInfoHash.Item ("previous_version")
End If
' Previous pkg vcs tag
Dim last_pv_id
Dim rsQryPV, rsQryVT
Set rsQryPV = OraDatabase.DbCreateDynaset( "SELECT last_pv_id from package_versions where pv_id ="&parPv_id , cint(0))
Dim slast_vcs_tag
last_pv_id = rsQryPV("last_pv_id")
If (pv_id_exists(last_pv_id)) Then
slast_vcs_tag = Get_Pkg_Vcs_Tag(last_pv_id)
End If
%>
|
<%=sprevious_version_value%>
|
<% If sjats_extractable Then
response.write( NewLine_To_BR ( To_HTML(slast_vcs_tag) ))
Else
response.write("Cannot be extracted with JATS")
End If
response.write(Quick_Help ( "PreviousVcsTag" ))
%>
|
|
<%End If%>
<%
Dim iLastSignificantPVID
Dim old_pkg_vcs_tag
Dim old_previous_version_value
iLastSignificantPVID = getLastSignificantPVID(pkgInfoHash.Item("pv_id"), pkgInfoHash.Item("last_pv_id"))
If (pv_id_exists(iLastSignificantPVID) = TRUE) Then
Dim rsQryLPV
Set rsQryLPV = OraDatabase.DbCreateDynaset( "SELECT pkg_version from package_versions where pv_id ="&iLastSignificantPVID , cint(0))
old_previous_version_value = rsQryLPV("pkg_version")
old_pkg_vcs_tag = Get_Pkg_Vcs_Tag(iLastSignificantPVID)
%>
| Previous Significant Version: |
|
<%=old_previous_version_value%>
|
<% If sjats_extractable Then
response.write( NewLine_To_BR ( To_HTML(old_pkg_vcs_tag) ))
Else
response.write("Cannot be extracted with JATS")
End If
response.write(Quick_Help ( "PreviousSignificantVcsTag" ))
%>
|
|
<%End If%>
|
JATS extraction commands:
<%=Quick_Help ( "JatsExtraction_" & sjats_cmds_qh )%>
|
<% Dim ii : For ii = 0 to UBound(sjats_cmds) %>
|
<%=NewLine_To_BR ( To_HTML(sjats_cmds(ii)) )%>
|
<% Next %>
|
|
JATS Test:<%=Quick_Help ( "JatsTest" )%>
|
<%=NewLine_To_BR ( To_HTML(sjats_cmd_test) )%>
|
<%
' Beyond Compare difference command
Dim prevVcsTag
Dim curVcsTag
Dim sBcCmd
prevVcsTag = Get_Pkg_Vcs_Tag(iLastSignificantPVID)
curVcsTag = Get_Pkg_Vcs_Tag(parPv_id)
sBcCmd = ""
If (IsNull(prevVcsTag) OR prevVcsTag = "" ) Then
sBcCmd = "No prior label to compare against"
ElseIf (IsNull(curVcsTag) OR curVcsTag = "" ) Then
sBcCmd = "Current VCS tag not yet specified"
ElseIf (not sjats_extractable) Then
sBcCmd = "Cannot be extracted with JATS"
Else
sBcCmd = "jats vcsdiff -old=" & prevVcsTag & " -new=" & curVcsTag
End If
sBcCmd = NewLine_To_BR( To_HTML (sBcCmd) )
' Codestriker commands - Only for ClearCase
Dim sCsCmd
sCsCmd = ""
If vcsInfoCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG Then
Dim oldLabel
Dim old_vcs_tag
If (pv_id_exists(iLastSignificantPVID) = TRUE) Then
old_vcs_tag = get_vcs_tag(iLastSignificantPVID)
If (old_vcs_tag = enum_VCS_CLEARCASE_TAG) Then
oldLabel = get_Pkg_Label(iLastSignificantPVID)
sCsCmd = NewLine_To_BR ( To_HTML( Codestriker_Command (oldLabel, pkgInfoHash.Item("pkg_label")) ) )
End If
End If
End If%>
|
Codestriker command:<%=Quick_Help ( "Codestriker" )%>
|
<%=sCsCmd%>
|
|
Beyond Compare command:<%=Quick_Help ( "BeyondCompare" )%>
|
<%=sBcCmd%>
|
<%If pkgInfoHash.Item("is_deployable") = "Y" Then
OraDatabase.Parameters.Add "PV_ID", pkgInfoHash.Item ("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("DeploymentManagerReference.sql"), cint(0))
If rsTemp.RecordCount = 0 Then%>
| SBOM Information: |
<%If pkgInfoHash.Item("product_state") = 3 Then%>
Ready For Deployment! |
<%ElseIf pkgInfoHash.Item("product_state") = 2 Then%>
Ready For Testing! |
<%ElseIf pkgInfoHash.Item("product_state") = 1 Then%>
Ready For Integration! |
<%ElseIf pkgInfoHash.Item("product_state") = 5 Then%>
Ready For Integration and Deployment! |
<%ElseIf IsNull(pkgInfoHash.Item("product_state")) Then%>
Information Unavailable! |
<%End If%>
<%Else%>
| SBOM Added/Updated: |
<%=rsTemp("branch_name")%> - <%=rsTemp("bom_name")%><%=VBNewLine%><%=rsTemp("version")%>
|
<%End If
rsTemp.Close()
Set rsTemp = Nothing
OraDatabase.Parameters.Remove "PV_ID"
End If
%>