mongoid-history icon indicating copy to clipboard operation
mongoid-history copied to clipboard

Multi-user non-linear history tracking, auditing, undo, redo for mongoid.

Results 48 mongoid-history issues
Sort by recently updated
recently updated
newest added

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...

feature request

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`...

feature request

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,...

feature request
discussion

`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....

feature request

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...

feature request

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...

feature request

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?

feature request
question

For example, say for a given model I only want to keep the last 100 revisions and discard the rest. Is this possible?

question