Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Environment variable for Opt-Outs to be shared across all organizations on the instance #884

Closed
schuyler1d opened this issue Sep 10, 2018 · 1 comment
Assignees

Comments

@schuyler1d
Copy link
Collaborator

Sometimes a single real organization will have a spoke instance, but want to divide camaigns and texters for management purposes.

The current blocker is that opt-outs are only per-organization, so an opt-out that occurs from one organization will not get opted-out on another campaign.

Thus we should have an environment variable
OPTOUTS_SHARE_ALL_ORGS
when true:

  • Opt-out queries will not filter by organization
  • creating an opt-out should mark all current contacts across organizations (not just across campaigns, like now)

One possibility while working on this would be to remove/ignore the campaign_contact.is_opted_out column and change all queries to JOIN on opt_out by cell instead.

Also please be conscious of parallel scaling work that has begun:
https://github.com/MoveOnOrg/Spoke/pull/869

@shakalee14
Copy link
Contributor

Fixed with #901

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

No branches or pull requests

2 participants