Problem/Motivation

When the cron/batch option is enabled, you can't rely on the mailchimp api to return the correct subscribe status.

For example when somebody subscribes on the website (and its subscription is queued) and then unsubscribes (before the queue has run), the unsubscribe will not be queued as the user has not yet been subscribed (if you query the mailchimp api directly).

Proposed resolution

If the cron/batch option is enabled we should never use the mailchimp api directly (except during the queue handling).

This is possible since we store the subscribe status (#2903853: MailchimpListsSubscription doesnt save 'subscribed' in DB).

Comments

arnaudvz created an issue. See original summary.

arnaudvz’s picture

Issue summary: View changes
arnaudvz’s picture

Status: Active » Needs review
StatusFileSize
new3.5 KB
arnaudvz’s picture

StatusFileSize
new3.5 KB

Patch for the latest stable release 8.1.11.

casey’s picture

StatusFileSize
new3.6 KB
new3.6 KB

The previous patch didn't correctly check whether the original entity has a value.

casey’s picture

StatusFileSize
new3.62 KB
new3.63 KB
gcb’s picture

Component: General » API
Assigned: Unassigned » wxactly
gcb’s picture

Assigned: wxactly » spncr
xenophyle’s picture

Status: Needs review » Closed (won't fix)

Thanks for submitting this ticket — and sorry we didn’t get back to you about it sooner. We are cleaning up old issues and issue for old versions and are going to close this one. If this issue is still relevant for you, please re-open it and update the “Version” field, and include any updates to the behavior you are seeing.With a smaller issue queue, we’ll have an easier time getting back to you.