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 2.1] Fix Update and Calculate Fees button #5383

Merged

Conversation

luisramos0
Copy link
Contributor

What? Why?

Closes #5362

Problem with strong params where order object is not sent to the server and is not needed. Strong params validation was expecting it.

What should we test?

Verify issue is fixed.
I recommend verifying that the bug only happens with completed orders, not orders in cart.

Release notes

Changelog Category: Fixed
Fix bug in strong params implementation in admin orders controller.

@luisramos0 luisramos0 self-assigned this May 7, 2020
@luisramos0 luisramos0 changed the title Admin orders bug [Spree 2.1] Fix Update and Calculate Fees button May 7, 2020
@luisramos0 luisramos0 changed the base branch from master to 3-0-stable May 7, 2020 15:46
@luisramos0
Copy link
Contributor Author

Build looks good, only #5385 is broken.

@filipefurtad0 filipefurtad0 self-assigned this May 20, 2020
@filipefurtad0
Copy link
Contributor

filipefurtad0 commented May 20, 2020

Olá @luisramos0 ,
As you mentioned on slack, there are currently conflicts with master. Should this fix be staged for testing, or is the server already running this change in the code?

I confirm that for orders in the cart-state the Update and Recalculate Fees works as expected, and that the bug is (still) occurring only for finished orders.

@luisramos0
Copy link
Contributor Author

luisramos0 commented May 20, 2020

I think we should block any new spree upgrade PRs (and just keep what's in staging UK as is) until the upgrade branch is not very broken.
This way you guys can continue the overall testing of the version.
After this problem of the build is fixed, all spree upgrade PRs should be staged individually and tested individually like in master: this will ensure the general testing done so far is not invalidated by some PR.

@luisramos0
Copy link
Contributor Author

rebased to get latest 3-0-stable before testing.

@filipefurtad0
Copy link
Contributor

Hi @luisramos0 ,
Feel free to stage this PR for testing.
Thank you!

@luisramos0 luisramos0 added the pr-staged-uk staging.openfoodnetwork.org.uk label Jun 1, 2020
@luisramos0
Copy link
Contributor Author

ok, this is staged 👍

@filipefurtad0
Copy link
Contributor

filipefurtad0 commented Jun 2, 2020

Hi @luisramos0 ,

The Update and Calculate Fees button seems to be working fine now - the issue is solved 👍

Thank you!

PS/Update: sorry - I forgot to add before, that indeed this is only verified for complete orders, and not orders in the cart.

@luisramos0 luisramos0 merged commit 8bb4310 into openfoodfoundation:3-0-stable Jun 2, 2020
@luisramos0 luisramos0 deleted the admin_orders_bug branch June 2, 2020 14:30
@luisramos0 luisramos0 removed the pr-staged-uk staging.openfoodnetwork.org.uk label Jun 2, 2020
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.

[Spree 2.1] Update and Calculate Fees button leads to blank page
4 participants