-
-
Notifications
You must be signed in to change notification settings - Fork 88
update to have the ability to relaunch after 7 days #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
update to have the ability to relaunch after 7 days #173
Conversation
|
@khaledtf19 is attempting to deploy a commit to the ossdotnow Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThis change updates the project launch logic to enforce a 7-day cooldown between launches by modifying the mutation to check the most recent launch date and reject new launches if the cooldown has not expired. Additionally, it removes the unique constraint on the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant API
participant DB
User->>API: Request launchProject(projectId)
API->>DB: Query latest launch for projectId
DB-->>API: Return latest launch (if any)
API->>API: Calculate days since last launch
alt Less than 7 days
API-->>User: Throw conflict error with days remaining
else 7 days or more (or no prior launch)
API->>DB: Insert new launch record
DB-->>API: Confirm insertion
API-->>User: Return success
end
Estimated code review effortπ― 2 (Simple) | β±οΈ ~8 minutes Possibly related PRs
Poem
Note β‘οΈ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. π Recent review detailsConfiguration used: CodeRabbit UI π Files selected for processing (2)
π§ Files skipped from review as they are similar to previous changes (2)
β¨ Finishing Touches
π§ͺ Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
Brief description of what this PR does:
Type of Change
Testing
Checklist
Screenshots (if applicable)
Add any relevant screenshots here
Please ensure your PR title clearly describes the change.
Summary by CodeRabbit
New Features
Bug Fixes