-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
feat: license creation admin PR #15024
base: main
Are you sure you want to change the base?
Conversation
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Ignored Deployments
|
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 New Page AddedThe following page was added to the bundle from the code in this PR:
Fifteen Pages Changed SizeThe following pages changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored. |
Current Playwright Test Results Summary✅ 319 Passing - ❌ 1 Failing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 05/14/2024 10:37:23am UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: f57ccd6 Started: 05/14/2024 10:34:21am UTC ❌ Failures📄 apps/web/playwright/hash-my-url.e2e.ts • 1 FailureTest Case Results
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Stripe integration Paid booking should be able to be cancelled
Retry 1 • Initial Attempt |
2.62% (6)6 / 229 runsfailed over last 7 days |
10.04% (23)23 / 229 runsflaked over last 7 days |
📄 apps/web/playwright/event-types.e2e.ts • 2 Flakes
Top 1 Common Error Messages
|
2 Test Cases Affected |
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Event Types tests -- future user enabling recurring event comes with default options
Retry 1 • Initial Attempt |
3.50% (9)9 / 257 runsfailed over last 7 days |
4.67% (12)12 / 257 runsflaked over last 7 days |
Event Types tests -- future user Different Locations Tests Can add Link Meeting as location and book with it
Retry 1 • Initial Attempt |
0.78% (2)2 / 256 runsfailed over last 7 days |
18.36% (47)47 / 256 runsflaked over last 7 days |
📄 apps/web/playwright/profile.e2e.ts • 4 Flakes
Top 1 Common Error Messages
|
4 Test Cases Affected |
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Update Profile Can update a users email (verification enabled)
Retry 2 • Retry 1 • Initial Attempt |
38.38% (109)109 / 284 runsfailed over last 7 days |
34.15% (97)97 / 284 runsflaked over last 7 days |
Update Profile Newly added secondary email should show as Unverified
Retry 1 • Initial Attempt |
0.70% (2)2 / 285 runsfailed over last 7 days |
27.37% (78)78 / 285 runsflaked over last 7 days |
Update Profile Can verify the newly added secondary email
Retry 1 • Initial Attempt |
2.11% (6)6 / 285 runsfailed over last 7 days |
24.21% (69)69 / 285 runsflaked over last 7 days |
Update Profile Can resend verification link if the secondary email is unverified
Retry 1 • Initial Attempt |
15.44% (44)44 / 285 runsfailed over last 7 days |
34.74% (99)99 / 285 runsflaked over last 7 days |
📄 apps/web/playwright/booking-pages.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
prefill -- future logged in
Retry 1 • Initial Attempt |
0% (0)0 / 248 runsfailed over last 7 days |
2.82% (7)7 / 248 runsflaked over last 7 days |
📄 packages/embeds/embed-core/playwright/tests/namespacing.e2e.ts • 4 Flakes
Top 1 Common Error Messages
|
4 Test Cases Affected |
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Namespacing Inline Embed Double install Embed Snippet with inline embed using a namespace
Retry 1 • Initial Attempt |
0.79% (2)2 / 252 runsfailed over last 7 days |
56.75% (143)143 / 252 runsflaked over last 7 days |
Namespacing Different namespaces can have different init configs
Retry 1 • Initial Attempt |
0% (0)0 / 251 runsfailed over last 7 days |
56.57% (142)142 / 251 runsflaked over last 7 days |
Namespacing Inline Embed Add inline embed using a namespace without reload
Retry 1 • Initial Attempt |
0.40% (1)1 / 252 runfailed over last 7 days |
56.35% (142)142 / 252 runsflaked over last 7 days |
Namespacing Inline Embed Double install Embed Snippet with inline embed without a namespace(i.e. default namespace)
Retry 1 • Initial Attempt |
0% (0)0 / 252 runsfailed over last 7 days |
58.73% (148)148 / 252 runsflaked over last 7 days |
📄 apps/web/playwright/login.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
user can login & logout succesfully -- future login flow user & logout using dashboard
Retry 1 • Initial Attempt |
3.53% (9)9 / 255 runsfailed over last 7 days |
30.20% (77)77 / 255 runsflaked over last 7 days |
📄 apps/web/playwright/teams.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Teams - NonOrg -- future Can create a booking for Round Robin EventType
Retry 2 • Retry 1 • Initial Attempt |
5.04% (13)13 / 258 runsfailed over last 7 days |
28.68% (74)74 / 258 runsflaked over last 7 days |
…on-fe-ui' into feat/license-creation-fe-ui
}; | ||
|
||
// Fetch wrapper function | ||
const fetchWithSignature = async ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://github.com/calcom/private-api/pull/5
For more info on this
…on-fe-ui' into feat/license-creation-fe-ui
…on-fe-ui' into feat/license-creation-fe-ui
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (05/24/24)1 reviewer was added to this PR based on Keith Williams's automation. |
|
||
export const CreateANewLicenseKeyForm = () => { | ||
const session = useSession(); | ||
if (session.data?.user.role !== "ADMIN") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we should be using a common function/constant here, no?
throw new Error("You do not have permission to do this."); | ||
} | ||
|
||
const request = await fetchWithSignature(`${privateApiUrl}/api/license`, input, signatureToken, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove the /api/
segment. This is very Next.js-y. Since we are hitting an API directly, I would expect the URL to be /v1/license. We need to make sure we version it for standard API procedures/practices and we can make updates without affecting applications using the API.
Sets up the inital UI for creating license keys.
Loom: https://app.campsite.co/cal/posts/u20i7qp36kfs#comment-wu34in68i2uu
If you want to test this full flow of this you can go ahead and clone
https://github.com/calcom/private-api/pull/12
setup .env vars + a new db
add the API url + secret to private api .env and also web.