Marketplace factories produce inconsistent data, making it harder to debug mailer previews #2263
Labels
🐞 bug
Something isn't working
🛠️ infrastructure
ci, build, deploy, networking, etc.
🌱 Ready for Dev
Stuff we are able to move forward on
Here's an example of a mailer preview for a received order notification:
You'll notice the order IDs do not match. With @anaulin's help during ensemble, we attempted to detangle the marketplace factory setup so that the clicking the link from the mailer preview would show the Order correctly inside the correct Space and Marketplace. I think we probably helped a little, but we still encountered a blank page when trying to access the Order page as the guest shopper. It would appear the data is still wrong.
Here's some example querying from the Rails console that demonstrates how the associated Marketplace for the Order is different than the Marketplace associated with the Order's products. In fact, it would appear an entirely new Marketplace is created for each product 😅:
The text was updated successfully, but these errors were encountered: