Skip to content

Refactor MutableTreeRevision #21000

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

Legioth
Copy link
Member

@Legioth Legioth commented Feb 14, 2025

  • Rename TreeManipulator to ResultBuilder and use it only for multi-step commands and commands that affect multiple nodes
  • Explicitly return a result when handling a command instead of indirectly producing one
  • Transactions produce multiple results so they have custom top-level handling instead of following the general pattern
  • Handle errors caused by concurrent modifications by returning a Reject result instead of passing the error through an instance field

* Rename TreeManipulator to ResultBuilder and use it only for multi-step
commands and commands that affect multiple nodes
* Explicitly return a result when handling a command instead of
indirectly producing one
* Transactions produce multiple results so they have custom top-level
handling instead of following the general pattern
* Handle errors caused by concurrent modifications by returning a Reject
result instead of passing the error through an instance field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🔎Iteration reviews
Development

Successfully merging this pull request may close these issues.

3 participants