Elsasoft Forums
Elsasoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SqlSpec
 Feature requests
 HistoryLog Element Enhancement
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

JohnMarsing
Starting Member

28 Posts

Posted - Feb 28 2007 :  08:08:33 AM  Show Profile  Reply with Quote
For the Bug element found withing the HistoryLog, how about more options like "Initial Creation", "Enhancement", "Refactor". The thinking is that all changes to a stored procedure for example are not always going to be bugs. I don't know how complicated this change would be, but I would think if they were incorporated, that they should be mutually exclusive

Thanks,

John


John Marsing

Jesse
Forum Admin

729 Posts

Posted - Mar 01 2007 :  3:07:03 PM  Show Profile  Reply with Quote
Actually you can put any text you like in the bug attribute, it doesn't have to be a bug number.

also you can put any text you like as the child of the actual log element. For that matter, you can put whatever you like in any of the elements.

Example:


<historylog>
  <log revision="1.0 (initial creation)" date="08/18/2003" bug="none" email="jesse">Created</log>
  <log revision="1.1 (bug fix)" date="09/19/2003" bug="420247" email="jesse">fixed bug 420247</log>
  <log revision="1.2 (refactor)" date="10/19/2003 (someone's birthday!)" bug="none" email="jesse">refactoring, adding some new features</log>
</historylog>


would this meet your requirement?

Jesse
Go to Top of Page

Gaz
Starting Member

11 Posts

Posted - Mar 02 2007 :  07:37:21 AM  Show Profile  Reply with Quote
I've Implemented SqlSpec for a client - they love how the historylog block appears as a nicely formatted table. They've asked whether they can create their own columns to appear in there. For example...

<historylog>
  <log weather="cloudy" revision="1.0" date="08/18/2003" bug="none" email="jesse">Created</log>
  <log weather="rainy" revision="1.1" date="09/19/2003" bug="420247" email="jesse">fixed bug 420247</log>
  <log weather="damp" revision="1.2" date="10/19/2003" bug="none" email="jesse">adding some new features</log>
</historylog>

Can you tell from the weather I live in the UK!

Edited by - Gaz on Mar 02 2007 07:42:26 AM
Go to Top of Page

Jesse
Forum Admin

729 Posts

Posted - Mar 03 2007 :  2:16:54 PM  Show Profile  Reply with Quote
Gaz, I implemented this, look for it in v3.5.2.

The only restriction is that I use the first <log> element to find out which extra attributes you are adding. that means if you use the following xml I won't show a "weather" column in the docs (because it's missing from the first log element):


<historylog>
  <log revision="1.0" date="08/18/2003" bug="none" email="jesse">Created</log>
  <log weather="rainy" revision="1.1" date="09/19/2003" bug="420247" email="jesse">fixed bug 420247</log>
  <log weather="damp" revision="1.2" date="10/19/2003" bug="none" email="jesse">adding some new features</log>
</historylog>


make sense?

Other than that you are free to add as many attributes as you like to each of the <log> elements, and they will show up in the docs.
Go to Top of Page

JohnMarsing
Starting Member

28 Posts

Posted - Mar 05 2007 :  12:14:34 PM  Show Profile  Reply with Quote
Here is an output example of what I was thinking about...

History
revision date contact Log Type comment
1.0 2006/06/07 Developer1@AmcoCo.com Initial Creation
1.1 2007/02/27 Developer2@AmcoCo.com Refactor=7 Removed depencency from NSLive database
1.1 2007/02/27 Developer2@AmcoCo.com Bug=9 Replaced Drop with Truncate, so depencencies will be tracked
1.2 2007/02/27 Developer2@AmcoCo.com Enhancement=1 Enforce Business rule 31: Allow re-use of Div code 300



John Marsing

Edited by - JohnMarsing on Mar 05 2007 12:17:18 PM
Go to Top of Page

Jesse
Forum Admin

729 Posts

Posted - Mar 05 2007 :  8:10:47 PM  Show Profile  Reply with Quote
You can do that with the new feature I added for Gaz if you add just one extra attribute per <log> element: LogType.

eg:


<historylog>
  <log LogType="Refactor" revision="1.0" date="08/18/2003" email="jesse">Created</log>
  <log LogType="Bug" revision="1.1" date="09/19/2003" bug="420247" email="jesse">fixed bug 420247</log>
  <log LogType="Enhancement" revision="1.2" date="10/19/2003" email="jesse">adding some new features</log>
</historylog>


download the latest build and try it out, lemme know how it goes. This was implemented in v3.5.2.

Jesse
Go to Top of Page

chris
Starting Member

4 Posts

Posted - Mar 16 2007 :  03:38:15 AM  Show Profile  Reply with Quote
Hi Jesse,
Following the changes in the HistoryLog track.

Is it possible not to have defaults in there. I would like to see all my own headings, and not headings like Bug or Contact.

Eg

--<log revision="" date="17-FEB-2003" Project_Number="01234" Changed_By="fbloggs">Initial Version</log>

This does output the headings that I've added but I still get the Bug and Contact ones aswell
Go to Top of Page

Jesse
Forum Admin

729 Posts

Posted - Mar 16 2007 :  08:12:51 AM  Show Profile  Reply with Quote
That's easily done. I'll post back here when it's done.

Jesse
Go to Top of Page

Jesse
Forum Admin

729 Posts

Posted - Apr 17 2007 :  06:38:18 AM  Show Profile  Reply with Quote
This is in the current build.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Elsasoft Forums © Elsasoft LLC Go To Top Of Page
Snitz Forums 2000