fix: remove IndustryType and OrgSize from FirstUserOnboarding telemetry (#24018)

New `IndustryType` and `OrgSize` enums were added in #23989, but they
are no longer desired in the onboarding/marketing telemetry data. This
removes them.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeremy Ruppel
2026-04-03 11:35:37 -04:00
committed by GitHub
co-authored by Claude Sonnet 4.6
parent 8369fa88fd
commit 2a1bef18e0
9 changed files with 14 additions and 352 deletions
+3 -42
View File
@@ -144,53 +144,14 @@ type CreateFirstUserTrialInfo struct {
Developers string `json:"developers"`
}
// OrgSizeRange represents a bucketed headcount range for an organization.
// These values are fixed by agreement with the frontend and the telemetry
// schema — do not change them without coordinating both sides.
type OrgSizeRange string
const (
OrgSizeRangeJustMe OrgSizeRange = "Just me"
OrgSizeRange2To10 OrgSizeRange = "2-10"
OrgSizeRange11To50 OrgSizeRange = "11-50"
OrgSizeRange51To200 OrgSizeRange = "51-200"
OrgSizeRange201To1K OrgSizeRange = "201-1000"
OrgSizeRange1KTo5K OrgSizeRange = "1001-5000"
OrgSizeRange5KPlus OrgSizeRange = "5000+"
)
// IndustryType represents the industry vertical an organization operates in.
// These values are fixed by agreement with the frontend and the telemetry
// schema — do not change them without coordinating both sides.
type IndustryType string
const (
IndustryTypeTechnology IndustryType = "Technology"
IndustryTypeFinancial IndustryType = "Financial Services"
IndustryTypeHealthcare IndustryType = "Healthcare"
IndustryTypeGovernment IndustryType = "Government"
IndustryTypeEducation IndustryType = "Education"
IndustryTypeRetail IndustryType = "Retail"
IndustryTypeManufacturing IndustryType = "Manufacturing"
IndustryTypeMedia IndustryType = "Media"
IndustryTypeTelecom IndustryType = "Telecom"
IndustryTypeEnergy IndustryType = "Energy"
IndustryTypeTransportation IndustryType = "Transportation"
IndustryTypeConsulting IndustryType = "Consulting"
IndustryTypeNonProfit IndustryType = "Non-Profit"
IndustryTypeOther IndustryType = "Other"
)
// CreateFirstUserOnboardingInfo contains optional demographic and
// newsletter preference data collected during first user setup.
// Pointer fields allow an explicit "no" answer to be distinguished
// from a skipped question, which matters for the telemetry schema.
type CreateFirstUserOnboardingInfo struct {
IsBusiness *bool `json:"is_business"`
IndustryType IndustryType `json:"industry_type" validate:"omitempty,oneof=Technology 'Financial Services' Healthcare Government Education Retail Manufacturing Media Telecom Energy Transportation Consulting Non-Profit Other"`
OrgSize OrgSizeRange `json:"org_size" validate:"omitempty,oneof='Just me' 2-10 11-50 51-200 201-1000 1001-5000 5000+"`
NewsletterMarketing *bool `json:"newsletter_marketing"`
NewsletterReleases *bool `json:"newsletter_releases"`
IsBusiness *bool `json:"is_business"`
NewsletterMarketing *bool `json:"newsletter_marketing"`
NewsletterReleases *bool `json:"newsletter_releases"`
}
// CreateFirstUserResponse contains IDs for newly created user info.