<%
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 )
' Status:
Dim sstate
Dim bcan_unlock
Dim stitle
Dim bis_patch
Dim spkgType
Dim shref
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 = canActionControlInProject("UnlockPatch")
spkgType = "Patch"
Else
bcan_unlock = canActionControlInProject("EditCriticalInfoForLockedPackage")
spkgType = "Package"
End If
If pkgInfoHash.Item("is_sdkpkg") Then bcan_unlock = FALSE
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. Approved 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/package.
stitle="Unlock the " & spkgType
shref="_s_unlock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
ElseIf (pkgInfoHash.Item ("dlocked") = "N") Then
' lock patch/package.
stitle="Lock the "& spkgType &". Release requirements are not applied."
shref="_s_lock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
Else
' unlock patch/package.
stitle="Unlock the " & spkgType
shref="_s_unlock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id
bcan_unlock = FALSE
End If
End if
%>
<% If bcan_unlock Then %>
Status:
<% Else %>
Status:
<% End If %>
|
<%=sstate%> |
| Deployable: |
<%=iif(IsNull( rsQry("is_deployable") ), "No","Yes")%> |
<%If parRtag_id <> "" Then
Dim s3Text
If pkgInfoHash("inManifest") <> "Y" Then
s3Text = "No"
Else
If pkgInfoHash("s3ManifestEnabled") <> "Y" Then
s3Text = "Yes. Ignored as the Release does not support S3 Manifest generation"
Else
s3Text = "Yes"
End If
End If
%>
|
<%BuildEditButtonRaw pkgInfoHash.Item ("is_released") AND ( canActionControlInProject("ConfigureRelease") OR canActionControlInProject("EditNonCriticalInfoForLockedPackage") OR canActionControlInProject ("EditInManifest") OR canActionControl("MSMaintainer")), _
"Include in Manifest:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
"MM_openVixIFrame('_wform_change_in_manifest.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change In Manifest')" %>
<%=Quick_Help("inManifest")%>
|
<%=s3Text%>
|
<%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 sonclick
Dim imgClass
Dim sClass
%>
|
<%BuildEditButtonRaw canActionControlInProject ("EditPackageLicence") OR canActionControl("MSMaintainer"), _
"Package Licence:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
"MM_openVixIFrame('_wform_change_licence.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change License')" %>
|
<%=getLicence()%>
|
<%
' Display only if the package is a COTS ( or TOOL ) package
' Display if this package has associated licencing
' Display if this is the first version of the package
If pkgInfoHash.Item("is_cots") = "Y" OR (CINT(pkgInfoHash.Item("pkgVerCount")) = 1 AND pkgInfoHash.Item("dlocked") = "N" ) OR bHasaLicense OR pkgInfoHash.Item("pkg_eref") <> "" Then
%>
|
<%BuildEditButtonRaw canActionControlInProject ("EditPackageLicence") OR canActionControl("MSMaintainer"), _
"External Reference:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
"MM_openVixIFrame('_wform_change_eref.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change External Reference')" %>
<%=Quick_Help("ExternalRef")%>
|
<%=pkgInfoHash.Item("pkg_eref")%>
|
<%End If%>
|
<%BuildEditButtonRaw objAccessControl.UserLogedIn() AND NOT pkgInfoHash.Item("is_sdkpkg"),_
"Build Owner:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
"MM_openVixIFrame('_wform_change_owner.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change Owner')" %>
<%=Quick_Help("BuildOwner")%>
|
<%=emailField(pkgInfoHash.Item ("owner"),pkgInfoHash.Item ("owner_email"))%> |
| Created: |
<%=DisplayDateTimeSecs(pkgInfoHash.Item ("created_stamp"))&" by "& emailField(pkgInfoHash.Item ("creator"),pkgInfoHash.Item ("creator_email"))%>
|
<%
' Last Modified:
%>
| Last Modified: |
<%=DisplayDateTimeSecs(pkgInfoHash.Item ("modified_stamp"))&" by "& emailField(pkgInfoHash.Item ("modifier"),pkgInfoHash.Item ("modifier_email"))%>
|
<%
' Added to Release
If IsNull(pkgInfoHash.Item ("is_patch")) AND (Request("rtag_id") <> "") AND (pkgInfoHash.Item ("insertor") <> "") Then
%>
| Added to Release: |
<%=DisplayDateTimeSecs(pkgInfoHash.Item ("insert_stamp")) &" by "& emailField(pkgInfoHash.Item ("insertor"),pkgInfoHash.Item ("insertor_email"))%>
|
<%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") ) )%>
<%If (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) AND pkgInfoHash.Item ("build_type") = "A" Then%>
[Requires Manual Build]
<%End If%>
|
|
| 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 OR vcsInfoCollector.Item("vcs_tag") = enum_VCS_GIT_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%>
|
<%BuildEditButtonRaw (pkgInfoHash.Item("can_edit_in_project") = "1") AND (objAccessControl.UserLogedIn) AND (canActionInProject()) AND pkgInfoHash.Item("base_view_id") <> "",_
"Base View:", "Edit", False, "src='images/i_edit.gif' width='12' height='12' border='0' align='absmiddle'",_
"MM_openVixIFrame('_wform_change_group.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Set Package Base View')" %><%=Quick_Help("baseView")%>
|
<% Dim CleanView : CleanView = pkgInfoHash.Item("view_name")
If CleanView = "" Then CleanView = "N/A"
If pkgInfoHash.Item("release_view_name") <> "" AND pkgInfoHash.Item("view_name") <> pkgInfoHash.Item("release_view_name") Then
Response.Write "[" & pkgInfoHash.Item("release_view_name") & "] "
End If
Response.Write CleanView
%>
|
| Following:<%=Quick_Help("following")%> |
<%=GetFollowing()%> |
| 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"
If pkgInfoHash.Item("build_type") = "A" Then
Response.write " [Must be specified for an automated build]"
End If
Response.write "
| "
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)
If currG1 <> CInt(rsTemp("bm_id")) Then%>
|
<%=rsTemp("bm_name")%> <%=GetBuildType( rsTemp("bsa_id"),rsTemp("bsa_name") )%>
|
<%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)
Dim PrevVerTitle : PrevVerTitle = "Previous Version:"
' Previous Versions
If pkgInfoHash.Item ("pkg_count") = 1 AND pkgInfoHash.Item ("dlocked") = "N" Then
Call DisplayVersionRow(NULL, PrevVerTitle, "PreviousVcsTag")
Call DisplayCreationCommands()
ElseIf IsNull(pkgInfoHash.Item ("is_patch")) Then
If canActionControlInProject("ChangePreviousVersion") AND NOT pkgInfoHash.Item("is_sdkpkg") Then
sonclick="MM_openVixIFrame('_wform_change_previous_version.asp?rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &"','Change Previous Version')"
PrevVerTitle = " " & PrevVerTitle & "
"
Else
PrevVerTitle = PrevVerTitle & "
"
End If
Call DisplayVersionRow(pkgInfoHash.Item ("last_pv_id"), PrevVerTitle, "PreviousVcsTag")
Dim iLastSignificantPVID
Dim iRippleBasePVID
Call getLastSignificantVersions(pkgInfoHash.Item("pv_id"), iRippleBasePVID, iLastSignificantPVID)
Call DisplayVersionRow(iRippleBasePVID, "Previous NonRipple Version:", "PreviousNonRippleVcsTag")
Call DisplayVersionRow(iLastSignificantPVID, "Previous Significant Version:", "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, sBcClass
prevVcsTag = Get_Pkg_Vcs_Tag(iLastSignificantPVID)
curVcsTag = Get_Pkg_Vcs_Tag(parPv_id)
sBcCmd = ""
sBcClass = ""
If pkgInfoHash.Item ("pkg_count") = 1 Then
sBcCmd = "No prior version compare against"
ElseIf (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
sBcClass = "clip"
End If
sBcCmd = NewLine_To_BR( To_HTML (sBcCmd) )
%>
| 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
%>