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

Undo feature based on event history #4

Open
graste opened this issue Feb 14, 2016 · 0 comments
Open

Undo feature based on event history #4

graste opened this issue Feb 14, 2016 · 0 comments

Comments

@graste
Copy link
Member

graste commented Feb 14, 2016

Implementing some sort of generic undo feature is imho feasible. First ideas:

  1. Listen to events extending AggregateRootModifiedEvent
  2. Deliver those events via server-sent events or similar to web clients
  3. Let a widget act upon the event depending on the context the user is currently in by displaying a "Undo this?" activity
  4. Trigger building and dispatching a compensating undo command based upon the event

Instead of delivering the events via server-sent events or websockets it's maybe more advisable to have a widget that works e.g. with localstorage and pulls recent events and displays those on click and allows to undo certain events of those.

The undo command needs to be based on the modified event and should e.g. revert a value change.

An extension of the above clientside javascript based stuff could be to improve the history view for ARs and implement e.g. a "rollback to this revision" or "merge changes of this revision onto head revision". Giving a UI to only pick certain attributes or values would probably be overkill for most applications.

graste added a commit that referenced this issue Jul 4, 2019
e.g. when switching from one sass compiler to another one in
different environments. Switching from (discontinued) ruby sass
which is the current default to the e.g. node sass can be done
by setting sass.cmd_tpl to "#1 #2 #3 #4 #5 #6".
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