Skip to content

dev: upgrade stripe to v5 #88755

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

Merged
merged 2 commits into from
May 6, 2025
Merged

dev: upgrade stripe to v5 #88755

merged 2 commits into from
May 6, 2025

Conversation

ajay-sentry
Copy link
Contributor

This PR aims to upgrade stripe to v5.5.0 from v4.2.0.

No breaking changes that I could see we were affected by --

  • Checked as many references to stripe.resource.retrieve() as I could find to see if we were calling .save() on any of them and couldn't find one
    • I used this regex stripe.[a-zA-Z]+.retrieve if anyone wants to double check
  • Not using orders or SKU object so unaffected by those changes

Notion

Migration Guide

Changelog

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@ajay-sentry ajay-sentry requested a review from a team as a code owner April 3, 2025 22:15
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 3, 2025
@ajay-sentry ajay-sentry requested a review from a team April 3, 2025 22:15
Copy link

codecov bot commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #88755      +/-   ##
==========================================
- Coverage   87.80%   87.76%   -0.05%     
==========================================
  Files       10292    10183     -109     
  Lines      583943   582366    -1577     
  Branches    22577    22348     -229     
==========================================
- Hits       512756   511097    -1659     
- Misses      70773    70889     +116     
+ Partials      414      380      -34     

Copy link
Contributor

@vbro vbro left a comment

Choose a reason for hiding this comment

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

LGTM
What do we get in version 5 that we don't have in version 4.
Is the goal to upgrade all the way to version 12?

@ajay-sentry
Copy link
Contributor Author

@vbro Nothing specifically from v5, but yeah the goal would be to get us on latest. There are some cool things enabled with later versions like described here: https://docs.stripe.com/upgrades#2023-08-16

@ajay-sentry ajay-sentry merged commit a9a8f27 into master May 6, 2025
59 checks passed
@ajay-sentry ajay-sentry deleted the Ajay/stripe-v5 branch May 6, 2025 17:01
andrewshie-sentry pushed a commit that referenced this pull request May 12, 2025
This PR aims to upgrade stripe to v5.5.0 from v4.2.0.

No breaking changes that I could see we were affected by --
- Checked as many references to stripe.`resource`.retrieve() as I could
find to see if we were calling .save() on any of them and couldn't find
one
- I used this regex stripe\.[a-zA-Z]+\.retrieve if anyone wants to
double check
- Not using orders or SKU object so unaffected by those changes


[Notion](https://www.notion.so/sentry/Upgrading-Stripe-from-v3-to-latest-1c88b10e4b5d80adbf87f574c2929d27?p=1c88b10e4b5d81c2aa38d9dc0046e547&pm=s)

[Migration
Guide](https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v5)

[Changelog](https://github.com/stripe/stripe-python/releases?page=15)


<!--

  Sentry employees and contractors can delete or ignore the following.

-->

### Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants