Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Track record/document changes? [closed]

Tags:

meteor

It doesn't appear to be built-in to Meteor but is there an accepted way to track changes to a record/document? I can think of a number of ways to do this but am curious how others have accomplished this.

An example would be someone's location, if you wanted to track changes for a set period of time.

Thanks!

like image 385
Wilson Sheldon Avatar asked Jul 12 '13 17:07

Wilson Sheldon


1 Answers

I haven't tested this package yet but it seems to track revisions and give the ability to restore older versions. I'm going to test it out now.

https://github.com/todda00/meteor-collection-revisions

Update: I can confirm that this package works in Meteor 1.3. It makes a complete copy of the document of the edited Meteor collection and stores it as an array within the document under "revisions". You can then restore any previous version using the revisionId later on.

like image 169
phocks Avatar answered Oct 27 '22 12:10

phocks