Problem
accounts app has ability to have multiple e-mail addresses for UserModels.
When there are multiple servers doing transactions there might be times that records get duplicated.
Solution
This cannot be fixed automatically because it might be really hard to determine which one to
keep and which one to delete. Any wrong behavior will result with bad user experience.
As first step is to create a celery task that will search through user accounts and find duplicate email.
Flow
- Query all
User records that have more than 1 UserEmail records.
- If there are records returned go to step
3. If there are no records go to step 4
- If there are records, alert them in
#alerts-p2-danger listing out email addresses and user IDs. Goto step 5
a. It might be useful to also include a link for admin tools
- Alert in
#alerts-p4-info that there are no problematic tools.
- End Task
Important variables to be determined
- Task schedule time
- Should it have an enabled setting?
- Slack alert channel names should be in settings?
- Record item string should be a setting to change project specific?
Problem
accountsapp has ability to have multiple e-mail addresses forUserModels.When there are multiple servers doing transactions there might be times that records get duplicated.
Solution
This cannot be fixed automatically because it might be really hard to determine which one to
keep and which one to delete. Any wrong behavior will result with bad user experience.
As first step is to create a celery task that will search through user accounts and find duplicate email.
Flow
Userrecords that have more than 1UserEmailrecords.3. If there are no records go to step4#alerts-p2-dangerlisting out email addresses and user IDs. Goto step5a. It might be useful to also include a link for admin tools
#alerts-p4-infothat there are no problematic tools.Important variables to be determined