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: impersonation for orgs #12113

Merged
merged 5 commits into from
Oct 30, 2023
Merged

fix: impersonation for orgs #12113

merged 5 commits into from
Oct 30, 2023

Conversation

sean-brydon
Copy link
Member

@sean-brydon sean-brydon commented Oct 27, 2023

Fixes impersonation in an org context:

How to test:
Org admins/owners can impersonate anyone in the org if they have impersonation enabeld
Org Team owners/admins can impersonate anyone in THAT org team if they have impersonation enabled

Normal team/admin impersonation should remain the same

@vercel
Copy link

vercel bot commented Oct 27, 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 Oct 30, 2023 0:33am
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2023 0:33am
5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
api ⬜️ Ignored (Inspect) Visit Preview Oct 30, 2023 0:33am
cal ⬜️ Ignored (Inspect) Visit Preview Oct 30, 2023 0:33am
cal-demo ⬜️ Ignored (Inspect) Visit Preview Oct 30, 2023 0:33am
qa ⬜️ Ignored (Inspect) Visit Preview Oct 30, 2023 0:33am
ui ⬜️ Ignored (Inspect) Visit Preview Oct 30, 2023 0:33am

@sean-brydon
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 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!

@zomars zomars added the core area: core, team members only label Oct 27, 2023
@sean-brydon sean-brydon marked this pull request as ready for review October 27, 2023 09:37
@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 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! 🙌

@deploysentinel
Copy link

deploysentinel bot commented Oct 27, 2023

Current Playwright Test Results Summary

✅ 231 Passing - ⚠️ 6 Flaky

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

(Last updated on 10/30/2023 12:37:27pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 2f23471

Started: 10/30/2023 12:33:20pm UTC

⚠️ Flakes

📄   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 Event Types Page open Embed Dialog and choose element-click for First Event Type
Retry 1Initial Attempt
0% (0) 0 / 277 runs
failed over last 7 days
0.72% (2) 2 / 277 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Long Text Question and Each Other Question Booking With Long Text Question and Short text question Long Text and Short text required
Retry 1Initial Attempt
0% (0) 0 / 186 runs
failed over last 7 days
1.61% (3) 3 / 186 runs
flaked over last 7 days

📄   apps/web/playwright/login.2fa.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
2FA Tests should allow a user to enable 2FA and login using 2FA
Retry 1Initial Attempt
0.71% (2) 2 / 281 runs
failed over last 7 days
27.76% (78) 78 / 281 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 2Retry 1Initial Attempt
14.09% (42) 42 / 298 runs
failed over last 7 days
83.89% (250) 250 / 298 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
3.03% (9) 9 / 297 runs
failed over last 7 days
54.55% (162) 162 / 297 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 Can create a private team
Retry 1Initial Attempt
0% (0) 0 / 61 runs
failed over last 7 days
18.03% (11) 11 / 61 runs
flaked over last 7 days

View Detailed Build Results


@PeerRich PeerRich changed the title fix:impersonation-orgs fix: impersonation for orgs Oct 27, 2023
Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

how to impersonate as an org owner ? I don't see impersonation tab item in sidebar
Nevermind got it

@sean-brydon
Copy link
Member Author

@sean-brydon how to impersonate as an org owner ? I don't see impersonation tab item in sidebar

Screenshot 2023-10-27 at 5 35 37 PM

its located in the org members table -> three ∂ots and impersonate

@keithwillcode keithwillcode merged commit 0a59c95 into main Oct 30, 2023
36 checks passed
@keithwillcode keithwillcode deleted the 10-27-fix_impersonation-orgs branch October 30, 2023 15:20
hbjORbj pushed a commit to codemod-com/cal.com-demo that referenced this pull request Nov 28, 2023
hbjORbj pushed a commit to codemod-com/cal.com-demo that referenced this pull request Dec 21, 2023
zomars pushed a commit that referenced this pull request Jan 29, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants