reactioncommerce / reaction

Mailchimp Open Commerce is an API-first, headless commerce platform built using Node.js, React, GraphQL. Deployed via Docker and Kubernetes.
https://mailchimp.com/developer/open-commerce/
GNU General Public License v3.0
12.34k stars 2.17k forks source link

Cannot make new product visible right after creating, need to refresh and retry #4010

Closed mikemurray closed 6 years ago

mikemurray commented 6 years ago

Prerequisites

Issue Description

Cannot make product visible right after creating a new product, and then trying to make it visible from the PDP page. Refreshing the PDP page after creating the product and trying again seems to resolve the issue.

Steps to Reproduce

sadsad
  1. As an admin from the product grid...
  2. Create a new product
  3. Fill in product data
  4. Click the eye icon to make the product visible
  5. Click the Publish button
  6. See changes published successfully message
  7. Notes the eye icon, reverted back to its previous state with the slash
  8. View the product grid as a customer incognito, or otherwise not signed in
  9. See your product is not visible on the grid
  10. Refresh the PDP page as the admin
  11. Make the product visible
  12. Publish again
  13. Visibility button eye icon should not have reverted back to an eye with a slash.
  14. View the product grid once again as a customer
  15. See your product is visible on the grid

Possible Solution

The publishContainer that controls the publish controls may be getting an incorrect list of products to watch for changes. The publish controls are supplied a list of document ids, usually products or media that it will publish when you click the "Publish" button.

Versions

Node: 7.2.0 NPM: 5.6.0 Meteor Node: 8.9.4 Meteor NPM: 5.6.0 Reaction CLI: 0.29.0 Reaction: 1.9.0 Reaction branch: master Docker: 17.12.0-ce

jamesporl commented 6 years ago

This no longer happens in 1.14.0.