Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Update solidus_avatax for Solidus >= 1.1.0 #8

Conversation

jordan-brough
Copy link
Contributor

A couple things that need to be brought up to date here for Solidus >= 1.1.0

  1. spree_adjustments.state has been moved to spree_adjustments.finalized

See solidusio/solidus#279

We could alternatively replace the direct-table-accesses (e.g. update_all) so that they don't blow up, and we could have a bunch of checks scattered around to decide whether to set state or finalized (to avoid blowing up in the old code and avoid generating deprecation warnings all the time in the new Solidus) but that didn't seem worth it in this case. Happy to hear other opinions though.

  1. Spree::Address is now immutable

The address_decorator logic is now useless and the specs are also failing when they try to mutate an address

  1. Confirm is now truly a required step.

Some specs that try to transition from payment -> complete are failing.

spree_adjustments.state has been moved to spree_adjustments.finalized
in Solidus >= 1.1.0
@jordan-brough jordan-brough changed the title Handle adjustment schema update from Solidus Update solidus_avatax for Solids >= 1.1.0 Aug 25, 2015
@jordan-brough jordan-brough changed the title Update solidus_avatax for Solids >= 1.1.0 Update solidus_avatax for Solidus >= 1.1.0 Aug 25, 2015
Address is immutable in Solidus >= 1.1.0 so this code is useless and
the specs break when they try to mutate addresses.
@jordan-brough jordan-brough force-pushed the handle-adjustment-schema-update branch from 655fec9 to b79d0e8 Compare August 25, 2015 14:29
"confirm" is now truly a required step in Solidus 1.1.0
@jordan-brough jordan-brough force-pushed the handle-adjustment-schema-update branch from b79d0e8 to 696bb70 Compare August 25, 2015 14:32
@athal7
Copy link
Contributor

athal7 commented Aug 25, 2015

👍

1 similar comment
@magnusvk
Copy link
Contributor

👍

@jordan-brough jordan-brough deleted the handle-adjustment-schema-update branch August 25, 2015 15:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants