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

Store multiple comms opt-ins in database #1735

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Store multiple comms opt-ins in database #1735

merged 1 commit into from
Dec 15, 2023

Conversation

ajparsons
Copy link
Contributor

Currently we store a single comms opt-in, but have changed what this means over time.

This PR repurposes the current optin database value to store multiple different types of comms optin.

image

Basically this covers:

  • A service level opt-in.
  • A stream level opt-in.
  • A org level opt-in.

We might want to do less than that or change the text - but wanted to get the technical side signed off.

Technically this has removed several steps converting a binary value to a 0/1 and added functions to store and retriveve values as different bits in the one tinyint available (technically can do up to 8).

I've tested creating new users, and modifying when logged in.

@ajparsons ajparsons requested a review from dracos October 18, 2023 14:58
- $optin is decoded and encoded to three seperate booleans
- basic conversions from bool to int removed
- Multiple options added to join and edit page
- Form formatting tidied up
@dracos dracos merged commit 74e0cc7 into master Dec 15, 2023
10 checks passed
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