-
Notifications
You must be signed in to change notification settings - Fork 201
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
EMSUSD-189 fix undo of the stage creation command #3215
Conversation
pierrebai-adsk
commented
Jul 10, 2023
- Do not keep reference to temporarily created DAG modifiers.
- Capture the undo item by using a undo item list and undo recorder.
- Don't hide potential unrelated exceptions.
- Add a unit test for the command.
- Do not keep reference to temporarily created DAG modifiers. - Capture the undo item by using a undo item list and undo recorder. - Don't hide potential unrelated exceptions. - Add a unit test for the command.
8448fcf
to
97532b9
Compare
@pierrebai-adsk One question I have is during the command if any part of it fails, is everything that was created and/or modified up to that point undone? |
Yes, that is what the undo at line 70 (for exceptions) and 74 (for explicit return failure) do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think one comment has to be adjusted. Other than that, it's looking good to me. Thanks!
Co-authored-by: frohnej-adsk <[email protected]>