-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
area:backendbilling-removalRemoval of upstream SaaS billing codeRemoval of upstream SaaS billing codecomponent:databasepriority:mediumtech-debt
Description
Parent: #25 — Remove all SaaS billing code
Depends on: #28 (pricing removal — these fields are read by pricing meter calculations)
What to Remove from Workspace struct
| Field | Line | Type |
|---|---|---|
BillingPeriodStart |
275 | *time.Time |
BillingPeriodEnd |
276 | *time.Time |
NextInvoiceDate |
277 | *time.Time |
Callers
| File | Line | Usage |
|---|---|---|
private-graph/graph/resolver.go |
499 | Field mapping to response |
private-graph/graph/resolver.go |
515 | NextInvoiceDate mapping |
private-graph/graph/schema.resolvers.go |
6341 | BillingPeriodStart conditional check |
pricing/pricing.go |
467-480 | Used as startDate/endDate in meter calculations |
public-graph/graph/resolver_test.go |
601-602, 612-613 | Test data setup |
worker/worker_test.go |
911-912, 919-920 | Test data setup |
Migration Required
- Add DB migration to drop 3 columns from
workspacestable
Test Plan
- Remove fields from struct
- Update resolver mappings
- Update tests that set these fields
- Add column-drop migration
- Verify build + tests
🤖 Generated with Claude Code
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:backendbilling-removalRemoval of upstream SaaS billing codeRemoval of upstream SaaS billing codecomponent:databasepriority:mediumtech-debt