mongoid-history
mongoid-history copied to clipboard
Multi-user non-linear history tracking, auditing, undo, redo for mongoid.
Hi ! As `version` field is a meta-field, I think this field's name should defaults to `_version`, the same way Mongoid adds its own meta-fields (`_id`, `_type`). I know this...
Currently suppose we have a trackable model like `Customer`. Then we have: ``` ruby @customer.history_tracks #=> returns criteria for tracker class ``` The problem is that many apps set `tracker_class_name`...
I propose that `track_create`, `_update`, and `_delete` should all be true by default. I believe this is the standard use case 80% of the time. Currently it's: ``` track_create: false,...
`track_history` should support an `:as` option which will control the alias of the `trackable` field. This is useful if you move/rename classes, you don't have to migrate your database data....
I have a use case to build a human-readable audit trail. I find the association chain syntax to be difficult to work with. I'd propose to combine `:modified`, `:action`, and...
I think a lot of the memoization (at least in Trackable class) should be removed. Given that Mongoid already caches queries, I don't think it actually reduces db hits, and...
My collection's version is 22 for example and I want to know what it looked like at version 5. Is there a inbuilt way to do that?
For example, say for a given model I only want to keep the last 100 revisions and discard the rest. Is this possible?