improvement(subscriptions): added log retention cron, enterprise plan & refactored subscriptions logic#357
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Contributor
There was a problem hiding this comment.
PR Summary
This PR significantly refactors the subscription and waitlist management systems, adding enterprise plan support and log retention features.
- Added new
workspace_invitationtable and subscription metadata for enterprise plans in/db/migrations/0035_adorable_loa.sql - Added chat execution tracking with new
totalChatExecutionsfield in user stats and related API endpoints - Introduced enterprise subscription management with per-seat allowances and custom limits in
/lib/subscription/utils.ts - Removed waitlist management UI components and API routes, suggesting a major restructuring of this functionality
- Added daily cron job in
vercel.jsonto clean up logs for free users
The changes appear well-structured but warrant careful testing of the waitlist functionality migration and enterprise plan integration.
41 file(s) reviewed, 21 comment(s)
Edit PR Review Bot Settings | Greptile
…red subscriptions logic & ui
waleedlatif1
force-pushed
the
improvement/subs
branch
from
May 14, 2025 23:44
2baab52 to
4d38462
Compare
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added log retention cron, enterprise plan & refactored subscriptions logic
Type of change
How Has This Been Tested?
Tested manually, ensured that the plan can be issued and the limits adjusted accordingly
Checklist:
npm test)Security Considerations: