Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2007_10_07.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: October  7, 2007 - October 13, 2007 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_2007_09_30.html" title="September 30, 2007 - October  6, 2007" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2007_10_14.html" title="October 14, 2007 - October 20, 2007" />
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_2007_09_30.html">&laquo; September 30, 2007 - October  6, 2007</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2007_10_14.html">October 14, 2007 - October 20, 2007 &raquo;</a>
38                      </p>
39                      
40                      
41                      <!--
42 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
43          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
44          xmlns:dc="http://purl.org/dc/elements/1.1/">
45 <rdf:Description
46     rdf:about="http://defaria.com/blogs/Status/archives/week_2007_10_07.html#entry-000688"
47     trackback:ping="http://defaria.com/mt/mt-tb.cgi/75"
48     dc:title="UCMWB enhancements/Helpdesk Tickets"
49     dc:identifier="http://defaria.com/blogs/Status/archives/week_2007_10_07.html#entry-000688"
50     dc:subject="General Dynamics"
51     dc:description=" Added CreateWOR button and hooked it so that we can now create WORs in UCMWB (from File: Create New WOR or the Create WOR toolbar button) Added multiselection to View browser Enhanced Delete View to be Delete View(s) and..."
52     dc:creator=""
53     dc:date="2007-10-12T17:25:07-06:00" />
54 </rdf:RDF>
55 -->
56
57
58                      <h2 class="date-header">October 12, 2007</h2>
59                      <a id="a000688"></a>
60                      <div class="entry" id="entry-688">
61                         <h3 class="entry-header">UCMWB enhancements/Helpdesk Tickets</h3>
62                         <div class="entry-content">
63                            <div class="entry-body">
64                               <ul>
65   <li>Added CreateWOR button and hooked it so that we can now create WORs in UCMWB (from <b>File: Create New WOR</b> or the Create WOR toolbar button)</li>
66
67   <li>Added multiselection to View browser</li>
68
69   <li>Enhanced Delete View to be Delete View(s) and to iterate over the selected views deleting them. Need to clean up the display of change sets and view private files when more than one view is selected.</li>
70
71   <li>Worked with Judy regarding <b>RANCQ00017440:</b> Update RanSimcello Switcher config spec for P4.0.24</li>
72
73   <li>Closed tickets:</li>
74
75     <ul>
76       <li><b>RANCQ00016665:</b> UEH Tools Based on 4.0.6 versus 4.0.24 Config Spec</li>
77
78       <li><b>RANCQ00016964:</b> RoseRT does not open</li>
79     </ul>
80 </ul>
81                               
82                               <p class="entry-footer">
83                                  <span class="post-footers">Posted by  at  5:25 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000688.html">Permalink</a>
84                                  
85                                  | <a href="http://defaria.com/blogs/Status/archives/000688.html#trackback">TrackBacks (0)</a>
86                               </p>
87                            </div>
88                         </div>
89                      </div>
90                      
91                      <!--
92 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
93          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
94          xmlns:dc="http://purl.org/dc/elements/1.1/">
95 <rdf:Description
96     rdf:about="http://defaria.com/blogs/Status/archives/week_2007_10_07.html#entry-000687"
97     trackback:ping="http://defaria.com/mt/mt-tb.cgi/74"
98     dc:title="cqtool"
99     dc:identifier="http://defaria.com/blogs/Status/archives/week_2007_10_07.html#entry-000687"
100     dc:subject="General Dynamics"
101     dc:description=" Sent cqtool out for code review..."
102     dc:creator=""
103     dc:date="2007-10-10T15:08:55-06:00" />
104 </rdf:RDF>
105 -->
106
107
108                      <h2 class="date-header">October 10, 2007</h2>
109                      <a id="a000687"></a>
110                      <div class="entry" id="entry-687">
111                         <h3 class="entry-header">cqtool</h3>
112                         <div class="entry-content">
113                            <div class="entry-body">
114                               <ul>
115   <li>Sent cqtool out for code review</li>
116 </ul>
117                               
118                               <h3>Introducing cqtool</h3>
119
120 <p>I have implemented a new script called cqtool. This is to replace
121 the unsupported /opt/rational/clearquest/bin/cqtool which is going
122 away as of Clearquest 7.0. UCMWB utilized IBM/Rational's cqtool to
123 perform certain actions. Additionally, as per Erik's RANCQ00014935
124 request to enhance UCMWB to be able to create child WORs a tool needed
125 to be developed to do that. So the new cqtool solves the following
126 issues:</p>
127
128 <ul>
129   <li>Provides a supported replacement for the following bits of UCMWB
130 functionality:</li>
131   <ul>
132     <li>Cloning of WORs (Right click: Continue work in Clone on a
133 closed non-orphan WOR)<br>
134     </li>
135     <li> Creation of Helpdesk tickets (Tools: Submit Helpdesk Request)</li>
136   </ul>
137   <li>Adds the following functionality:</li>
138   <ul>
139     <li>Allows for creation of new WORs</li>
140     <li>Allows for linking of parent WOR to child WOR</li>
141   </ul>
142 </ul>
143
144 <p>Additionally, with the create WOR functionality, UCMWB can offer
145 the ability to create a new, non parent/child WOR. Finally, as has
146 been stated, with this new cqtool we don't have to worry about
147 IBM/Rational's cqtool disappearing in CQ 7.0.</p>
148
149 <p>This is an involved process so I created this in a modularized
150 fashion thus several Perl modules are involved. As per Ken's mandate,
151 I am calling for a code review of what I have so far. Next I will hook
152 this into UCMWB.</p>
153
154 <p>So far I have a cqperl script called cqtool. It relies on several Perl
155 Modules, some of which I have added to Clearcase and our <i>standard
156 lib</i> directory already
157 (/cleartrig/ent/SNSD/muos/ccadm_tools/vobs/ranccadm/scripts/lib):</p>
158
159 <table align="center" border="1" cellpadding="2" cellspacing="0"
160  width="90%">
161   <tbody>
162     <tr>
163       <th bgcolor="#33ccff" valign="top">Module<br>
164       </th>
165       <th bgcolor="#33ccff" valign="top">Description<br>
166       </th>
167       <th bgcolor="#33ccff" valign="top">Location<br>
168       </th>
169     </tr>
170     <tr>
171       <td valign="top"><b>Display<br>
172       </b></td>
173       <td valign="top">Module for providing consistent output</td>
174       <td valign="top"><i>standard lib</i><br>
175       </td>
176     </tr>
177     <tr>
178       <td valign="top"><b>CQTool<br>
179       </b></td>
180       <td valign="top">Handles communications with Clearquest</td>
181       <td valign="top">~p6258c/adm/lib<br>
182       </td>
183     </tr>
184     <tr>
185       <td valign="top"><b>CreateWORUI</b></td>
186       <td valign="top">UI for CreateWOR</td>
187       <td valign="top">~p6258c/adm/lib</td>
188     </tr>
189     <tr>
190       <td valign="top"><b>CreateHelpDeskUI</b></td>
191       <td valign="top">UI for CreateHelpDesk</td>
192       <td valign="top">~p6258c/adm/lib</td>
193     </tr>
194     <tr>
195       <td valign="top"><b>Tk::MyText</b></td>
196       <td valign="top">Subclasses the Tk TextUndo<br>
197 widget. This is used for the description fields in both CreateWOR<br>
198 and CreateHelpDesk. The subclassing was necessary in order to<br>
199 provide for a modified callback that allows us to tell when the<br>
200 widget has text and thus can set the Submit button to active.</td>
201       <td valign="top">~p6258c/adm/lib</td>
202     </tr>
203   </tbody>
204 </table>
205
206 <p>Additionally there is a cqtool script itself which is a command
207 line interface/driver that was initially used to test the
208 functionality provided in the above modules. It has been oriented to
209 be the primary interface to this functionality. The thought is that
210 UCMWB will fire up cqtool in the background at start up and then, if
211 and when it's functionality is needed, UCMWB will feed commands to the
212 already running cqtool.</p>
213
214 <p>When run interactively, cqtool prompts for a command. It will also
215 read commands from $ARGV, execute them and exit. So, in a sense,
216 cqtool works like cleartool.</p>
217
218 <p>If you type help at the prompt the following is displayed:</p>
219
220 <div class=code><pre>
221 cqtool Version 0.9: Program to talk to Clearquest
222
223 Valid commands are:
224
225 createwor:                      Create a new WOR
226 createhd:                       Create a new Help Desk Ticket
227 clone &lt;wor&gt;                       Clones a WOR
228 link &lt;parent wor&gt; &lt;child wor&gt;       Link a parent WOR to a child
229 WOR
230 exit|quit:                      Exits cqtool
231 help:                           This display
232 usage:                          Displays command line usage
233 version:                        Displays version of cqtool
234 </pre></div>
235
236 <p>createwor and createhd both are Perl/Tk applications that interact
237 with Clearquest and display a GUI that obtains the necessary and
238 required fields to create a WOR or a Helpdesk ticket. Note, only the
239 bare minimum fields are available. IOW I didn't implement the whole UI
240 that Clearquest provides. Instead it's just enough to create the WOR
241 or Helpdesk ticket.</p>
242
243 <p>cqtool pays attention to a few environment variables:</p>
244
245 <dl>
246   <dt><b>CQ_DBSET</b></dt>
247
248     <dd>Set to the dbset name of the Clearquest database to work with.
249     For testing purposes set this to XTST3. Production would be
250     RANCQ</dd>
251
252   <dt><b>CQ_USER</b></dt>
253
254     <dd>Name of the user to log in as. By default $USER is used. For
255     testing purposes set this to "ccadm" (for the XTST3 database that
256     is)</dd>
257
258   <dt><b>CQ_PASSWORD</b></dt>
259
260     <dd>Set to the password for CQ_USER. For testing purposes set this
261     to "ccadm" (for the XTST3 database that is). If this is not set
262     then cqtool prompts for a password.</dd>
263 </dl>
264
265 <p>So then, with the proper environment variables set one can:</p>
266
267
268 <div class=code><pre>
269 $ cqtool help
270 cqtool Version 0.9: Program to talk to Clearquest
271
272 Valid commands are:
273
274 createwor:                      Create a new WOR
275 createhd:                       Create a new Help Desk Ticket
276 clone &lt;wor&gt;                       Clones a WOR
277 link &lt;parent wor&gt; &lt;child wor&gt;       Link a parent WOR to a child
278 WOR
279 exit|quit:                      Exits cqtool
280 help:                           This display
281 usage:                          Displays command line usage
282 version:                        Displays version of cqtool
283 </pre></div>
284
285 <p>or</p>
286
287 <div class=code><pre>
288 $ cqtool createwor
289 </pre></div>
290
291 <p>Oh, where is cqtool? Well for now it's in ~p6258c/adm/cq/cqtool
292 (libs in ~p6258c/adm/lib/*).</p>
293
294                               
295                               <p class="entry-footer">
296                                  <span class="post-footers">Posted by  at  3:08 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000687.html">Permalink</a>
297                                  
298                                  | <a href="http://defaria.com/blogs/Status/archives/000687.html#trackback">TrackBacks (0)</a>
299                               </p>
300                            </div>
301                         </div>
302                      </div>
303                      
304                      <!--
305 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
306          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
307          xmlns:dc="http://purl.org/dc/elements/1.1/">
308 <rdf:Description
309     rdf:about="http://defaria.com/blogs/Status/archives/week_2007_10_07.html#entry-000686"
310     trackback:ping="http://defaria.com/mt/mt-tb.cgi/73"
311     dc:title="cqtalk"
312     dc:identifier="http://defaria.com/blogs/Status/archives/week_2007_10_07.html#entry-000686"
313     dc:subject="General Dynamics"
314     dc:description=" Fixed issue with clone. Was core dumping cqperl. Should not be calling cloneWor unless the WOR is in a closed state. Changed code to check that the WOR is closed before attempting call to FireRecordScript for cloneWor. Resolved issues..."
315     dc:creator=""
316     dc:date="2007-10-09T19:14:26-06:00" />
317 </rdf:RDF>
318 -->
319
320
321                      <h2 class="date-header">October  9, 2007</h2>
322                      <a id="a000686"></a>
323                      <div class="entry" id="entry-686">
324                         <h3 class="entry-header">cqtalk</h3>
325                         <div class="entry-content">
326                            <div class="entry-body">
327                               <ul>
328   <li>Fixed issue with clone. Was core dumping cqperl. Should not be calling cloneWor unless the WOR is in a closed state. Changed code to check that the WOR is closed before attempting call to FireRecordScript for cloneWor.</li>
329
330   <li>Resolved issues with cqtalk's createwor and createhd Perl/Tk apps. They used to blow up when run a second time. Turns out you need to make sure you destroy and undef all global objects first.</li>
331
332   <li>Fixed issue with link option. Turns out that if we hit an error say getting an entity, because it was provided to use incorrectly (say typo), then even though we are using eval to trap this error, internal state of the session variable gets screwed up. The workaround is to re-establish the session by closing and re-opening the database. Time consuming but it works.</li>
333 </ul>
334                               
335                               <p class="entry-footer">
336                                  <span class="post-footers">Posted by  at  7:14 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000686.html">Permalink</a>
337                                  
338                                  | <a href="http://defaria.com/blogs/Status/archives/000686.html#trackback">TrackBacks (0)</a>
339                               </p>
340                            </div>
341                         </div>
342                      </div>
343                      
344                   </div>
345                </div>
346             </div>
347          </div>
348       </div>
349    </div>
350 </body>
351 </html>