Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2004_05_16.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: May 16, 2004 - May 22, 2004 Archives</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/week_2004_05_09.html" title="May  9, 2004 - May 15, 2004" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2004_05_23.html" title="May 23, 2004 - May 29, 2004" />
17 </head>
18 <body class="layout-one-column">
19    <div id="container">
20       <div id="container-inner" class="pkg">
21
22          <div id="banner">
23             <div id="banner-inner" class="pkg">
24                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
25                <h2 id="banner-description">Searchable status reports and work log</h2>
26             </div>
27          </div>
28
29          <div id="pagebody">
30             <div id="pagebody-inner" class="pkg">
31                <div id="alpha">
32                   <div id="alpha-inner" class="pkg">
33                      
34                      <p class="content-nav">
35                         <a href="http://defaria.com/blogs/Status/archives/week_2004_05_09.html">&laquo; May  9, 2004 - May 15, 2004</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2004_05_23.html">May 23, 2004 - May 29, 2004 &raquo;</a>
38                      </p>
39                      
40                      
41                      
42
43                      <h2 class="date-header">May 21, 2004</h2>
44                      <a id="a000186"></a>
45                      <div class="entry" id="entry-186">
46                         <h3 class="entry-header">tail/trigger</h3>
47                         <div class="entry-content">
48                            <div class="entry-body">
49                               <ul>
50
51 <li>Worked on implementing tail</li>
52
53 <li>Worked with Sujay a bit on the ASAP_BUS_REQ trigger. Need to get a testign environment</li>
54
55 </ul>
56                               
57                               <p class="entry-footer">
58                                  <span class="post-footers">Posted by  at  6:22 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000186.html">Permalink</a>
59                                  
60                                  
61                               </p>
62                            </div>
63                         </div>
64                      </div>
65                      
66                      
67
68                      <h2 class="date-header">May 20, 2004</h2>
69                      <a id="a000185"></a>
70                      <div class="entry" id="entry-185">
71                         <h3 class="entry-header">BUCS</h3>
72                         <div class="entry-content">
73                            <div class="entry-body">
74                               <ul>
75
76 <p><li>Attended a few meetings which took up my time</li></p>
77
78 <p><li>Worked about 2 1/2 hours on rmelem'ing some files for BUCS</li></p>
79
80 <p><li>Added installation of TUP to install script for CCADMIN. Need to propogate this to the other install scripts. Involved adding stuff to HKLM RunOnce for TUP install</li></p>
81
82 </ul>
83                               
84                               <p class="entry-footer">
85                                  <span class="post-footers">Posted by  at  5:28 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000185.html">Permalink</a>
86                                  
87                                  
88                               </p>
89                            </div>
90                         </div>
91                      </div>
92                      
93                      
94
95                      <h2 class="date-header">May 19, 2004</h2>
96                      <a id="a000184"></a>
97                      <div class="entry" id="entry-184">
98                         <h3 class="entry-header">Diff Problem/Ant Build</h3>
99                         <div class="entry-content">
100                            <div class="entry-body">
101                               <ul>
102
103 <li>Worked a little on the problem with Core_automation and diff</li>
104
105 <li>Installed Ant and JDK into CM_TOOLS and performed a build of ASAP_Infrastructure!</li>
106
107 <li>Performed code review of <a href="/eviltwin.php">INHIBIT_DUPLICATE_ELE</a></li>
108
109 </ul>
110                               
111                               <p class="entry-footer">
112                                  <span class="post-footers">Posted by  at  6:19 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000184.html">Permalink</a>
113                                  
114                                  
115                               </p>
116                            </div>
117                         </div>
118                      </div>
119                      
120                      
121
122                      <h2 class="date-header">May 18, 2004</h2>
123                      <a id="a000183"></a>
124                      <div class="entry" id="entry-183">
125                         <h3 class="entry-header">LogActivity/ASAP & ASAP_BUS_REQ/.reg files</h3>
126                         <div class="entry-content">
127                            <div class="entry-body">
128                               <ul>
129
130 <p><li>Wrote LogActivity trigger which will log activity to an HTML log file. It requires one parameter, the path to where to put the log file. Thereafter it writes log files of the format <vob name>_yyyy-mm-dd.html.</li></p>
131
132 <p><li>Added LogActivity trigger to ASAP_Docs and ASAP_BUS_REQ vobs</li></p>
133
134 <p><li>Changed old ASAP_NOTIFY trigger to use the generic NotifyTrigger.pl script with a message file for ASAP and another one with a different message file for ASAP_BUS_REQ</li></p>
135
136 <p><li>Adjusted triggers.dat to reflect this</li></p>
137
138 <p><li>Modified etc/*.reg file to include Clearquest settings in an ASCII form</li></p>
139
140 </ul>
141                               
142                               <p class="entry-footer">
143                                  <span class="post-footers">Posted by  at  5:17 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000183.html">Permalink</a>
144                                  
145                                  
146                               </p>
147                            </div>
148                         </div>
149                      </div>
150                      
151                      
152
153                      <h2 class="date-header">May 17, 2004</h2>
154                      <a id="a000182"></a>
155                      <div class="entry" id="entry-182">
156                         <h3 class="entry-header">ASAP_NOTIFY/PMO view/Install Scripts</h3>
157                         <div class="entry-content">
158                            <div class="entry-body">
159                               <ul>
160
161 <li>Created new tools view named PMO</li>
162
163 <li>Installed ASAP_NOTIFY trigger</li>
164
165 <li>Created installation scripts</li>
166
167 </ul>
168
169                               
170                               <h3>PMO View</h3>
171
172 <p>The vobadm_tools_view recently had a problem. Originally it was created by Brian as a snapshot view and a dynamic view - not a recommended practice I'm sure. Anyways, I was not able to update it recently. It complained about CM_TOOLS not being a Clearcase object! I banged on it for a while and couldn't figured it out. Sensing an opportunity to shorten a pathname, I discussed this with Don and we decided to create a new snapshot view, on the real view server (rtnlprod02) with a shorter name. So I created the PMO snapshot view. This makes the path \\rtnlprod02\viewstore\PMO\CM_TOOLS\...</p>
173
174 <p>Note, I have already taken care of adjusting the triggers, mktriggers.pl, ccase_[un]lock_vobs.bat jobs and the task_registry.</p>
175
176 <h3>ASAP_NOTIFY Trigger</h3>
177
178 <p>Triggers are kept in the CM_TOOLS vob. Also there is a mktriggers.pl script whose responsibility is to add/replace all triggers to all vobs. It works off a data file and is a fairly flexible facility. Some triggers are applied to all vobs (e.g. PROTECT), some to base Clearcase vobs only (e.g. CHECK_COMMENT) and some to specific vobs (e.g. ASAP_NOTIFY). This script is designed to be run at any time and will reinstate the correct status of triggers in the vobs. It is very handy to have a script to set up your triggers. One place where this will be very useful is when we get to Multisiting things. Multisite will replicate the vobs but not their triggers. Multisite can be used to make a "backup region" which can be useful in disaster recovery. Being able to quickly reinstate your triggers in these cases if very valuable.</p>
179
180 <p>As for another trigger to log activity I see it going this way...</p>
181
182 <p>A vob activity trigger is a useful idea and it's conceivable that other projects might want such a facility. Being that the "log" is really an html file there are only 2 things that are needed: 1) a web server and it's URL and 2) writable space to put these html files. Additionally one might be concerned with managing this space (trimming/removing log files over time) and perhaps presenting an interface into this history.</p>
183
184 <p>I think a trigger should be developed or culled out of the current trigger, which performs two distinct tasks, generalized and made available for the ASAP_Docs vob and other vobs as the vob owners require. This trigger can be implemented as an "all element" trigger (covering the whole vob) or just a trigger that can be attached as we have done for 03_Design. Being generalized more information must be written into the log (html) file to distinguish the elements more precisely. These are the vob name (e.g. ASAP_Src) and the path into the vob (e.g. ASAP\Include) (If we keep on logfile per vob then the vob name can stay promoted in the heading).</p>
185
186 <p>So the table entry would change from:</p>
187
188 <h2>Elements modified in \ASAP_Docs on 05-17-2004</h2>
189
190     <table border=1 cellspacing=0 cellpadding=2>
191       <tr bgcolor="#c0c0c0" align="center" nowrap>
192         <th>User Name</th>
193         <th>Element Type</th>
194         <th>Element Name</th>
195         <th>Element version</td>
196         <th>Comment</th>
197       </tr>
198       <tr>
199         <td>ss046959</td>
200         <td>ms_word</td>
201         <td>ASAP_modelnotes_1.doc</td>
202         <td>\main\dev\2</td>
203         <td>checkout and check in test only. no modification of data</td>
204       </tr>
205 <tr>
206   <td>ss046959</td>
207   <td>directory</td>
208   <td>ASAP_Prototype_Documents</td>
209   <td>\main\dev\2</td>
210   <td>this is just a checkin check out test.testing the ccweb and the new trigge
211 r on this folder.no data was modified. </td>
212 </tr>
213 </table>
214
215 <p>To:</p>
216
217     <table border=1 cellspacing=0 cellpadding=2>
218       <tr bgcolor="#c0c0c0" align="center" nowrap>
219         <th>User</th>
220         <th>Type</th>
221         <th>Path</th>
222         <th>Name</th>
223         <th>Version</td>
224         <th>Comment</th>
225       </tr>
226       <tr>
227         <td>ss046959</td>
228         <td>ms_word</td>
229         <td>\03_Design\Conceptual Data Model\2004_04_15</td>
230         <td>ASAP_modelnotes_1.doc</td>
231         <td>\main\dev\2</td>
232         <td>checkout and check in test only. no modification of data</td>
233       </tr>
234 <tr>
235   <td>ss046959</td>
236   <td>directory</td>
237   <td>\03_Design\Prototypes</td>
238   <td>ASAP_Prototype_Documents</td>
239   <td>\main\dev\2</td>
240   <td>this is just a checkin check out test.testing the ccweb and the new trigge
241 r on this folder.no data was modified. </td>
242 </tr>
243 </table>
244
245 <p>This would not be that hard. The trigger would take one parameter, the path to the share to write the html files to (e.g. \\webapp01\Rational\asapcm\logs in the instant case).</p>
246
247 <p>If this trigger was created and implemented (and removed from the current trigger) then all that's left in the current trigger is the sending of email. This could be accomplished with the existing NotifyTrigger.pl and a data file such as:</p>
248
249 <pre>
250 From: Vobadm <vobadm@Ameriquest.net>
251 To: <***ADD EMAIL ADDRESSES HERE***>
252 Subject: $CLEARCASE_OP_KIND notification: $CLEARCASE_PN
253 --
254 This is a notification that a $CLEARCASE_OP_KIND has occurred:
255
256 Element:        $CLEARCASE_PN
257 Branch:         $CLEARCASE_BRTYPE
258 Operation:      $CLEARCASE_OP_KIND
259 User:           $CLEARCASE_USER
260 View:           $CLEARCASE_VIEW_TAG
261 Comments:
262
263 $CLEARCASE_COMMENT
264 </pre>
265
266 </p>To view historical information see http://ASAPCM.Ameriquest.net/logs</p>
267
268 <p>The trigger replaces $ENVIRONMENT_VARIABLE. We would just need to modify this data file to be From: ASAPAdmin@Ameriquest.net (and we really should hook up a real person to that email address), add the email addresses to the To line.</p>
269
270 <p>The URL http://ASAPCM.Ameriquest.net/logs is a directory so the web server will look for certain files such as index.html and index.cgi. An index.cgi script could be written that writes out a web page showing today's activity, complete with a little calendar with links to prior history.</p>
271
272 <blockquote><p>Actually, I'd recommend perhaps collapsing the modified/newelements by adding a column that simply says something like "Modified" or "Added". This way we don't have to deal separately with modified vs. newly added in index.cgi nor in any of the historical html logfile.</p></blockquote>
273
274 <p>This way the email message is simplified. The recipients get notification via email that something has changed with enough information to tell them the specific change. If they want to know about other things that changed recently they are pointed to one place to see the current data, with an easy way to scroll back through time.</p>
275
276 <p>Now I've done such little web apps on my domain (http://defaria.com) in Perl and PHP. Given a preference I'd prefer PHP. However http;//asapcm.ameriquest.net is running IIS and I have no idea of how to set up and run Perl/PHP on IIS.</p>
277
278                               
279                               <p class="entry-footer">
280                                  <span class="post-footers">Posted by  at  4:45 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000182.html">Permalink</a>
281                                  
282                                  
283                               </p>
284                            </div>
285                         </div>
286                      </div>
287                      
288                   </div>
289                </div>
290             </div>
291          </div>
292       </div>
293    </div>
294 </body>
295 </html>