Skip to content

Duplicate account slack alerts #388

Open
@gwainor

Description

@gwainor

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

  1. Query all User records that have more than 1 UserEmail records.
  2. If there are records returned go to step 3. If there are no records go to step 4
  3. 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
  4. Alert in #alerts-p4-info that there are no problematic tools.
  5. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions