Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
129 ghuddy 5
'|                    FIXED ISSUES                   |
119 ghuddy 6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
129 ghuddy 12
Response.Expires = 0   ' always load the page, dont store
119 ghuddy 13
%>
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/common_dbedit.asp"-->
20
<!--#include file="_tabs.asp"-->
21
<!--#include file="_action_buttons.asp"-->
22
<!--#include file="common/_package_common.asp"-->
23
<%
24
'------------ ACCESS CONTROL ------------------
25
%>
6181 dpurdie 26
<!--#include file="_access_control_login_optional.asp"-->
119 ghuddy 27
<!--#include file="_access_control_general.asp"-->
28
<%
29
'------------ Variable Definition -------------
30
Dim pageIsEditable
31
Dim sectionIsEditable
32
Dim criticalSectionIsEditable
5472 dpurdie 33
Dim showPrevVerLinks : showPrevVerLinks = TRUE 
119 ghuddy 34
'------------ Constants Declaration -----------
35
'------------ Variable Init -------------------
36
'----------------------------------------------
37
'-----------------------------------------------------------------------------------------------------------------
38
Sub fillCommentsWithDifferences ( parPv_id )
129 ghuddy 39
   DIM outputString
40
   DIM rsTemp
119 ghuddy 41
 
129 ghuddy 42
   If pkgInfoHash.Item("comments") = "" or isnull(pkgInfoHash.Item("comments")) Then
119 ghuddy 43
 
129 ghuddy 44
      OraDatabase.Parameters.Add "PV_ID", parPv_id,    ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 45
 
129 ghuddy 46
      If (pkgInfoHash.Item ("last_pv_id") = "") OR IsNull(pkgInfoHash.Item ("last_pv_id")) Then
47
         OraDatabase.Parameters.Add "OLD_PV_ID",    0,    ORAPARM_INPUT, ORATYPE_NUMBER
48
      Else
49
         OraDatabase.Parameters.Add "OLD_PV_ID",    pkgInfoHash.Item ("last_pv_id"),    ORAPARM_INPUT, ORATYPE_NUMBER
50
      End If
51
 
52
      Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery ( "diff_dependencies.sql" ), cint(0))
53
      Dim style, icon
54
 
55
      While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
56
 
57
         Select Case CInt(rsTemp("status"))
58
         Case enumDB_NUM_DIFF_UPDATED
59
            outputString = outputString & "[UPDATED] " & rsTemp("pkg_name") &" to "& rsTemp("pkg_version") &" ("& rsTemp("previous_version") &")"& VBNewLine
60
 
61
            Case enumDB_NUM_DIFF_NEW
62
            outputString = outputString & "[NEW] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLine
63
 
64
         Case enumDB_NUM_DIFF_REMOVED
65
            outputString = outputString & "[REMOVED] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLine
66
 
67
         End Select
68
 
69
            rsTemp.MoveNext
70
      WEnd
71
 
72
      ' An error occured when outputString was longer than 4000 bytes, so this truncates it and adds "..."
73
      If LenB(outputString) > 4000 Then
74
         outputString = Left(outputString, 3995)
75
         outputString = Left(outputString, InStrRev(outputString, vbNewLine)) & vbNewLine & "..."
76
      End If
77
 
78
      objEH.TryORA ( OraSession )
79
      On Error Resume Next
80
 
81
      OraDatabase.ExecuteSQL _
82
      " UPDATE PACKAGE_VERSIONS"&_
83
      " SET COMMENTS = '"& outputString &"'"&_
84
      " WHERE PV_ID = :PV_ID "
85
 
86
      objEH.CatchORA ( OraSession )
87
 
88
      pkgInfoHash.Item("comments") = outputString
89
 
90
      rsTemp.Close
91
      Set rsTemp = nothing
92
 
93
      OraDatabase.Parameters.Remove "PV_ID"
94
      OraDatabase.Parameters.Remove "OLD_PV_ID"
95
   End If
119 ghuddy 96
End Sub
97
'-----------------------------------------------------------------------------------------------------------------
98
 
99
 
100
'------------------ MAIN LINE --------------------
101
pageIsEditable = Is_Page_Editable ( pkgInfoHash.Item ("dlocked") )
102
sectionIsEditable = Is_Section_Editable ()
103
criticalSectionIsEditable = Is_Critical_Section_Editable ( pkgInfoHash.Item ("dlocked") )
104
'-------------------------------------------------
105
 
4042 dpurdie 106
 
107
If (Request("resetNotes") = "1") AND (parPv_id <> "") Then
108
   objEH.TryORA ( OraSession )
109
   On Error Resume Next
110
   OraDatabase.ExecuteSQL " UPDATE package_versions "&_
111
                          " SET release_notes_info = '"& enum_RELEASE_NOTES_NOT_FOUND_IN_ARCHIVE &"'"&_
112
                          " ,modified_stamp = systimestamp" &_
113
                          " ,modifier_id = " & objAccessControl.UserId &_
114
                          " WHERE pv_id = "& parPv_id
115
   objEH.CatchORA ( OraSession )
116
 
117
   ' Really need to log an action too
118
 
119
   ' Really I just want to get rid of the resetNotes bit.
5957 dpurdie 120
   Call Destroy_All_Objects
