Skip to content

fix: Install Stripe for team on team event type app page#10920

Merged
alannnc merged 3 commits into
mainfrom
fix/install-stripe-on-eventtype-for-teams
Aug 28, 2023
Merged

fix: Install Stripe for team on team event type app page#10920
alannnc merged 3 commits into
mainfrom
fix/install-stripe-on-eventtype-for-teams

Conversation

@joeauyeung
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR installs Stripe for a team if installed from that team's event type.

Fixes # (issue)

Requirement/Documentation

  • If there is a requirement document, please, share it here.
  • If there is ab 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?

  • Create a team event type
  • Go to the apps page and install Stripe
  • After the OAuth flow, Stripe should be installed for that team

Mandatory Tasks

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

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

@joeauyeung joeauyeung requested a review from a team August 24, 2023 00:43
@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 24, 2023

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

Name Status Preview Comments Updated (UTC)
api ❌ Failed (Inspect) Aug 28, 2023 4:54pm
cal 🔄 Building (Inspect) Visit Preview 💬 Add feedback Aug 28, 2023 4:54pm
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2023 4:54pm
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2023 4:54pm
ui ❌ Failed (Inspect) Aug 28, 2023 4:54pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
qa ⬜️ Ignored (Inspect) Visit Preview Aug 28, 2023 4:54pm

@joeauyeung joeauyeung self-assigned this Aug 24, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 24, 2023

Thank you for following the naming conventions! 🙏

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 24, 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
Copy Markdown

deploysentinel Bot commented Aug 24, 2023

Current Playwright Test Results Summary

✅ 122 Passing - ⚠️ 5 Flaky

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

(Last updated on 08/28/2023 04:58:28pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 47968bc

Started: 08/28/2023 04:56:24pm UTC

⚠️ Flakes

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Reschedule Tests Should be able to book slot that overlaps with original rescheduled booking
Retry 1Initial Attempt
0% (0) 0 / 250 runs
failed over last 7 days
2.80% (7) 7 / 250 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 can add multiple organizer address
Retry 1Initial Attempt
0.40% (1) 1 / 252 run
failed over last 7 days
4.76% (12) 12 / 252 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 can submit a form and get a submission event
Retry 1Initial Attempt
0% (0) 0 / 248 runs
failed over last 7 days
24.19% (60) 60 / 248 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 Routing Link should validate fields
Retry 1Initial Attempt
1.55% (4) 4 / 258 runs
failed over last 7 days
7.36% (19) 19 / 258 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should be able to reschedule
Retry 1Initial Attempt
0% (0) 0 / 256 runs
failed over last 7 days
99.61% (255) 255 / 256 runs
flaked over last 7 days

View Detailed Build Results


@joeauyeung joeauyeung marked this pull request as draft August 24, 2023 02:00
setRequirePayment(enabled);
}}>
}}
teamId={eventType.team?.id || undefined}>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Will it work for a managed event type? I have seen that for that we need to check for parent eventType's team.

Copy link
Copy Markdown
Contributor Author

@joeauyeung joeauyeung Aug 28, 2023

Choose a reason for hiding this comment

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

Just tested and everything is disabled on children event types. The teamId is used for installing the credentials for that team.

Copy link
Copy Markdown
Member

@hariombalhara hariombalhara left a comment

Choose a reason for hiding this comment

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

Left a comment for the confirmation, otherwise looks good.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 28, 2023

CLA assistant check
All committers have signed the CLA.

@alannnc alannnc dismissed hariombalhara’s stale review August 28, 2023 23:39

Changes were addressed.

@alannnc alannnc merged commit 2ee0ec1 into main Aug 28, 2023
@alannnc alannnc deleted the fix/install-stripe-on-eventtype-for-teams branch August 28, 2023 23:39
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

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants