Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000476.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml" />
11
12    <title>Status for Andrew DeFaria: Several PQA Fixes</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/000475.html" title="Final PQA fixes" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000479.html" title="Finalizing pqamerge" />
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
29             <div id="banner-inner" class="pkg">
30                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31                <h2 id="banner-description">Searchable status reports and work log</h2>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000475.html">&laquo; Final PQA fixes</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000479.html">Finalizing pqamerge &raquo;</a>
44                      </p>
45
46                      <a id="a000476"></a>
47                      <div class="entry" id="entry-476">
48                         <h3 class="entry-header">Several PQA Fixes</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Added Exit Sub/Function to several validation and initialization functions in order to allow TransferState to work</li>
53
54   <li>Fixed some bugs with Fixed_In_SW_Version and OS values of "Novell 6 Pack Beta 3 ". Not sure how this got by before with the trailing space but it raised it's ugly head in TransferStates</li>
55
56   <li>Change pqamerge to treat the Submit state like the Assigned state</li>
57
58   <li>With implementation of ID equality, I have to constantly regenerate the database from scratch. Experienced some problems with this and had to change the schema by allowing admin to submit. This may have been a different problem in that I now need to subscribe all users and groups to Cont database and Upgrade the database each time I create it a new</li>
59
60   <li>Transitioning through states have reveal some fields that where not initially tranfered from the TO database. The fields missed were ResolvedBy, ResolveNote and VerifyNote</li>
61 </ul>
62                            </div>
63                            <div id="more" class="entry-more">
64                               <h2>Additional Schema Action Hook Changes</h2>
65
66 <p>In order to set State properly pqamerge needs to transition through states to get to the desired end state. For eample, many defects in Prod are in the Closed state. But when pqamerge first creates the defect in Cont it will be in the Assigned state. In order to get to the Closed state pqamerge need to apply the Resolve, Verify and Close actions. As such it triggers state change action hook code.</p>
67
68 <p>For example, in order to transition to the Verified state the Verify action must be applied. When the Verify action happens the action hooks for Verify are run. Part of what they do is initalize owner to blank. It is expected that the user exectuting the Verify action will fill that in. But that messes us up since we are not a person and we already have the "correct" data. Investigating this further reveals other places where, for example, the current date is put into a field such as Resolve_Date and calculations are made in other fields such TimeFromSubmitToResolve. We don't want any of that happening!</p>
69
70 <p>To resolve these issues the following Action Hooks have an Exit Sub or Exit Function placed at the beginning of the subroutine or function call so as to avoid the incorrect updating of data fields and so that email is not send out (the other thing many of these Action Hooks do):</p>
71
72 <ul>
73   <li>Submit: Validation</li>
74
75   <li>Assign: Notification</li>
76
77   <li>Resolve: Initialization; Validation; Notification</li>
78
79   <li>Verify: Initialization; Validation; Notification</li>
80
81   <li>Re-Open: Notification</li>
82
83   <li>Close: Initialization; Notification</li>
84
85   <li>Modify: Notification</li>
86
87   <li>Unassign: Notification</li>
88
89   <li>DoesNotVerify: Initialization; Validation; Notification</li>
90
91   <li>VerifiedPendingCustVerify: Notification</li>
92
93   <li>CustomerVerified: Notification</li>
94
95   <li>Data_Pending: Notification</li>
96 </ul>
97
98 <p>I should have just done all of them or perhaps tried to change the Actions table from use Basic script to script None but the above set seems to be working.</p>
99
100 <h2>Data Issue</h2>
101
102 <p>Ran the merge and now it's taking 6 hours 54 minutes 39 seconds. This is due to running through the various states to obtain the appropriate state and "burning" IDs so that the IDs match. One remaining problem that I don't know how to fix: Defect Prod00012546 is in the closed state yet lacks any VerifyNote. When transfered to Cont pqamerge tries to go through the states and gets stuck trying to transition this defect from Resolved -> Verify due to the lack of a VerifyNote. I do not know how this happened in the Prod database. The only thing I can think of is that somebody modified Prod00012546 <strong>after</strong> it passed the Verified state blanking out VerifyNote.</p>
103
104 <p>I'm running check_attachments now and I expect that to result is 0 differences in attachments.</p>
105
106 <div class="code"><pre>
107 vobadm@P4TEST /dev/d/PQA
108 $ cqperl W:/it_scm/adm/cq/check_attachments -v
109 Grand total (old): 2955822684
110 Grand total (new): 2955822684
111 </pre></div>
112
113
114                            </div>
115                         </div>
116                         <p class="entry-footer">
117                            <span class="post-footers">Posted by  on November 12, 2005 12:17 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000476.html">Permalink</a>
118                         </p>
119                      </div>
120
121                      
122
123                      
124                   </div>
125                </div>
126             </div>
127          </div>
128       </div>
129    </div>
130 </body>
131 </html>