feat(table): make plan table limits configurable via env vars#4406
feat(table): make plan table limits configurable via env vars#4406waleedlatif1 merged 7 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Numeric env overrides are normalized across the app. Reviewed by Cursor Bugbot for commit 643724e. Configure here. |
Greptile SummaryThis PR makes per-tier table count and row-limit caps configurable via env vars, introduces a shared Confidence Score: 5/5Safe to merge — no P0/P1 findings; only two minor P2 suggestions. All changes are additive and backwards-compatible. The No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[getWorkspaceTableLimits workspaceId] --> B[getTablePlanLimits]
B --> C{env var set?}
C -- yes --> D[envNumber coerces string to number]
C -- no --> E[DEFAULT_TABLE_PLAN_LIMITS fallback]
D --> F[planLimits map]
E --> F
A --> G[getWorkspaceBilledAccountUserId]
G -- no account --> H[planLimits.free]
G -- has account --> I[getHighestPrioritySubscription]
I --> J[getPlanTypeForLimits]
J --> K{planLimits plan}
K -- found --> L[Return tier limits]
K -- not found --> H
A -- error --> H
Reviews (4): Last reviewed commit: "fix(env): add min option to envNumber fo..." | Re-trigger Greptile |
|
@greptile |
|
@cursor review |
|
@greptile |
|
@cursor review |
|
@cursor review |
|
@greptile |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 643724e. Configure here.
Summary
FREE_/PRO_/TEAM_/ENTERPRISE_TABLES_LIMITand*_TABLE_ROWS_LIMIThelm/sim/values.yamlalongside the existing per-tierEXECUTION_TIMEOUT_*blockType of Change
Testing
Tested manually
Checklist