mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: remove work/personal onboarding telemetry (#24021)
Following on from #23989 #24018 - We also no longer want to collect `IsBusiness` demographic data - Newsletter fields no longer allow `nil` as a value, instead default to false --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
ec83065b59
commit
01b8cdb00d
@@ -284,14 +284,9 @@ func (api *API) postFirstUser(rw http.ResponseWriter, r *http.Request) {
|
||||
// Only populate onboarding data when the client actually sent it. A nil
|
||||
// OnboardingInfo means the request came from an older client, the CLI, or
|
||||
// the OIDC flow — not from a user who answered "no" to every question.
|
||||
//
|
||||
// Note: newsletter consent (NewsletterMarketing) is bundled here alongside
|
||||
// product-analytics fields. These may have different legal bases under GDPR
|
||||
// and should be separated in a follow-up once the legal posture is clarified.
|
||||
var onboarding *telemetry.FirstUserOnboarding
|
||||
if createUser.OnboardingInfo != nil {
|
||||
onboarding = &telemetry.FirstUserOnboarding{
|
||||
IsBusiness: createUser.OnboardingInfo.IsBusiness,
|
||||
NewsletterMarketing: createUser.OnboardingInfo.NewsletterMarketing,
|
||||
NewsletterReleases: createUser.OnboardingInfo.NewsletterReleases,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user