PulseInfoframe/Healthie — Issue #4: Track Changes
Author: JesseObrien
Created: 2012-01-06 17:26:25+00:00
State: open
Labels: feature

# Proposed Track Changes Feature

Essentially being able to track the changes of a form over time. The mechanism would work via observers on each model that would update a shadow table representing a copy of the current table the data is being committed into.

**Pros:**
* Being able to show who was modifying what forms and what data they changed.

**Cons:**
* Large amounts of extra metadata about a site.

**Config:**
Allow the user to set how many entries are tracked for each table.

**Pseudocode:**
* On update, or create
* Grab the row with the id and commit it to the shadow table with the new timestamp. This will keep a running log of every update from the creation date forward.
* On delete, or soft delete
* Cascade delete or soft delete through the shadow table