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

Spree tidy-up #7977

Merged
merged 7 commits into from
Jul 27, 2021
Merged

Spree tidy-up #7977

merged 7 commits into from
Jul 27, 2021

Conversation

Matt-Yorkley
Copy link
Contributor

What? Why?

Cleans up a few bits of old mess noticed whilst doing code review on #7947. Removes various unnecessary uses of class_eval, which modifies classes after they're loaded. Avoiding it will probably be a good idea when we're using Zeitwerk 👍

What should we test?

Green build should be enough here.

Release notes

Changelog Category: Technical changes

@Matt-Yorkley Matt-Yorkley self-assigned this Jul 24, 2021
@codecov
Copy link

codecov bot commented Jul 24, 2021

Codecov Report

Merging #7977 (6c64bce) into master (c6743d8) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 6c64bce differs from pull request most recent head 38aac70. Consider uploading reports for the commit 38aac70 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7977      +/-   ##
==========================================
- Coverage   93.27%   93.27%   -0.01%     
==========================================
  Files         640      639       -1     
  Lines       18152    18145       -7     
==========================================
- Hits        16931    16924       -7     
  Misses       1221     1221              
Impacted Files Coverage Δ
app/models/calculator/price_sack.rb 100.00% <ø> (ø)
lib/spree/core.rb 96.55% <ø> (-0.12%) ⬇️
app/controllers/api/v0/base_controller.rb 100.00% <100.00%> (ø)
app/models/concerns/calculated_adjustments.rb 100.00% <100.00%> (ø)
app/models/concerns/payment_method_distributors.rb 100.00% <100.00%> (ø)
app/models/enterprise_fee.rb 100.00% <100.00%> (ø)
app/models/spree/gateway.rb 94.11% <100.00%> (+0.17%) ⬆️
app/models/spree/payment_method.rb 92.72% <100.00%> (-0.38%) ⬇️
app/models/spree/shipping_method.rb 96.61% <100.00%> (ø)
app/models/spree/tax_rate.rb 100.00% <100.00%> (ø)
... and 1 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 c6743d8...38aac70. Read the comment docs.

@Matt-Yorkley
Copy link
Contributor Author

Matt-Yorkley commented Jul 26, 2021

Avoiding it will probably be a good idea when we're using Zeitwerk

Turns out the Zeitwerk PR fails on deployment with errors caused by... exactly the bits of code I've already tidied up here.

#PremonitionDrivenDevelopment

:trollface:

@Matt-Yorkley Matt-Yorkley merged commit 9d4b34b into openfoodfoundation:master Jul 27, 2021
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