Skip to content

Conversation

@porbas
Copy link
Collaborator

@porbas porbas commented Apr 14, 2025

  • migrate ThreePlusOneFree to use ProcessManager
  • we need a fresh initial process state on each PM#call
  • remove not needed guards; we check them earlier i the act method

@netlify
Copy link

netlify bot commented Apr 14, 2025

Deploy Preview for ecommerce-events failed.

Name Link
🔨 Latest commit 0f840f8
🔍 Latest deploy log https://app.netlify.com/sites/ecommerce-events/deploys/67fe001b3196a10008a5c673

porbas added 5 commits April 14, 2025 15:07
We need to calculate eligible_free_product *after* event has been applied to state.
With this modification, we can get rid of the artificial should_act flag in the state
Let's make mutant happy for now, and don't use this feature yet
Don't call two commands at once when free product need to be changed.
Just remove current free product.
A new free product will be established on the next process run,
when servicing Pricing::FreeProductRemovedFromOrder
@porbas porbas force-pushed the refactor-three_plus_one_free-to-use-process-manager branch from 342a9ae to 0f840f8 Compare April 15, 2025 06:43
@porbas porbas merged commit 63b909d into master Apr 15, 2025
27 of 31 checks passed
@porbas porbas deleted the refactor-three_plus_one_free-to-use-process-manager branch April 15, 2025 06:55
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.

2 participants