-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Named rollbacks #197
Comments
Hi, @bart6114, I would like your input here. I think that the best way to implement this feature at a low level is to add an optional tag or label to activities that the I'm considering other options such as trajectory() %>%
timeout(1) %>%
tag(timeout, "foo")(2) %>%
timeout(3) %>%
rollback("foo") i.e. a labelling function that takes the generic and the tag and returns a closure that does the job, and its possible variations: maybe Another option would be to extend the signature of all activities to include an optional tag. For example, now we have trajectory() %>%
timeout(1) %>%
timeout(2, tag="foo") %>%
timeout(3) %>%
rollback("foo") What do you think? Any other options? |
Another idea: trajectory() %>%
timeout(1) %>%
tag("foo")$timeout(2) %>%
timeout(3) %>%
rollback("foo") which is easier to add to an existing trajectory and to move it around. @thigger your feedback is welcome too. :) |
This last idea can be tested in the |
This can be tested in the |
I think I'm gonna go with this last option. |
Apologies, been clinical and not keeping an eye - yes this is brilliant, thank you! |
Current rollbacks (based on number of activities) are not ideal for prototyping, because they require an adjustment every time the user adds or removes an activity. This is even trickier when the trajectory is split into several pieces, or there are branches, etc.
It would be convenient to have some mechanism to label a point in a trajectory and then reference it by name. E.g.,
would be equivalent to
The text was updated successfully, but these errors were encountered: