Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Tracking Revisions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steve Bryant  
View profile  
 More options Jun 23 2011, 12:47 pm
From: Steve Bryant <sebto...@gmail.com>
Date: Thu, 23 Jun 2011 09:47:35 -0700 (PDT)
Local: Thurs, Jun 23 2011 12:47 pm
Subject: Tracking Revisions
I have been thinking about a new feature for DataMgr for a while and
wanted to see if any smart people had any thoughts on how it should
work (or if it makes sense).

I want to be able to keep track of every revision made on a table.
This would be useful for logging as well as for reverting to a
previous state for a record.

I am thinking that it would have an optional "versions" attribute in
the XML and an optional method to tell DataMgr to use versioning on a
table if you aren't using loadXml(). You could also optionally tell it
the name of the table in which DataMgr should store the revision
information.

Then it would create a new record in this table every time that you
add or edit a record.

Assuming that all makes sense, does it make sense to also add
method(s) to help restore a record to its previous state? What about
method(s) to see all of the revisions made on a table?

What about an initialization method that tells DataMgr to track
revisions on all tables?

Any thoughts?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim DeMoss  
View profile  
 More options Jul 11 2011, 1:55 pm
From: Tim DeMoss <tdem...@gmail.com>
Date: Mon, 11 Jul 2011 11:55:44 -0600
Local: Mon, Jul 11 2011 1:55 pm
Subject: Re: [DataMgr] Tracking Revisions

I like every one of these ideas. Especially since this continues to be a
request from clients. Right now, I can think of a few other flourishes it
might be nice to see.

Limit the number of records to keep DB size under control. Perhaps there
could be more than one way to set the limit:

   - Keep for X days/weeks/months/years
   - Keep only the last X records

Regarding viewing all revisions for a table, it would be nice to be able to
pass in some filters on that. For example, only show me revisions where
field X meets criterion Y. That would be useful when viewing revisions to a
particular record (filter by ID).

In addition to restoration to previous state, how about restore to a
particular state regardless of whether it was the immediately previous one?
If one was viewing all revisions to RecordID = X, then perhaps you could
choose (via radio button?) the version you wish to restore.

Will pass along other thoughts as they occur to me.

tdm

Tim DeMoss
303-747-5610

"Having received a human life, do not waste the passing moments."
         -- Dogen Zenji


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Bryant  
View profile  
 More options Jul 12 2011, 9:36 am
From: Steve Bryant <sebto...@gmail.com>
Date: Tue, 12 Jul 2011 08:36:01 -0500
Local: Tues, Jul 12 2011 9:36 am
Subject: Re: [DataMgr] Tracking Revisions
I hadn't thought about limiting the amount of data in the revisions
table(s). On one hand, that should be easy to add an attribute to
specify that. On the other hand, I am not sure when the deletions
should take place. I suppose it would have to run a delete SQL
statement every time that it added a record (or at least check if one
should be run every time). I think it could track the last time it did
it and only run the SQL if it hadn't been run in X # of inserts or X #
of day (depending on whether the limit was in time or in records).

Yeah, I was definitely thinking that restoring should be to a specific
revision and not necessarily just to the previous state.

I *think* it should be easy to have DataMgr retrieve records from a
revisions table just like it would from a normal one. I'm not sure if
it should be allowed to modify it directly, however.

Thanks,

Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »