-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Extract Legacy Promotion System: Move ActiveRecord Models and Factories #5634
Commits on Jun 19, 2024
-
Change default promotion source types to be empty
`Spree::PromotionAction` is not in core any longer, and the null promo adjuster can not actually produce any adjustments.
Configuration menu - View commit details
-
Copy full SHA for 57ea514 - Browse repository at this point
Copy the full SHA 57ea514View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aa5911 - Browse repository at this point
Copy the full SHA 7aa5911View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb6f7d8 - Browse repository at this point
Copy the full SHA eb6f7d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0e19d9 - Browse repository at this point
Copy the full SHA a0e19d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6556b9a - Browse repository at this point
Copy the full SHA 6556b9aView commit details -
Legacy promotions: Conditionally run migrations
Since these promotions will be installed into all stores, we need to make sure they don't do anything to the existing promotion system. For new stores, they must do the things though.
Configuration menu - View commit details
-
Copy full SHA for 3dd49bd - Browse repository at this point
Copy the full SHA 3dd49bdView commit details -
Move promotion-specific code from product.rb to gem
We need to purge references to Solidus' legacy promotion system from the core.
Configuration menu - View commit details
-
Copy full SHA for a8c99c9 - Browse repository at this point
Copy the full SHA a8c99c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fd075a - Browse repository at this point
Copy the full SHA 3fd075aView commit details -
Move promotion calculators to legacy_promotions
Except for the flat rate calculator, as that one is so generic it's often just used as a stand-in calculator.
Configuration menu - View commit details
-
Copy full SHA for 46eccef - Browse repository at this point
Copy the full SHA 46eccefView commit details -
Move promotion permission sets to legacy_promotions
In legacy_promotions, we'll just keep them in `app`, where they're tested, too.
Configuration menu - View commit details
-
Copy full SHA for 2a4c53c - Browse repository at this point
Copy the full SHA 2a4c53cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5547c4d - Browse repository at this point
Copy the full SHA 5547c4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8825398 - Browse repository at this point
Copy the full SHA 8825398View commit details -
Move promotion-specific code from Spree::Adjustment to legacy_promotions
We don't need #recalculate for anything in core, and we don´t need the association to promotion codes.
Configuration menu - View commit details
-
Copy full SHA for 69b837f - Browse repository at this point
Copy the full SHA 69b837fView commit details -
Move spec for Shipment#total_before_tax to legacy_promotions
I'm keeping the spec to test what the model does, but moving the extended spec with the actual promotion to solidus_legacy_promotions.
Configuration menu - View commit details
-
Copy full SHA for 81c8460 - Browse repository at this point
Copy the full SHA 81c8460View commit details -
Configuration menu - View commit details
-
Copy full SHA for c860e8d - Browse repository at this point
Copy the full SHA c860e8dView commit details -
Automatically add legacy promotion factories
This should help everyones test suite's to stay green.
Configuration menu - View commit details
-
Copy full SHA for a78e28d - Browse repository at this point
Copy the full SHA a78e28dView commit details