Skip to content

feat(notification): add default email newsletter enrollment policy for new users#232

Open
JoseSzycho wants to merge 1 commit into
mainfrom
668-default-contact-group-enrollment-for-new-users
Open

feat(notification): add default email newsletter enrollment policy for new users#232
JoseSzycho wants to merge 1 commit into
mainfrom
668-default-contact-group-enrollment-for-new-users

Conversation

@JoseSzycho
Copy link
Copy Markdown
Contributor

@JoseSzycho JoseSzycho commented May 20, 2026

Summary

  • Adds a new notification.miloapis.com service configuration under config/services/.
  • Introduces a ContactGroupEnrollmentPolicy (email-newsletter-enrollment-policy) that automatically enrolls all new User-backed Contacts into the email newsletter ContactGroup on ContactCreated.
  • Wires the new service into the top-level config/services/kustomization.yaml.

Details

The policy targets all contacts with subjectKind: User, so every new user signup triggers enrollment into the configured ContactGroup without any manual intervention. The ContactGroup ref (emailnewsletter-contact-group-3a3ar9 in default) can be updated as needed.

This depends on the ContactGroupEnrollmentPolicy CRD and controller shipped in milo#603.

Test plan

  • Verify kustomize build config/services renders cleanly with the new component.
  • Deploy to a test environment and confirm new User creation results in a ContactGroupMembership for the newsletter group.

🤖 Generated with Claude Code

Related to:

@JoseSzycho JoseSzycho requested a review from a team as a code owner May 20, 2026 12:12
@JoseSzycho JoseSzycho requested review from AriaEdo, savme and scotwells May 20, 2026 12:12
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.

1 participant