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

Make update_* methods of update operation more convenient to call #2205

Merged
merged 19 commits into from
Feb 12, 2024

Conversation

hannobraun
Copy link
Owner

Change those methods to accept either a bare object or a handle, instead of just a handle. This removes the requirement to call insert in many places.

I'm also working on a change (related to #2117) that requires us to distinguish between inserting a fresh object, or inserting an object as an update to an existing one. Since this pull requests moves many insert calls inside the update operations and out of model code, this would be less error-prone.

@hannobraun hannobraun merged commit 1b2d9d6 into main Feb 12, 2024
4 checks passed
@hannobraun hannobraun deleted the update branch February 12, 2024 13:35
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

Successfully merging this pull request may close these issues.

1 participant