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

Check Terms of Service Version Through Users Table Instead of Cookie #44497

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

TurnerRiley
Copy link
Contributor

@TurnerRiley TurnerRiley commented Jan 24, 2022

The terms of service dialog that appears to Users logging in for the first time from Clever or Powerschool currently looks at a cookie, which is how it was before we revamped the dialog to exclude the out-of-date terms of service. This means that if the user logs in from a different device or clears their cookies, they’ll see the dialog again, which is not desired behavior.

Since we already track terms_of_service_version (i.e. the most recent ToS version the user has accepted) in the User model, now the behavior is to just check whether the terms_of_service_version matches the most recent ToS version. If they don't match, show them the new ToS for them to accept, otherwise don't show it to them.

Links

Jira ticket: here
PR for revamped dialog avoiding out-of-date ToS: here

Testing story

Localhost testing through Clever test accounts to ensure that upon their first logins users see the ToS dialog but don't see it on subsequent ones (even if they clear their cookies or log in elsewhere). I specifically tested this by logging in in an incognito window and then closing it, then opening a new incognito window and repeating the process to check for the correct behavior.

Demo using the incognito windows: here

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@TurnerRiley TurnerRiley changed the title check tos version through sql db instead of cookie Check Terms of Service Version Through Users Table Instead of Cookie Jan 24, 2022
@TurnerRiley TurnerRiley requested a review from a team January 24, 2022 23:57
@TurnerRiley TurnerRiley merged commit 3c3b449 into staging Jan 25, 2022
@TurnerRiley TurnerRiley deleted the check-user-seen-tos-by-users-table branch January 25, 2022 22:30
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.

None yet

2 participants