Skip to content

Conversation

@porbas
Copy link
Collaborator

@porbas porbas commented Apr 16, 2025

  • let time promotion last longer during the test
  • publish more pricing info in ItemAdded/ItemRemoved event payloads
  • fix free products test
  • add more Pricing::Offer tests to extend coverage and kill mutants
  • kill mutants

porbas added 5 commits April 16, 2025 15:44
it's hard to debug if promotion ends in a second
* add base_price
* add base_total_value and total_value.

This is the preliminary step to remove Totals Calculation events in the future
I believe, they was broken before. In my opinion, total_value should
take into account ALL products base_price, event these made free
@netlify
Copy link

netlify bot commented Apr 16, 2025

Deploy Preview for ecommerce-events ready!

Name Link
🔨 Latest commit e18785b
🔍 Latest deploy log https://app.netlify.com/sites/ecommerce-events/deploys/680201daa5e5d400082dd6f3
😎 Deploy Preview https://deploy-preview-441--ecommerce-events.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

porbas and others added 22 commits April 16, 2025 16:48
WARNING. Events generated by add_item/remove_item helpers are not fully proper.
The totals in their payloads can be invalid.
This process doesn't care about totals, so tests are green.

Isn't it a smell?
seems like it is something slightly different than discount

it is a promotion? policy?

when you get 3 items of same type, 4th one is free
Arrange section isn't correct, there's no real items in the order
it will be easier to revert it if that's the case
1. When 4 products are added (one is free) and 5th one is added
2. When 7 producs are added (one is free) and 8th is added as free
@lukaszreszke lukaszreszke merged commit d6de0fe into master Apr 18, 2025
31 checks passed
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.

3 participants