Parent: #25 — Remove all SaaS billing code
Depends on: #28 (pricing removal)
What to Remove from Workspace struct
Monthly Limits (6 fields)
| Field |
Line |
MonthlySessionLimit |
278 |
MonthlyMembersLimit |
279 |
MonthlyErrorsLimit |
280 |
MonthlyLogsLimit |
281 |
MonthlyTracesLimit |
282 |
MonthlyMetricsLimit |
283 |
Max Cents (5 fields)
| Field |
Line |
SessionsMaxCents |
289 |
ErrorsMaxCents |
290 |
LogsMaxCents |
291 |
TracesMaxCents |
292 |
MetricsMaxCents |
293 |
Callers
| File |
Line |
Usage |
private-graph/graph/resolver.go |
504-513 |
All Monthly*Limit fields mapped to response |
private-graph/graph/resolver.go |
518, 504, 506, 525, 527 |
All *MaxCents fields mapped |
private-graph/graph/schema.resolvers.go |
1287-1295 |
*MaxCents assigned in mutation |
private-graph/graph/schema.resolvers.go |
6469-6472 |
GetLimitAmount calls with *MaxCents |
private-graph/graph/generated/generated.go |
11829-11833, 94746 |
GraphQL complexity + field resolvers |
public-graph/graph/resolver_test.go |
600, 611 |
Test data |
Also in Organization struct: MonthlySessionLimit at line 249
Migration Required
- Add DB migration to drop 11 columns from
workspaces table
- Drop
monthly_session_limit from organizations table
Test Plan
🤖 Generated with Claude Code
Parent: #25 — Remove all SaaS billing code
Depends on: #28 (pricing removal)
What to Remove from Workspace struct
Monthly Limits (6 fields)
MonthlySessionLimitMonthlyMembersLimitMonthlyErrorsLimitMonthlyLogsLimitMonthlyTracesLimitMonthlyMetricsLimitMax Cents (5 fields)
SessionsMaxCentsErrorsMaxCentsLogsMaxCentsTracesMaxCentsMetricsMaxCentsCallers
private-graph/graph/resolver.goprivate-graph/graph/resolver.goprivate-graph/graph/schema.resolvers.goprivate-graph/graph/schema.resolvers.goprivate-graph/graph/generated/generated.gopublic-graph/graph/resolver_test.goAlso in Organization struct:
MonthlySessionLimitat line 249Migration Required
workspacestablemonthly_session_limitfromorganizationstableTest Plan
make private-gen+yarn codegen🤖 Generated with Claude Code