Skip to content

Preserve existing subscription state in pending opt-in events #16

Description

@vladbisceanu

Delivers: Extend POST /v1/track with an additive, race-safe way to apply subscribed:false only when the contact is created while preserving an existing contact’s subscription state. Keep the existing explicit-subscribed behavior backward-compatible; the bisceanu form uses the new mode so one call creates new contacts pending without unsubscribing active contacts or resubscribing suppressed contacts.

Done when: service and HTTP concurrency tests prove new→unsubscribed, existing subscribed→subscribed, existing unsubscribed→unsubscribed, and a concurrent first-contact winner keeps the elected row’s state; current callers without the new option retain their behavior. The public schema and docs describe the double-opt-in recipe.

Read the design in the parent epic before starting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions