Comments (3)
Have you checked out the paper_trail
or audited
gem?
from notebook.
Implementation:
- Whenever a Universe, Character, Location, Item, Creature, Race, Religion, Group, Magic, Language, or Scene is created or edited, a
ContentChangeEvent
should be created with the following properties:user_id
- ID of the user making the changechanged_fields
- hash of field changes (e.g. old and new values), probably best to grab fromdirty_fields
during the save hookcreated_at
- automatically set, self explanatoryaction
- create, edit, or deletecontent_id
- the ID of the associated content, e.g. 5 or 8185content_type
- the content type, e.g. :character, :location, :race, etc
When visiting a content's page in the notebook, there should be an additional pane tab for "Changelog" (similar to the Gallery setup, which needs refactored eventually with a new design). Opening this pane should show a timeline consisting of:
- The date/time this piece of content was created, and by which user (
user_id
on the content itself) - Any
ContentChangeEvent
s associated with this content with a diff view of which fields changed and what their old and new values were (probably need some cleanup here later, but lets just show it all for now)
Whenever a non-Universe piece of content is deleted, we should create a ContentChangeEvent
for its universe (if any) that says that content and content type was deleted (e.g. "Character Bob was deleted by Alice") for display on the universe's Changelog pane.
from notebook.
This is done and live. Improvements should have separate issues. 👍
from notebook.
Related Issues (20)
- Need to initialize AttributeFields with link destinations specified
- Local host aws photos not displaying HOT 1
- ContentPageShare#show text doesn't match stream text
- Export uses IDs in multiple places but does not include the IDs itself HOT 1
- [BUG] | Named page still displays with default name HOT 3
- Prepaying for Premium doesn't adjust upload storage bandwidth HOT 5
- Browser-level notifications
- Work through the a11yproject checklist
- Idea Adoption Center
- Bookmarking public pages
- Switch to kt-paperclip
- Monthly world report
- Export for OpenCharacters HOT 2
- Audit existing tests, get back to green, and add more tests
- How run locally on windows ?
- Self host help
- README Badges are Broken
- Up/Down Arrow Keys in Tex Boxes Do Not Navigate Lines
- Error while migrating database HOT 5
- Translating icons does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notebook.