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: Check permissions for team OOO entries #14736

Conversation

zomars
Copy link
Member

@zomars zomars commented Apr 24, 2024

What does this PR do?

Fixes CAL-3527

Requirement/Documentation

  • If there is a requirement document, please, share it here.
  • If there is a UI/UX design document, please, share it here.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

Please refer to CAL-3527 ticket in Linear

Mandatory Tasks

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

Signed-off-by: zomars <zomars@me.com>
@zomars zomars added the Urgent Created by Linear-GitHub Sync label Apr 24, 2024
@graphite-app graphite-app bot requested a review from a team April 24, 2024 17:51
Copy link
Contributor

github-actions bot commented Apr 24, 2024

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

@keithwillcode keithwillcode added api area: API, enterprise API, access token, OAuth core area: core, team members only foundation labels Apr 24, 2024
@dosubot dosubot bot added teams area: teams, round robin, collective, managed event-types 🐛 bug Something isn't working labels Apr 24, 2024
Copy link

vercel bot commented Apr 24, 2024

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

Name Status Preview Comments Updated (UTC)
platform-starter-kit ❌ Failed (Inspect) Apr 24, 2024 6:57pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Apr 24, 2024 6:57pm
cal ⬜️ Ignored (Inspect) Visit Preview Apr 24, 2024 6:57pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Apr 24, 2024 6:57pm

