Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

(Nice-to-have) Transaction Log #87

Open
Jimmy-Lin opened this issue Apr 28, 2018 · 0 comments
Open

(Nice-to-have) Transaction Log #87

Jimmy-Lin opened this issue Apr 28, 2018 · 0 comments

Comments

@Jimmy-Lin
Copy link
Contributor

Jimmy-Lin commented Apr 28, 2018

For tracing user misconduct, most applications should have a log of every state-change to their data.

The most basic design would be a table containing columns identifying:

  • The datetime of the transaction
  • The user making the transaction
  • The table being modified
  • The column being modified
  • The old value before transaction
  • The new value after transaction
  • A transaction ID (grouping multiple column changes into a single action)
  • A brief comment specifying the reason/purpose behind the transaction

Admins and moderators should be able to list and perform queries on this table. This table will become massive so be careful what kind of queries you expose through the API.

Creating records on this table should be "implicit" as in it should be triggered by other user activity, checking before and after the activity so that you can observe and record any change resulted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant