-
-
Notifications
You must be signed in to change notification settings - Fork 730
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 unused currency from calculators #10318
Remove unused currency from calculators #10318
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's very simple and clever. Thanks a lot.
Shouldn't we clean the |
This depends on openfoodfoundation#10318 being deployed first.
Ah, good question, I didn't think of that! I tried reading the Spree documentation to get an overview and understand how it is stored, but I think it just confused me more. Instead I browsed the database and it became clearer:
(it looks like older ones are stored in plain text, newer in a yaml format. doesn't matter either way). I don't know if Spree will automatically clean these up upon next save. And it probably doesn't matter. But now that I've come this far I will try cleaning up with a new PR. |
Hey @dacook , I've checked the enterprise fees page before (left - we can see the currency field) and after staging the PR (right - we can see the currency field is removed): Also, for payment methods: For shipping methods, Edit: this is correct, it only appears in some calculators. Updating the testing notes on the next comment. Good to go! Merging. |
This depends on openfoodfoundation#10318 being deployed first.
This depends on openfoodfoundation#10318 being deployed first.
What? Why?
What should we test?
As in #10272 (comment) . For example:
Amount
(flatrate, ...) you should not seeCurrency
input and therefore you should be able to edit it.Release notes
Changelog Category: User facing change
Documentation updates
The user guide already doesn't mention this field (eg https://guide.openfoodnetwork.org/basic-features/shopfront/shipping-methods#fee-calculators )
However it's already a bit confusing that you have to save/update before you can access the calculator values, so I've submitted a PR to update the user guide: openfoodfoundation/ofn-UserGuide#39