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

Do not refresh shipping rates everytime the order is viewed in the admin #1798

Merged
merged 1 commit into from
Jun 28, 2017

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Mar 25, 2017

Mutating the order before rendering the edit form is strange. Also,
rates are refreshed when customer details are changed[1] as well as before the payment step.

[1] https://github.com/solidusio/solidus/blob/master/backend/app/controllers/spree/admin/orders/customer_details_controller.rb#L32

@mamhoff mamhoff added the WIP label Mar 25, 2017
@mamhoff mamhoff changed the title Do not refresh shipping rates everytime the order is viewed in the admin WIP Do not refresh shipping rates everytime the order is viewed in the admin Mar 25, 2017
Mutating the order before rendering the edit form is strange. Also,
rates are refreshed when customer details are changed[1] as well as when
line item quantities are updated [?] and well as before the payment step.

[1] https://github.com/solidusio/solidus/blob/master/backend/app/controllers/spree/admin/orders/customer_details_controller.rb#L32
@mamhoff mamhoff force-pushed the do-not-mutate-order-on-edit branch from 1f3b09d to db8f3d6 Compare March 25, 2017 18:30
@mamhoff mamhoff removed the WIP label Apr 23, 2017
@mamhoff mamhoff changed the title WIP Do not refresh shipping rates everytime the order is viewed in the admin Do not refresh shipping rates everytime the order is viewed in the admin Apr 23, 2017
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

👍

@gmacdougall gmacdougall merged commit 72ee3de into solidusio:master Jun 28, 2017
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.

4 participants