4042 dpurdie 121
   Response.Redirect ("fixed_issues.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id)
122
End If
123
 
119 ghuddy 124
%>
125
<html>
126
<title><%=Title(Request("rtag_id"))%></title>
5357 dpurdie 127
<link rel="shortcut icon" href="<%=FavIcon%>"/>
119 ghuddy 128
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
129
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 130
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
131
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
132
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
133
<script language="JavaScript" src="scripts/remote_scripting.js?ver=<%=VixVerNum%>"></script>
5085 dpurdie 134
<!--#include file="_jquery_includes.asp"-->
119 ghuddy 135
<!-- TIPS -->
6579 dpurdie 136
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
137
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
119 ghuddy 138
<!-- DROPDOWN MENUS -->
139
<!--#include file="_menu_def.asp"-->
6579 dpurdie 140
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
7286 dpurdie 141
<script type="application/javascript" src="jquery/iframeResizer.min.js?ver=<%=VixVerNum%>"></script>
119 ghuddy 142
</head>
143
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
144
<!-- HEADER -->
145
<!--#include file="_header.asp"-->
146
<!-- BODY ---->
147
<table width="100%" border="0" cellspacing="0" cellpadding="0">
129 ghuddy 148
   <tr>
6876 dpurdie 149
      <td class='bg_bage'>
129 ghuddy 150
      <!-- LEFT -->
151
      <!--#include file="_environment.asp"-->
152
      </td>
153
      <td width="1" bgcolor="#999999"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
154
      <td valign="top" width="100%">
155
      <!-- MIDDLE -->
156
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
157
        <tr>
6877 dpurdie 158
          <td width='1%' class='bg_dialog'><IMG height=35 src="images/spacer.gif" width=15></td>
159
          <td width='100%' class='bg_dialog'><%Call RenderActionBar(parRtag_id,parPv_id)%></td>
160
          <td width='1%' class='bg_dialog'><IMG height=1 src="images/spacer.gif" width=15></td>
129 ghuddy 161
        </tr>
162
        <tr>
183 brianf 163
          <td background="images/bg_lght_gray.gif"><IMG height="45" src="images/spacer.gif" width=1></td>
164
          <td background="images/bg_lght_gray.gif"><%Call RenderStatus(parRtag_id,parPv_id)%></td>
129 ghuddy 165
          <td background="images/bg_lght_gray.gif">&nbsp;</td>
183 brianf 166
        </tr>
167
        <tr>
168
          <td background="images/bg_lght_gray.gif">&nbsp;</td>
129 ghuddy 169
          <td valign="bottom" background="images/bg_lght_gray.gif">
6873 dpurdie 170
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
129 ghuddy 171
              <tr>
4687 dpurdie 172
                <td><IMG height="1" src="images/spacer.gif" width="0" alt="tab-left-margin" ></td>
129 ghuddy 173
                <td>
174
              <!-- TABS ------------------------------------->
175
              <%Call Generate_Tab_Menu ( TABarray1, "Release Notes", "orange" )%>
176
              </td>
177
              </tr>
178
            </table>
179
          </td>
180
          <td background="images/bg_lght_gray.gif">&nbsp;</td>
181
        </tr>
6876 dpurdie 182
        <tr class='bg_panel' style="height:35px;">
6873 dpurdie 183
          <td></td>
184
          <td>
185
          <!-- TAB ACTION BUTTONS ------------------------------------->
186
          <%Call Action_Buttons ( "Release Notes" )%>
187
          </td>
188
          <td></td>
129 ghuddy 189
        </tr>
190
        <tr>
191
          <td></td>
192
          <td valign="top">
193
         <!-- DETAILS ------------------------------------------------->
194
         <br>
195
         <%
196
         If (pkgInfoHash.Item ("dlocked") = "Y") Then
197
            If (InStr(pkgInfoHash.Item ("release_notes_info"),"MSG:") > 0) Then
198
               Select Case CStr( pkgInfoHash.Item ("release_notes_info") )
199
               Case enum_RELEASE_NOTES_GENERATING
200
                  Call DisplayInfo ( "GENERATING_RELEASE_NOTES", "400" )
201
               Case enum_RELEASE_NOTES_NOT_FOUND_IN_ARCHIVE
202
                  Call DisplayInfo ( "NOT_FOUND_IN_PKG_ARCHIVE_RELEASE_NOTES", "400" )
203
               Case enum_RELEASE_NOTES_FAILED
204
                  Call DisplayInfo ( "FAILED_GENERATING_RELEASE_NOTES", "400" )
205
               Case enum_RELEASE_NOTES_NO_PREVIOUS_VERSION
206
                  Call DisplayInfo ( "NO_PREVIOUS_VERSION_RELEASE_NOTES", "400" )
4705 dpurdie 207
               Case enum_RELEASE_NOTES_PLACEHOLDER_PACKAGE
208
                  Call DisplayInfo ( "RELEASE_NOTES_PLACEHOLDER_PACKAGE", "400" )
129 ghuddy 209
               End Select
210
            End If
211
         Else
212
            Call fillCommentsWithDifferences ( parPv_id )
213
         End If
214
         %>
215
         <!--#include file="_release_notes.asp"-->
216
         <!-- END DETAILS ------------------------------------------------->
217
         </td>
218
          <td>&nbsp;</td>
219
        </tr>
220
      </table>
221
      <!-- END MIDDLE -------->
222
      </td>
223
   </tr>
119 ghuddy 224
</table>
225
<!-- FOOTER -->
226
<!--#include file="_footer.asp"-->
227
</body>
228
</html>