salesforce / runway-browser

Interactive visualization framework for Runway models of distributed systems
https://runway.systems
MIT License
188 stars 31 forks source link

Halt simulation on assertion failure? #8

Open dgryski opened 8 years ago

dgryski commented 8 years ago

When running a model it's annoying to have to stop the simulation by hand and try to drag the state back to where the failure occurred. A button that would halt the simulation immediately and allow exploring the current state would be easier. This also matches the behavior of the command line simulator.

ongardie-sfdc commented 8 years ago

Should we just halt all simulations upon an error? Then if the user clicks Simulate again, push forward?

dgryski commented 8 years ago

Perhaps buttons with "Run" and "Run until Error"? Or a checkbox that says "Halt on error" (default to on? off?)

ongardie-sfdc commented 8 years ago

What's the use case for wanting to run past the error?

dgryski commented 8 years ago

No idea, was just trying to preserve somehow the current behaviour :) If the current behaviour is unwanted, then yeah we don't need any of that.

ongardie-sfdc commented 8 years ago

Yeah, I don't think there's a reason for the current behavior. That's true for much of the UI :)