fix: Only enforce min seats for orgs#10572
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
|
Thank you for following the naming conventions! 🙏 |
zomars
left a comment
There was a problem hiding this comment.
We have done types failing
|
🤖 Meticulous spotted visual differences in 30 of 119 screens tested: view and approve differences detected. Last updated for commit d533e86. This comment will update as new commits are pushed. |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Current Playwright Test Results Summary✅ 115 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 08/03/2023 06:26:25pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: d533e86 Started: 08/03/2023 06:25:13pm UTC
|
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Popup Tests should be able to reschedule
Retry 1 • Initial Attempt |
2.29% (7)7 / 306 runsfailed over last 7 days |
95.75% (293)293 / 306 runsflaked over last 7 days |
zomars
left a comment
There was a problem hiding this comment.
Some Qs, I'm trying to understand the why of this.
- Where does the ORGANIZATION_MIN_SEATS number coming from?
- Will this affect non orgs teams sub update logic? How can we verify this?
- Is this related to the previous discussion where repeated members of different teams of the same org should not be charged?
| export const ALLOWED_HOSTNAMES = JSON.parse(`[${process.env.ALLOWED_HOSTNAMES || ""}]`) as string[]; | ||
| export const RESERVED_SUBDOMAINS = JSON.parse(`[${process.env.RESERVED_SUBDOMAINS || ""}]`) as string[]; | ||
|
|
||
| export const ORGANIZATION_MIN_SEATS = 30; |
There was a problem hiding this comment.
I think we can move this to it's own file? Unless it's being used multiple times on several files.
There was a problem hiding this comment.
Do you have a suggestion on where to move it? I figured the constants file would be an easy place to find this variable.
alannnc
left a comment
There was a problem hiding this comment.
Looks good, left a NIT comment.
|

What does this PR do?
This PR fixes the logic to only change team subscription amounts for orgs and not normal teams
Fixes # (issue)
Requirement/Documentation
Type of change
How should this be tested?
Mandatory Tasks
Checklist