Track changes to rows

Bug #159108 reported by brettatoms
2
Affects Status Importance Assigned to Milestone
Bauble
Triaged
Wishlist
Unassigned

Bug Description

Implement some sort of versioning for rows to keep a history of any changes.

See http://sqlobject.org/Versioning.html and related code for ideas.

brettatoms (brettatoms)
Changed in bauble:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
brettatoms (brettatoms) wrote :
brettatoms (brettatoms)
Changed in bauble:
milestone: none → 0.9.0
Revision history for this message
brettatoms (brettatoms) wrote :

Basically the idea is to implement our own MapperExtension that will log the changes after they have been committed to the database. The important part is that we don't miss any changes. We could need to check that every changed attribute on the mapper passed to the MapperExtension is recorded either as changes on a particular row on a particular table.

Also, we can't forget to record the user name of the person that made the change.

Revision history for this message
brettatoms (brettatoms) wrote :

Should also create some sort of view, maybe with the command :changes that would show a history of all the changes made in order of the change.

Providing a way to rollback to a certain date would be nice but I wouldn't consider it a priority.

Revision history for this message
brettatoms (brettatoms) wrote :

The one problem is that some changes could be missed if the changes aren't made withed the mapped object, i.e. are done directly via insert statements. This can cause temporal "jumps" causing some changes not to show up.

Realistically, changes are pretty much always made using mapped objects unless we're doing and import and then we probably wouldn't want to record every import anyway.

Revision history for this message
brettatoms (brettatoms) wrote :
Changed in bauble:
importance: Wishlist → Undecided
brettatoms (brettatoms)
Changed in bauble:
milestone: 0.9.0 → none
importance: Undecided → Wishlist
Revision history for this message
brettatoms (brettatoms) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.