Skip to content

Dependencies: all packages updated via pip-tools #9688

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
Nov 3, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Dependencies: all packages updated via pip-tools

@github-actions github-actions bot requested a review from a team as a code owner October 23, 2022 00:11
@github-actions github-actions bot requested review from stsewd and removed request for stsewd October 23, 2022 00:11
@@ -96,7 +96,7 @@ distlib==0.3.6
# virtualenv
dj-pagination==2.5.0
# via -r requirements/pip.txt
dj-stripe==2.6.3
Copy link
Member

Choose a reason for hiding this comment

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

There is some breaking changes added in 2.7.0; so we should take a look at the release notes first: https://github.com/dj-stripe/dj-stripe/releases cc @stsewd

Copy link
Member

Choose a reason for hiding this comment

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

The breaking change is around webhooks and how to manage API keys, they are now in the database. I did a small test, and don't think this will cause any downtime. The steps would be:

  • Run the migrations on web extra
  • Create an API key on the admin
    (/admin/djstripe/apikey/)
  • Release the webs
  • Create a webhook endpoint after the release is done
    (/admin/djstripe/webhookendpoint/), the webhook will be created on stripe automatically.
  • Deactivate the old webhook

The old and the new webhook will work at the same time, so we won't lose any events.

The migration is https://github.com/dj-stripe/dj-stripe//blob/bc0bd5c1/djstripe/migrations/0011_2_7.py, there are a couple of new fields that aren't nullable, but if the webhooks fail, stripe will retry them, and by that time the new code would be live.

Copy link
Member

Choose a reason for hiding this comment

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

OK. I will revert this upgrade and I'll create an issue track this particular one since it's not trivial

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

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

DjStripe made some breaking changes we need to double check before merging.

@humitos humitos force-pushed the dependencies/pip-tools-9926b0f branch from 2d533a8 to 7170e4e Compare November 3, 2022 09:41
@humitos humitos enabled auto-merge (squash) November 3, 2022 09:42
@humitos humitos merged commit fa81ddd into main Nov 3, 2022
@humitos humitos deleted the dependencies/pip-tools-9926b0f branch November 3, 2022 09:55
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.

2 participants