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

Remove stripe decorator #8071

Conversation

andrewpbrett
Copy link
Contributor

What? Why?

Closes #7326

As part of refactoring and proactively debugging our Stripe integration, we'd like to stay as close as possible to the officially supported ActiveMerchant code.

What should we test?

This will need a thorough testing of all payment areas

Release notes

Removed the Stripe decorator to realign OFN with the officially supported ActiveMerchant code

Changelog Category: Technical changes

Dependencies

Documentation updates

@andrewpbrett andrewpbrett self-assigned this Aug 17, 2021
@andrewpbrett andrewpbrett marked this pull request as draft August 17, 2021 22:13
@codecov
Copy link

codecov bot commented Aug 17, 2021

Codecov Report

Merging #8071 (bdb85a8) into master (f783926) will decrease coverage by 70.11%.
The diff coverage is 0.00%.

❗ Current head bdb85a8 differs from pull request most recent head 8f5d6d2. Consider uploading reports for the commit 8f5d6d2 to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           master    #8071       +/-   ##
===========================================
- Coverage   93.21%   23.10%   -70.12%     
===========================================
  Files         645      571       -74     
  Lines       18161    20861     +2700     
===========================================
- Hits        16928     4819    -12109     
- Misses       1233    16042    +14809     
Impacted Files Coverage Δ
app/models/spree/gateway/stripe_sca.rb 36.95% <ø> (-60.90%) ⬇️
lib/stripe/credit_card_clone_finder.rb 35.00% <0.00%> (-65.00%) ⬇️
lib/stripe/profile_storer.rb 27.77% <0.00%> (-72.23%) ⬇️
app/jobs/job_logger.rb 0.00% <0.00%> (-100.00%) ⬇️
app/jobs/heartbeat_job.rb 0.00% <0.00%> (-100.00%) ⬇️
app/services/unit_price.rb 0.00% <0.00%> (-100.00%) ⬇️
app/models/order_balance.rb 0.00% <0.00%> (-100.00%) ⬇️
app/helpers/mailer_helper.rb 0.00% <0.00%> (-100.00%) ⬇️
app/jobs/bulk_invoice_job.rb 0.00% <0.00%> (-100.00%) ⬇️
app/services/cap_quantity.rb 0.00% <0.00%> (-100.00%) ⬇️
... and 570 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f783926...8f5d6d2. Read the comment docs.

If the response has `nil` for `gateway_payment_profile_id` or `gateway_customer_profile_id`, but we've already stored those, don't overwrite the existing values
@andrewpbrett andrewpbrett force-pushed the remove-stripe-decorator branch 4 times, most recently from c79e07c to 6807d86 Compare August 20, 2021 00:17
@andrewpbrett andrewpbrett force-pushed the remove-stripe-decorator branch from 6807d86 to 0f3bcc6 Compare August 20, 2021 00:59
@RachL
Copy link
Contributor

RachL commented Jan 12, 2022

@Matt-Yorkley do you know if we still need this PR after your refactoring? In any case, shall this PR be closed?

@Matt-Yorkley
Copy link
Contributor

Matt-Yorkley commented Jan 12, 2022

The original issue #7326 is still valid, the decorator is still in place. I think we can close this PR for now though 👍

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.

Reduce/remove ActiveMerchant Stripe decorator
3 participants