Skip to content

TOS consent: adds backend

Administrator requested to merge jp/tosbackend into main

Created by: limitedmage

Part of #28716 (closed)

Adds backend for Terms of Service/Privacy Policy consent. This is to support adding a consent form for both new and existing users on Sourcegraph Server (not Cloud).

  • Adds a column in the users table, tos_accepted. This is a boolean, false by default.
  • Adds tosAccepted to the User type in GraphQL, so the value can be queried for a user
  • Adds setTosAccepted mutation in GraphQL, so a user can accept the terms of service.

Merge request reports

Loading