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

api: replace nested_session with commit #320

Closed

Conversation

jrcastro2
Copy link
Contributor

db.session.merge(self.model)
# Check this
db.session.merge(self.model)
db.session.commit()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is potentially harming operation, the method was probably not meant to be responsible for committing the whole session here

@zzacharo
Copy link
Member

I am closing this, as the added db.session.commit() affects the saving of drafts i.e not allowing partial valid records.

@zzacharo zzacharo closed this Nov 15, 2023
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.

3 participants