-
-
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
In-memory order updater #5872
base: main
Are you sure you want to change the base?
In-memory order updater #5872
Commits on Nov 8, 2024
-
https://github.com/sds/db-query-matchers Co-authored-by: Adam Mueller <[email protected]> Co-authored-by: Andrew Stewart <[email protected]> Co-authored-by: Harmony Evangelina <[email protected]> Co-authored-by: Jared Norman <[email protected]> Co-authored-by: Nick Van Doorn <[email protected]> Co-authored-by: Noah Silvera <[email protected]> Co-authored-by: Senem Soy <[email protected]> Co-authored-by: Sofia Besenski <[email protected]> Co-authored-by: Tom Van Manen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1f45b88 - Browse repository at this point
Copy the full SHA 1f45b88View commit details -
Copy existing
OrderUpdater
implementationIn subsequent commits we'll ensure that this can update orders in memory, without persisting changes using manipulative DB queries. Co-authored-by: Adam Mueller <[email protected]> Co-authored-by: Andrew Stewart <[email protected]> Co-authored-by: Harmony Evangelina <[email protected]> Co-authored-by: Jared Norman <[email protected]> Co-authored-by: Nick Van Doorn <[email protected]> Co-authored-by: Noah Silvera <[email protected]> Co-authored-by: Senem Soy <[email protected]> Co-authored-by: Sofia Besenski <[email protected]> Co-authored-by: Tom Van Manen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a3003e1 - Browse repository at this point
Copy the full SHA a3003e1View commit details -
Add
persist
flag to#recalculate
We want our new in-memory order updater to be able to persist or not persist changes to the order record. WORK IN PROGRESS This is a first step in ensuring we don't need to write to the database using the order updater. Clearly we have more work to do to ensure this functions like the existing updater. Co-authored-by: Adam Mueller <[email protected]> Co-authored-by: Andrew Stewart <[email protected]> Co-authored-by: Harmony Evangelina <[email protected]> Co-authored-by: Jared Norman <[email protected]> Co-authored-by: Nick Van Doorn <[email protected]> Co-authored-by: Noah Silvera <[email protected]> Co-authored-by: Senem Soy <[email protected]> Co-authored-by: Sofia Besenski <[email protected]> Co-authored-by: Tom Van Manen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d3ebe4e - Browse repository at this point
Copy the full SHA d3ebe4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for eaf2c02 - Browse repository at this point
Copy the full SHA eaf2c02View commit details -
Conditionally persist Shipment#update_amounts changes
This is in service of supporting the InMemoryOrderUpdater's goal to not do database writes.
Configuration menu - View commit details
-
Copy full SHA for 870c37a - Browse repository at this point
Copy the full SHA 870c37aView commit details -
Preventing InMemoryOrderUpdater#update_shipment_amounts from making d…
…atabase writes We have prevented write calls to update the cost and `updated_at` of a shipment, as well as allowed us to conditionally persist item totals, by passing down the `persist` argument to that method. Co-authored-by: Adam Mueller <[email protected]> Co-authored-by: Andrew Stewart <[email protected]> Co-authored-by: Harmony Evangelina <[email protected]> Co-authored-by: Kendra Riga <[email protected]> Co-authored-by: Jared Norman <[email protected]> Co-authored-by: Tom Van Manen <[email protected]> Co-authored-by: Chris Todorov <[email protected]> Co-authored-by: Sofia Besenski <[email protected]> Co-authored-by: Senem Soy <[email protected]> Co-authored-by: Benjamin Willems <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 203ed70 - Browse repository at this point
Copy the full SHA 203ed70View commit details -
Rename method that recalculates shipment state
Update implies that we are persisting the change in Rails, which this method does not do. Co-authored-by: Adam Mueller <[email protected]> Co-authored-by: Senem Soy <[email protected]> Co-authored-by: Andrew Stewart <[email protected]> Co-authored-by: Kendra Riga <[email protected]> Co-authored-by: Sofia Besenski <[email protected]> Co-authored-by: Benjamin Willems <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8040224 - Browse repository at this point
Copy the full SHA 8040224View commit details -
Rename method that recalculates payment state
Update implies that we are persisting the change in Rails, which this method does not do. Co-authored-by: Adam Mueller <[email protected]> Co-authored-by: Andrew Stewart <[email protected]> Co-authored-by: Benjamin Willems <[email protected]> Co-authored-by: Senem Soy <[email protected]> Co-authored-by: Sofia Besenski <[email protected]> Co-authored-by: Kendra Riga <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ce5874 - Browse repository at this point
Copy the full SHA 7ce5874View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d6cc69 - Browse repository at this point
Copy the full SHA 6d6cc69View commit details -
Configuration menu - View commit details
-
Copy full SHA for d244646 - Browse repository at this point
Copy the full SHA d244646View commit details