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: Remove hardcoded stripe.. #14549

Merged

Conversation

emrysal
Copy link
Contributor

@emrysal emrysal commented Apr 12, 2024

What does this PR do?

Fixes whenever any payment app credential was deleted, if there was an installed payment app of any type on an event type, it would add stripe incorrectly to the event type and brick the user.

Fixes: #14482
Fixes CAL-3377

This created invalid data in our database, like:
image

Instead, the right behaviour should be to remove the deletedCredential from the eventType(s) in it's entirety, no reason to keep historical data. For now we keep the hidden behaviour; however this should be reevaluated @PeerRich

Needs (but it's quite urgent):

  • Tests for payment app disconnect / reconnecting / deletion
  • Migrations to rectify broken apps (perhaps do it without migrations, instead fixing our data).

@graphite-app graphite-app bot requested a review from a team April 12, 2024 14:17
@dosubot dosubot bot added billing area: billing, stripe, payments, paypal, get paid core area: core, team members only platform Anything related to our platform plan 🐛 bug Something isn't working labels Apr 12, 2024
Copy link
Contributor

github-actions bot commented Apr 12, 2024

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

@graphite-app graphite-app bot requested a review from a team April 12, 2024 14:17
Copy link
Member

@sean-brydon sean-brydon left a comment

Choose a reason for hiding this comment

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

Well... That was fun <3

Copy link

graphite-app bot commented Apr 12, 2024

Graphite Automations

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

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

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

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

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

deploysentinel bot commented Apr 12, 2024

Current Playwright Test Results Summary

✅ 310 Passing - ⚠️ 7 Flaky

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

(Last updated on 04/12/2024 02:32:01pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 5b11eec

Started: 04/12/2024 02:28:36pm UTC

⚠️ Flakes

📄   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 2Retry 1Initial Attempt
0.61% (2) 2 / 328 runs
failed over last 7 days
4.57% (15) 15 / 328 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 -- legacy user Different Locations Tests Can remove location from multiple locations that are saved
Retry 1Initial Attempt
0% (0) 0 / 317 runs
failed over last 7 days
17.35% (55) 55 / 317 runs
flaked 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 1Initial Attempt
4.76% (15) 15 / 315 runs
failed over last 7 days
26.03% (82) 82 / 315 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Preview Preview - embed-core should load
Retry 1Initial Attempt
0% (0) 0 / 324 runs
failed over last 7 days
39.81% (129) 129 / 324 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 Can book a paid booking
Retry 1Initial Attempt
2.77% (9) 9 / 325 runs
failed over last 7 days
34.77% (113) 113 / 325 runs
flaked over last 7 days

📄   apps/web/playwright/bookings-list.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Bookings Upcoming bookings managed eventType booking should be visible to team admin
Retry 1Initial Attempt
7.41% (8) 8 / 108 runs
failed over last 7 days
21.30% (23) 23 / 108 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Inline Iframe Inline Iframe - Configured with Dark Theme
Retry 1Initial Attempt
0.62% (2) 2 / 324 runs
failed over last 7 days
52.78% (171) 171 / 324 runs
flaked over last 7 days

View Detailed Build Results


@emrysal emrysal merged commit ad844f5 into main Apr 12, 2024
41 checks passed
@emrysal emrysal deleted the bugfix/14482-remove-payment-metadata-on-deleteCredential branch April 12, 2024 14:50
Copy link

linear bot commented Apr 12, 2024

@dosubot dosubot bot modified the milestones: v4.1, v4.0 Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
billing area: billing, stripe, payments, paypal, get paid 🐛 bug Something isn't working core area: core, team members only foundation platform Anything related to our platform plan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3377] Issue with stripe meta data corrupts many different endpoints
3 participants