RailsEventStore / ecommerce

Application with CQRS and Event Sourcing built on Rails and Rails Event Store
MIT License
424 stars 71 forks source link

Duplicate products and customers #126

Open krzykamil opened 2 years ago

krzykamil commented 2 years ago

Steps to reproduce: Setup database and then for example run rake db: seed a couple of times (seeds are using commands) 2022-05-19-152850_1197x864_scrot There is some code that is supposed to raise an error, and it even has a test, but it seems the test are false positives 2022-05-19-153136_1463x814_scrot Both the products and customers have multiple duplicates (same attributes, different ids). Seems resonable that this state should not be allowed

krzykamil commented 2 years ago

Same issue with coupons I recently added, would like to resolve them all at once

andrzejkrzywda commented 2 years ago

Let's make those separate tickets.

The technical solution is probably the same but business impact should be looked at differently.