File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ In-Memory Order Updater TODO
2+ ===
3+
4+ - [x] Add additional cases to item_total_updater_spec (doesn't currently account for included adjustments)
5+ - [x] Consider Sofia's recommendation to break this class into POROs to simplify testing
6+ - [x] Add test coverage for ` recalculate_item_total ` when line item totals change
7+ - [x] Scope handling of tax adjustments in ` InMemoryOrderUpdater ` to * not* marked for destruction
8+ - [x] Scope handling of tax adjustments in ` OrderUpdater ` to * not* marked for destruction
9+ - [x] Ensure order-level tax adjustments (like Colorado delivery) are scoped out of tax total and adjustment total calculations
10+ - [x] Handle persistence in ` update_taxes `
11+ - [x] ~ Write the ` InMemoryOrderAdjuster ` (also, should we rename this to ` InMemoryOrderPromotionAdjuster ` )~
12+ - [ In Progress] Handle persistence in all implementations of ` promotions.order_adjuster_class `
13+ - Follow up on any failing test relating to change in promotion chooser
14+ - Continue on with new promotion system similar change
15+ - [ ] Investigate if any promotion actions write to the database when calling ` compute_amount `
16+ - Create quantity adjustments, this action persists when compute_amount is called
17+ - [ ] Test coverage to ensure state changes aren't persisted (if someone changes current implementation)
18+ - [ ] We should be able to blow up if something tries to persist
19+ - https://github.com/sds/db-query-matchers/blob/0deaaac360f43e6cc15c03a7fca8425cf65dd703/lib/db_query_matchers/make_database_queries.rb#L74-L82
20+ - https://api.rubyonrails.org/classes/ActiveSupport/Notifications.html#method-c-subscribed
21+ - "By calling this in memory order updater, we are making a contract with the user that it will be in memory"
22+ - "This is really something which theoretically should be covered in tests"
23+
You can’t perform that action at this time.
0 commit comments