Automattic / Automattic/jetpack

Mailchimp connected in API response after disconnecting Jetpack

Open
#18,747 0 comments 0 reactions 0 assignees View on GitHub
[Block] Mailchimp [Pri] Normal Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue

1. Connect, then disconnect Jetpack
2. Make a request to `/wp-json/wpcom/v2/mailchimp`
3. Observe that the response states Mailchimp is connected
4. Observe the `connect_url` link in the response directing to a blank page on wordpress.com

#### What I expected

Expected to see an `unavailable_site_id` error, as it is before connecting Jetpack.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by connecting and disconnecting Jetpack, then request `/wp-json/wpcom/v2/mailchimp` and inspect the response and `connect_url`. Trace the API entry point responsible for the Mailchimp response; done means the disconnected state returns an `unavailable_site_id` error instead of reporting Mailchimp as connected.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.