You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating multiple users re-indexing is not triggered for all of them after committing to the data store. Users will be properly added to the database but not the search index.
Steps to Reproduce
Create a loop in which multiple users are created using _datastore.create_user() with the datastore being a proxy from flask-security.
Call _datastore.commit() after and outside of the loop.
All users will be committed to the database but only the last created user will be indexed.
Expected behavior
All created users will be re-indexed.
Additional context
As far as I can see, after a user is created the database hook defined here should be triggered that re-indexes all updated users. However, at least for us this does not happen the way we expect it to.
The text was updated successfully, but these errors were encountered:
Package version (if known): 6.0.0
Describe the bug
When creating multiple users re-indexing is not triggered for all of them after committing to the data store. Users will be properly added to the database but not the search index.
Steps to Reproduce
_datastore.create_user()
with the datastore being a proxy from flask-security._datastore.commit()
after and outside of the loop.Expected behavior
All created users will be re-indexed.
Additional context
As far as I can see, after a user is created the database hook defined here should be triggered that re-indexes all updated users. However, at least for us this does not happen the way we expect it to.
The text was updated successfully, but these errors were encountered: