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

Stripe integration updates for card #4768

Merged
merged 7 commits into from
Apr 8, 2024

Conversation

SteveDMurphy
Copy link
Contributor

@SteveDMurphy SteveDMurphy commented Apr 2, 2024

Closes FIDES-581

Description Of Changes

The Card endpoint for Stripe no longer supports country, this is being removed along with changing the endpoint to a delete instead of update due to card expiration dates casuing issues.

Code Changes

  • Remove country from Card collection
  • Make card a delete instead of update

Steps to Confirm

  • Tested live with bug

Pre-Merge Checklist

Copy link

vercel bot commented Apr 2, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Apr 8, 2024 11:14am

@SteveDMurphy SteveDMurphy requested a review from galvana April 2, 2024 16:06
@SteveDMurphy SteveDMurphy self-assigned this Apr 2, 2024
Copy link

cypress bot commented Apr 2, 2024

Passing run #7096 ↗︎

0 4 0 0 Flakiness 0

Details:

Merge 0bbe4e9 into 665b454...
Project: fides Commit: 5429e3b9f0 ℹ️
Status: Passed Duration: 00:35 💡
Started: Apr 5, 2024 10:15 PM Ended: Apr 5, 2024 10:16 PM

Review all test suite changes for PR #4768 ↗︎

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.47%. Comparing base (665b454) to head (0bbe4e9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4768   +/-   ##
=======================================
  Coverage   69.47%   69.47%           
=======================================
  Files         519      519           
  Lines       25055    25055           
  Branches     2739     2739           
=======================================
  Hits        17408    17408           
  Misses       7168     7168           
  Partials      479      479           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@galvana galvana changed the title Stripe Integration Updatese for Card Stripe integration updates for card Apr 2, 2024
Copy link
Contributor

@galvana galvana left a comment

Choose a reason for hiding this comment

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

Hey @SteveDMurphy please take a look at my changes, we can merge this if you sign off on it

data/saas/config/stripe_config.yml Show resolved Hide resolved
data/saas/dataset/stripe_dataset.yml Show resolved Hide resolved
data/saas/dataset/stripe_dataset.yml Show resolved Hide resolved
tests/fixtures/saas/stripe_fixtures.py Outdated Show resolved Hide resolved
@SteveDMurphy SteveDMurphy marked this pull request as ready for review April 3, 2024 15:20
@SteveDMurphy SteveDMurphy requested a review from a team as a code owner April 3, 2024 15:20
@SteveDMurphy SteveDMurphy requested a review from galvana April 3, 2024 15:20
Copy link
Contributor

@galvana galvana left a comment

Choose a reason for hiding this comment

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

Thanks for reviewing this again @SteveDMurphy, this looks good to me!

method: POST
delete:
method: DELETE
ignore_errors: [404] # ignore errors if the card no longer exists
Copy link
Contributor Author

Choose a reason for hiding this comment

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

included ignoring a 404 here, we ignore others already and this helps resolve errors for cards not found when a user approves two erasure requests simultaneously @galvana

@SteveDMurphy SteveDMurphy merged commit b8a34b4 into main Apr 8, 2024
38 of 39 checks passed
@SteveDMurphy SteveDMurphy deleted the SteveDMurphy-fides-581-stripe-updates branch April 8, 2024 11:38
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