-
Notifications
You must be signed in to change notification settings - Fork 173
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
Keep track of graph operations #23
Comments
@jonnor has put some thought into this with GEGL: https://git.gnome.org/browse/gegl/tree/docs/journal.txt The |
It might make sense to follow the same operations convention as in the Graph protocol |
A journal file is desirable for the purpose of documentation, e.g: How to add plug-ins to this program? And the recorded operations show the process of connecting a new plug-in component to the system step by step. |
Yes, we ideally want to enable playback of the creation of a graph in a viewer, and to allow annotations like audio/video commentary |
I've started prototyping a backend for this now: https://github.com/jonnor/noflo/tree/graph-journal |
The initial Graph Journal has now been merged into NoFlo: noflo/noflo#139 |
Currently we operate on the JSON graph format from NoFlo. That format is a good snapshot of the graph state, but what we really need is a format recording the graph state as a history of operations performed on it.
So instead of having a list of nodes, you'd have a history of operations like Add node Foo.
This would enable multiple useful things:
Here is some argumentation for the importance of undo:
In the case of NoFlo UI, having easy availability to undo would also have the benefit of making our various gestures a lot safer, as you can always step back.
On implementation:
The text was updated successfully, but these errors were encountered: