I created the configurable product and sample product and linked them together using REST API. I can see the config product and the sample products and also the links correctly done in Admin mode. But when I view it as a user, I don't see the product. However, if I go into the configurable product (in admin mode) or one of the simple products and simply open it and save it (without making any changes), it appears. So what am I doing wrong?
Also I noticed that if I hard code the URL I can access the product, for example if I use the URL below I can access the product "test" and able to add it to the cart, but it does not appear in any of the categories and search results.