uuid: true,
userId: true,
},
const deletedOutOfOfficeEntry = await prisma.outOfOfficeEntry.delete({
Copy link
Member Author

Choose a reason for hiding this comment

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

Refactored so this runs in a single query

Copy link
Member Author

@zomars zomars left a comment

Choose a reason for hiding this comment

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

Self review done

@zomars zomars enabled auto-merge (squash) April 24, 2024 17:53
emrysal
emrysal previously approved these changes Apr 24, 2024
Copy link

graphite-app bot commented Apr 24, 2024

Graphite Automations

"Add foundation team as reviewer" took an action on this PR • (04/24/24)

1 reviewer was added to this PR based on Keith Williams's automation.

@zomars zomars disabled auto-merge April 24, 2024 18:53
Copy link
Contributor

📦 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

Current Playwright Test Results Summary

✅ 52 Passing - ⚠️ 2 Flaky

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

(Last updated on 04/24/2024 07:18:57pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 5cb31bd

Started: 04/24/2024 07:18:19pm UTC

⚠️ Flakes

📄   packages/embeds/embed-react/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
React Embed Element Click Popup should verify that the iframe got created with correct URL - namespaced
Retry 1Initial Attempt
18.92% (35) 35 / 185 runs
failed over last 7 days
36.76% (68) 68 / 185 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
1.14% (3) 3 / 263 runs
failed over last 7 days
10.65% (28) 28 / 263 runs
flaked over last 7 days

View Detailed Build Results


Copy link

deploysentinel bot commented Apr 24, 2024

Current Playwright Test Results Summary

✅ 314 Passing - ⚠️ 23 Flaky

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

(Last updated on 04/24/2024 07:22:24pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 5cb31bd

Started: 04/24/2024 07:18:19pm UTC

⚠️ Flakes

📄   apps/web/playwright/event-types.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
Event Types tests -- future user enabling recurring event comes with default options
Retry 1Initial Attempt
0% (0) 0 / 263 runs
failed over last 7 days
7.98% (21) 21 / 263 runs
flaked over last 7 days
Event Types tests -- legacy user Different Locations Tests Can remove location from multiple locations that are saved
Retry 1Initial Attempt
0.46% (1) 1 / 218 run
failed over last 7 days
27.52% (60) 60 / 218 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
BOOKING_RESCHEDULED when rescheduling to a booking that already exists, should send a booking rescheduled event with the existant booking uid
Retry 2Retry 1Initial Attempt
4.82% (11) 11 / 228 runs
failed over last 7 days
11.84% (27) 27 / 228 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 Email not matching orgAutoAcceptEmail nonexisting user invited to a Team inside organization
Retry 2Retry 1Initial Attempt
0.88% (2) 2 / 228 runs
failed over last 7 days
12.28% (28) 28 / 228 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Reschedule for booking with seats If rescheduled/cancelled booking with seats it should display the correct number of seats
Retry 1Initial Attempt
0% (0) 0 / 219 runs
failed over last 7 days
4.11% (9) 9 / 219 runs
flaked over last 7 days

📄   apps/web/playwright/integrations-stripe.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Stripe integration When event is paid and confirmed Paid and confirmed booking should be able to be rescheduled
Retry 1Initial Attempt
17.89% (44) 44 / 246 runs
failed over last 7 days
4.07% (10) 10 / 246 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Update Profile Can update a users email (verification enabled)
Retry 1Initial Attempt
9.25% (21) 21 / 227 runs
failed over last 7 days
30.84% (70) 70 / 227 runs
flaked 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 2Retry 1Initial Attempt
18.32% (50) 50 / 273 runs
failed over last 7 days
22.71% (62) 62 / 273 runs
flaked over last 7 days

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

Top 1 Common Error Messages

null

8 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1Initial Attempt
16.09% (42) 42 / 261 runs
failed over last 7 days
52.49% (137) 137 / 261 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-167.07% (-137) -137 / 82 runs
failed over last 7 days
167.07% (137) 137 / 82 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-165.85% (-136) -136 / 82 runs
failed over last 7 days
165.85% (136) 136 / 82 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
-164.63% (-135) -135 / 82 runs
failed over last 7 days
165.85% (136) 136 / 82 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 configured with 'auto' theme using Embed API
Retry 1Initial Attempt
-167.90% (-136) -136 / 81 runs
failed over last 7 days
167.90% (136) 136 / 81 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(Event Booking Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-167.90% (-136) -136 / 81 runs
failed over last 7 days
167.90% (136) 136 / 81 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(Booker Profile Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-167.90% (-136) -136 / 81 runs
failed over last 7 days
167.90% (136) 136 / 81 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-167.90% (-136) -136 / 81 runs
failed over last 7 days
167.90% (136) 136 / 81 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/namespacing.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
Namespacing Inline Embed Add inline embed using a namespace without reload
Retry 1Initial Attempt
0.57% (1) 1 / 176 run
failed over last 7 days
50.57% (89) 89 / 176 runs
flaked over last 7 days
Namespacing Inline Embed Double install Embed Snippet with inline embed using a namespace
Retry 1Initial Attempt
0% (0) 0 / 176 runs
failed over last 7 days
51.14% (90) 90 / 176 runs
flaked over last 7 days
Namespacing Different namespaces can have different init configs
Retry 1Initial Attempt
0% (0) 0 / 174 runs
failed over last 7 days
51.15% (89) 89 / 174 runs
flaked over last 7 days
Namespacing Inline Embed Double install Embed Snippet with inline embed without a namespace(i.e. default namespace)
Retry 1Initial Attempt
0% (0) 0 / 176 runs
failed over last 7 days
51.70% (91) 91 / 176 runs
flaked over last 7 days

📄   packages/app-store/routing-forms/playwright/tests/basic.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
Routing Forms Seeded Routing Form Router URL should work
Retry 1Initial Attempt
1.14% (3) 3 / 264 runs
failed over last 7 days
10.61% (28) 28 / 264 runs
flaked over last 7 days
Routing Forms Seeded Routing Form Test preview should return correct route
Retry 1Initial Attempt
0.38% (1) 1 / 262 run
failed over last 7 days
33.21% (87) 87 / 262 runs
flaked over last 7 days

📄   packages/embeds/embed-react/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
React Embed Element Click Popup should verify that the iframe got created with correct URL - namespaced
Retry 1Initial Attempt
18.82% (35) 35 / 186 runs
failed over last 7 days
37.10% (69) 69 / 186 runs
flaked over last 7 days

View Detailed Build Results


@zomars zomars merged commit d8adc8e into main Apr 24, 2024
37 of 39 checks passed
@zomars zomars deleted the zomars/cal-3527-security-vulnerability-create-out-of-office-and-forward branch April 24, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api area: API, enterprise API, access token, OAuth 🐛 bug Something isn't working core area: core, team members only foundation teams area: teams, round robin, collective, managed event-types Urgent Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants