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

fix users multiple imports #62

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

utnapischtim
Copy link

@utnapischtim utnapischtim commented Sep 14, 2024

  • fix: missing no_autoflush prevents users imports

this should fix inveniosoftware/invenio-users-resources#144

* without the no_autoflush the first() method call initiates a autoflush
  which calls the session.flush() method. this flushes the models in the
  session. this prevents then that other packages could use the
  pre_commit hook to collect all not flushed models and possible index
  them.
@utnapischtim utnapischtim marked this pull request as draft September 26, 2024 20:28
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.

Reindexing of multiple users after database commit is not triggered
1 participant