Skip to content

Upgrade djstripe #12148

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 4 commits into from
May 6, 2025
Merged

Upgrade djstripe #12148

merged 4 commits into from
May 6, 2025

Conversation

humitos
Copy link
Member

@humitos humitos commented Apr 30, 2025

Closes #9706

@humitos humitos requested a review from a team as a code owner April 30, 2025 11:17
@humitos humitos requested a review from ericholscher April 30, 2025 11:17
@humitos humitos requested a review from stsewd April 30, 2025 15:05
@@ -430,16 +430,3 @@ def test_subscription_precedence(self):

self.organization.refresh_from_db()
assert self.organization.stripe_subscription == stripe_subscription

def test_register_events(self):
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't look like we should delete these?

Copy link
Member Author

Choose a reason for hiding this comment

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

I deleted it because "webhooks.registration" doesn't exist anymore. They deleted that file completely from the repository and I didn't find a replacement 🤷‍♂️

regex

# NOTE: djstripe overrides the stripe api version
Copy link
Member

Choose a reason for hiding this comment

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

We should keep this note, but we use the stripe package directly in .org.

Copy link
Member Author

Choose a reason for hiding this comment

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

The newer version says this is not like that anymore. There is a note in the release notes.

Maybe we should define it explicitly now?

Copy link
Member

Choose a reason for hiding this comment

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

I didn't find any mention of that, can you link me to that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. I'll share it once I get to my laptop

Copy link
Member Author

Choose a reason for hiding this comment

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

It's under "Other changes" at https://github.com/dj-stripe/dj-stripe/releases/tag/2.8.0

stripe.api_version is no longer manipulated by dj-stripe.

@humitos humitos requested a review from stsewd May 6, 2025 09:30
@humitos humitos mentioned this pull request May 6, 2025
@humitos
Copy link
Member Author

humitos commented May 6, 2025

I'm going to merge this PR now so we can deploy it today. @stsewd @ericholscher I would still appreciate any feedback you may have here. I also suppose we will fix anything we find during deploy, tho 😄

@humitos humitos merged commit 080fdf0 into main May 6, 2025
3 of 4 checks passed
@humitos humitos deleted the humitos/upgrade-djstripe branch May 6, 2025 11:06
@humitos
Copy link
Member Author

humitos commented May 6, 2025

Hrm... corporate fails due

  File "/home/circleci/readthedocs-corporate/.tox/py312/readthedocs.org/readthedocs/subscriptions/event_handlers.py", line 39, in decorator
    return webhooks.handler(*args, **kwargs)(func)
           ^^^^^^^^^^^^^^^^
AttributeError: module 'djstripe.webhooks' has no attribute 'handler'

I know that file was removed but I'm not sure what's the replacement, yet. I will investigate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Requirements: upgrade dj-stripe
2 participants