Skip to content

Dangling records in Mailchimp if deleted in Webling but sync failed #57

@cyrillbolliger

Description

@cyrillbolliger

If a record was deleted in Webling, but the sync afterwards failed until a full sync is done, the record is not deleted in Mailchimp (as the fullsync doesn't know about deleted records).

Result

There exists a record in Mailchimp that has the WEBLINGID of the deleted record in Webling and is thus invalid.

Expected Result

The record is also deleted in Mailchimp.

Possible Fix

After full sync: Check if all WEBLINGIDs that are currently in Mailchimp exist in Webling.

If one does not exist:

  1. Search for the records email address in Webling.
    1.1. If found, get main record and continue with step 2
    1.2. Else delete record in Mailchimp

  2. If main record has different email address:
    2.1. delete record in Mailchimp.
    2.2. sync main record

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