Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add log type #59

Open
gsf opened this issue Apr 30, 2015 · 5 comments
Open

Add log type #59

gsf opened this issue Apr 30, 2015 · 5 comments

Comments

@gsf
Copy link
Member

gsf commented Apr 30, 2015

Add log type with the following fields:

  • timestamp
  • user
  • action (created, updated, deleted)
  • itemId
  • diff

Log entries will be added with each item set and delete.

@gsf
Copy link
Member Author

gsf commented Apr 30, 2015

Consider using https://github.com/flitbit/diff for object diffing.

@gsf
Copy link
Member Author

gsf commented Apr 30, 2015

The diff should have "index": "no" in the mapping.

@gsf
Copy link
Member Author

gsf commented Apr 30, 2015

Diff should be from "after" to "before" to enable some kind of rollback. Otherwise, we should just save the "before" with each log entry. Either way, we're looking at a potential explosion in index size.

@gsf
Copy link
Member Author

gsf commented Apr 30, 2015

Also if we're diffing we need to consider updates to all related items as well.

@gsf
Copy link
Member Author

gsf commented May 1, 2015

Okay no diffs in the log entries, just the "before" snapshot of the item before the action is taken.

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

No branches or pull requests

1 participant