Skip to content

Add utility script to find a user by email (UserService.findAllByEmail looks in identities)

Eric Eastwood requested to merge 1843-more-effective-find-by-email into develop

Fix https://gitlab.com/gitlab-org/gitter/webapp/issues/1843

Todo

In production, add indexes:

db.users.createIndex({
  emails: 1
}, {
  background: true
})
db.identities.createIndex({
  email: 1
}, {
  background: true
})

Closes https://gitlab.com/gitlab-org/gitter/webapp/issues/1843

Edited by 🤖 GitLab Bot 🤖

Merge request reports