Skip to content
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

fix: Allow lowercase/uppercase/mixedcase access with org team event booking page #12721

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

hariombalhara
Copy link
Member

@hariombalhara hariombalhara commented Dec 11, 2023

What does this PR do?

Allow team event booking page for an org to be accessed in all cases.
Fixes #11719

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Tests (Unit/Integration/E2E or any other test)

How should this be tested?

  • Create an org with slug org1 and create a team with slug marketing in it.
  • For that team, create an event syncup
  • Now all of these are different ways to access the same event booking page
    org1.cal.local:3000/Marketing/syncup and org1.cal.local:3000/MARketing/syncup and org1.cal.local:3000/marketing/syncup - All of these should work

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Copy link

vercel bot commented Dec 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2023 9:41pm
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2023 9:41pm
dev ❌ Failed (Inspect) Dec 12, 2023 9:41pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2023 9:41pm
cal-demo ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2023 9:41pm
qa ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2023 9:41pm
ui ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2023 9:41pm

@hariombalhara
Copy link
Member Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

Copy link
Contributor

github-actions bot commented Dec 11, 2023

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes!

Copy link
Contributor

github-actions bot commented Dec 11, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

deploysentinel bot commented Dec 11, 2023

Current Playwright Test Results Summary

✅ 364 Passing - ⚠️ 16 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 12/12/2023 09:40:13pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 16bc41b

Started: 12/12/2023 09:31:00pm UTC

⚠️ Flakes

📄   apps/web/playwright/booking/selectQuestion.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Phone Question and Each Other Question Booking With Select Question and multiselect Question Select required and multiselect text required
Retry 1Initial Attempt
0% (0) 0 / 196 runs
failed over last 7 days
2.55% (5) 5 / 196 runs
flaked over last 7 days

📄   apps/web/playwright/event-types.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Event Types tests user -- legacy enabling recurring event comes with default options
Retry 2Retry 1Initial Attempt
2.63% (5) 5 / 190 runs
failed over last 7 days
13.68% (26) 26 / 190 runs
flaked over last 7 days

📄   apps/web/playwright/booking/phoneQuestion.e2e.ts • 4 Flakes

Top 1 Common Error Messages

null

4 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Phone Question and Each Other Question Booking With Phone Question and Address Question Booking With Phone Question and Long text Question Phone and Long text required
Retry 1Initial Attempt
0.50% (1) 1 / 201 run
failed over last 7 days
1.99% (4) 4 / 201 runs
flaked over last 7 days
Booking With Phone Question and Each Other Question Booking With Phone Question and Address Question Booking With Phone Question and Long text Question Phone required and Long text not required
Retry 1Initial Attempt
0.50% (1) 1 / 201 run
failed over last 7 days
3.48% (7) 7 / 201 runs
flaked over last 7 days
Booking With Phone Question and Each Other Question Booking With Phone Question and Address Question Booking With Phone Question and Multi email Question Phone and Multi email required
Retry 1Initial Attempt
0.50% (1) 1 / 200 run
failed over last 7 days
3% (6) 6 / 200 runs
flaked over last 7 days
Booking With Phone Question and Each Other Question Booking With Phone Question and Address Question Booking With Phone Question and Multi email Question Phone required and Multi email not required
Retry 1Initial Attempt
0.50% (1) 1 / 200 run
failed over last 7 days
5.50% (11) 11 / 200 runs
flaked over last 7 days

📄   apps/web/playwright/team/team-invitation.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Team Invitation (non verified)
Retry 2Retry 1Initial Attempt
5.67% (11) 11 / 194 runs
failed over last 7 days
87.63% (170) 170 / 194 runs
flaked over last 7 days
Team Invitation (verified)
Retry 1Initial Attempt
0.52% (1) 1 / 194 run
failed over last 7 days
87.63% (170) 170 / 194 runs
flaked over last 7 days

📄   apps/web/playwright/oauth-provider.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
OAuth Provider should create valid access toke & refresh token for team
Retry 1Initial Attempt
1.40% (3) 3 / 214 runs
failed over last 7 days
18.69% (40) 40 / 214 runs
flaked over last 7 days

📄   apps/web/playwright/organization/organization-invitation.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Organization Invitation (verified)
Retry 1Initial Attempt
0.95% (2) 2 / 211 runs
failed over last 7 days
8.53% (18) 18 / 211 runs
flaked over last 7 days

📄   apps/web/playwright/change-username.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Change username on settings User can change username
Retry 1Initial Attempt
0% (0) 0 / 199 runs
failed over last 7 days
17.09% (34) 34 / 199 runs
flaked over last 7 days

📄   apps/web/playwright/embed-code-generator.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Embed Code Generator Tests Non-Organization Event Types Page open Embed Dialog and choose Inline for First Event Type
Retry 1Initial Attempt
2.02% (4) 4 / 198 runs
failed over last 7 days
2.53% (5) 5 / 198 runs
flaked over last 7 days

📄   apps/web/playwright/webhook.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
FORM_SUBMITTED on submitting user form, triggers user webhook
Retry 1Initial Attempt
1% (2) 2 / 200 runs
failed over last 7 days
8% (16) 16 / 200 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should be able to reschedule
Retry 1Initial Attempt
5.42% (11) 11 / 203 runs
failed over last 7 days
90.64% (184) 184 / 203 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when no theme is configured through Embed API
Retry 1Initial Attempt
0.50% (1) 1 / 202 run
failed over last 7 days
79.70% (161) 161 / 202 runs
flaked over last 7 days

📄   packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Router URL should work
Retry 1Initial Attempt
0% (0) 0 / 200 runs
failed over last 7 days
7% (14) 14 / 200 runs
flaked over last 7 days

View Detailed Build Results


@hariombalhara hariombalhara force-pushed the 12-11-Fix_any_case_access_with_org_team_events branch from a655149 to c644671 Compare December 11, 2023 08:53
@hariombalhara hariombalhara force-pushed the 12-11-Fix_any_case_access_with_org_team_events branch from 60a9705 to 37b9159 Compare December 11, 2023 09:44
@hariombalhara hariombalhara changed the title Fix any case access with org team events fix: Allow lowercase/uppercase/mixedcase access with org team event booking page Dec 11, 2023
@hariombalhara hariombalhara added the organizations area: organizations, orgs label Dec 11, 2023
Copy link
Member

@CarinaWolli CarinaWolli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected, nice fix 🙌🏻

@PeerRich PeerRich merged commit 6b09c6b into main Dec 13, 2023
41 of 42 checks passed
@PeerRich PeerRich deleted the 12-11-Fix_any_case_access_with_org_team_events branch December 13, 2023 02:02
hbjORbj pushed a commit to codemod-com/cal.com-demo that referenced this pull request Dec 21, 2023
…ooking page (calcom#12721)

Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core area: core, team members only organizations area: organizations, orgs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-2585] org team page not found with uppercase letters
4 participants