Bug With `ProductSet` Mutation Breaks Storefront Visibility Because Of TemplateSuffix Being Null

EDIT: The issue was actually with the publication and markets, so ignore this :see_no_evil_monkey:

We noticed a bug with the productSet mutation, resulting in products not being visible on the storefront.

The following mutation

mutation productSet($input: ProductSetInput!) {
  productSet(input: $input, synchronous: true) {
    product {
      id
    }
    userErrors {
      field
      message
    }
  }
}
{
  "input": {
    "status": "ACTIVE",
    "title": "Test",
    "productOptions": [
      {
        "name": "Title",
        "values": {
          "name": "Default Title"
        }
      }
    ],
    "variants": [
      {
        "price": "1.00",
        "optionValues": {
          "optionName": "Title",
          "name": "Default Title"
        },
        "requiresShipping": false
      }
    ]
  }
}

creates a new product, if we then publish the product to the online store, it is not visible and direct access results in 404. If I query /products.json it is listed.

We noticed that the templateSuffix of the resulting product is null instead of “”.
If one does explicitly set the templateSuffix to “” it does work. So there is a bug with the productSet mutation having a wrong default and the online store breaking when templateSuffix is null .

Okay, It seems I made a stupid mistake and actually the issue was that the product was not published in all markets. While it is true that the templateSuffix is different, it does not seem to affect visibility :see_no_evil_monkey: