-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
model: Add function to handle realm_user update events.
This commit contains Model._handle_realm_user_event() which updates the meta data of the respective user in Model.initial_data["realm_users"]. A test is added for this in test_model. Function and test logic slightly adjusted by neiljp to support differing event and user data fields, as is necessary for new_email/email, without adjusting the original API data-structure. Note that after such an event, we currently rely upon the regular update of users to propagate most of the new data around the application.
- Loading branch information
1 parent
8571383
commit 01b3853
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters