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

Add new privacy and comms fields to OnboardingInfo model #1327

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

toolness
Copy link
Collaborator

@toolness toolness commented Apr 28, 2020

This adds three new privacy and communications-related fields:

  • agreed_to_justfix_terms - Whether the user agreed to the JustFix.nyc TOS + privacy policy. This can only be true or false; if it's false, we basically shouldn't let them use JustFix.nyc until they agree to them. It defaults to True for all existing users in our database (since they can only be JustFix.nyc users, as we haven't launched NoRent.org yet, and they checked the checkbox when signing up); going forward, only users who onboard via JustFix.nyc will have this set to True upon signup (since they checked the checkbox).

  • agreed_to_norent_terms - Whether the user agreed to the NoRent.org TOS + privacy policy. This can only be true or false; if it's false, we basically shouldn't let them use NoRent.org until they agree to them. Going forward, only users who onboard via NoRent.org will have this set to True upon signup (since they checked the checkbox).

  • can_receive_rttc_comms - Whether the user explicitly agreed or disagreed to receiving communications from the Right to the City Alliance (RTTC). Note that aside from True and False, this can also be None (NULL in the database) to indicate that we haven't asked the user yet.

This also adds accessors for the fields to our GraphQL schema, under the session.onboardingInfo field. It does not yet add mutations to allow the front-end to change their values, that will be for a future commit.

@toolness toolness requested a review from sraby April 28, 2020 19:33
Copy link
Member

@sraby sraby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @toolness! The migrations make sense as well as the new field naming and placement within OnboardingInfo.

@toolness toolness merged commit 34124f5 into master Apr 28, 2020
@toolness toolness deleted the privacy-and-comms branch April 28, 2020 20:19
toolness added a commit that referenced this pull request Apr 28, 2020
This adds two new mutations that build upon the database schema changes introduced in #1327:

* A new `agreeToTerms` mutation allows the front-end to ask the user to agree to privacy policies from a site other than the one they originally signed up for.

* A new `optInToRttcComms` mutation allows the front-end to ask the user if they would like to opt-in to communications from the Right to the City Alliance (RTTC).
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