Add user to common data store immediately after registration at LDAP
Description
- Fix for https://gitlab.e.foundation/e/infra/backlog/-/issues/3974+ and https://gitlab.e.foundation/e/infra/backlog/-/issues/4069+
- As per https://gitlab.e.foundation/e/infra/backlog/-/issues/4069#note_718978 any error between registration of user to LDAP and adding to common store can skip this step entirely. So we need to run this step immediately after user is registered at LDAP
Screenshots
Technical details
Tests
-
Signup with a new account
✅ - User entry added correctly to common db
-
Throw an exception in the common db method with a code edit
✅ - Error logged in nextcloud logs
✅ - User creation happens successfully
✅
- Error logged in nextcloud logs
Issues
10 commandments of code review
Edited by Akhil