-
Notifications
You must be signed in to change notification settings - Fork 11
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
Improve Users sync #545
Improve Users sync #545
Conversation
@JulienTant, adding you as reviewer as part of helping to own all things synthetic users. Happy to chime in as needed -- feel free to ping me! |
I was reviewing the PR and accidentally committed and pushed fixes for something else here 😓 reverted now, sorry for the noise! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvements and the comments!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@enahum there is a conflict, but other than that looks good to me. |
@jespino can you help look into why the tests are failing? |
@enahum I reran the job and everything went green! :) |
* refactor syncUser * skip user creation if they are deactivated on msTeams * add EmailVerified when creating synthetic user from a getter * Revert "add EmailVerified when creating synthetic user from a getter" This reverts commit 1d2a69c. * fix bad merge * disable selectiveSync test --------- Co-authored-by: Julien Tant <julien@craftyx.fr>
Summary
Refactor syncUsers so it reads better and fixes the issue where users being activated and deactivated constantly.
We now do not create synthetic users if they are not present in MM but disabled on MS Teams
Ticket Link
https://mattermost.atlassian.net/browse/MM-56942
https://mattermost.atlassian.net/browse/MM-56886