Skip to content

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

Merged
JoseSzycho merged 4 commits into
mainfrom
668-default-contact-group-enrollment-for-new-users
May 26, 2026
Merged

feat(notification): add default email newsletter enrollment policy for new users#232
JoseSzycho merged 4 commits into
mainfrom
668-default-contact-group-enrollment-for-new-users

Conversation

@JoseSzycho

@JoseSzycho JoseSzycho commented May 20, 2026

Copy link
Copy Markdown
Contributor

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
mattdjenkinson
mattdjenkinson previously approved these changes May 26, 2026
mattdjenkinson
mattdjenkinson previously approved these changes May 26, 2026
As the previosuly all users group did not have a loops provider id, we had to delete the group and create a new one
@JoseSzycho JoseSzycho merged commit 22010f4 into main May 26, 2026
11 checks passed
@JoseSzycho JoseSzycho deleted the 668-default-contact-group-enrollment-for-new-users branch May 26, 2026 18:28
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