Skip to content

Reapply Mailchimp list member sync fixes#19

Open
matt-riemer wants to merge 3 commits into
masterfrom
reapply-mailchimp-api-fixes
Open

Reapply Mailchimp list member sync fixes#19
matt-riemer wants to merge 3 commits into
masterfrom
reapply-mailchimp-api-fixes

Conversation

@matt-riemer
Copy link
Copy Markdown
Member

Re-applies the Mailchimp API fixes from #17, which were reverted in #18. The changes are byte-identical to the original PR.

Changes

  • Fix Mailchimp subscriber hash for set_list_member (d6df789)
  • Send status_if_new when adding a Mailchimp list member (da6c4bd)
  • Request a full page of Mailchimp interest categories and interests (00e7eb6)

Touches app/models/effective/mailchimp_api.rb and adds test/models/mailchimp_api_test.rb.

🤖 Generated with Claude Code

danajanssen and others added 3 commits May 28, 2026 16:12
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
set_list_member is a PUT upsert: status updates an existing contact while
status_if_new is required to create a new one. The payload only sent status,
so genuinely new subscribers failed validation. Mirror the desired status
into status_if_new so new and existing members are both handled.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The categories and interests calls omitted count, so Mailchimp's default
page size of 10 applied and silently truncated the results. Lists with more
than 10 interest categories, or a category with more than 10 groups, would
drop the overflow and make those interests unsubscribable. Pass count: 1000
(the endpoint maximum) like the other index calls.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants