So I installed my Sales Channel App as a localhost version to test in my development shop. As expected I could browse products, and had available to me a new checkbox, unchecked, for the new Sales Channel. Sweet.
I installed the production version of the same App in the store, the one hosted in the cloud, running the same code, and this time, when I browsed to the products, I found the same checkbox for the new Sales Channel, but this time, it was checked! Upon further review of products, every single product in the store was set to ON, or checked, for the newly installed Sales Channel.
I do not think I like that behavior. Is that something controllable through some flag? Why did that happen? What are my next steps here?
When a sales channel is added, the expected behaviour is for product availability to mimic what's available on the online store. I just tested in my own store and saw the expected behaviour. I also tried removing it and installing again with a different Ngrok URL, but the result was the same.
Assuming you didn't adjust the availability of those products between your tests, it sounds like you saw a different behaviour than expected. Can you provide the shop_id and api_client_id for the store where you saw the availability checked by default? I'll use those to check the logs and see if that gives any more information.
Hang on? So you are saying if in my test shop with 20 products of inventory, if all 20 products are set to ONLINE STORE, and I install my custom sales channel App, the App would pickup all products set to ONLINE STORE and set the sales channel availability to match?
Are you sure that is the desired behavior? It seems like the opposite of what one would expect. When I install a sales channel I would expect ZERO products to be assigned to it. As a merchant, I want to ensure I control what products go on the channel. Right?