Sales Channel Access Doesn't Persist For Shopify Functions Discounts

Hi Tobe!

Thanks for sharing this. I think what might be happening here is some confusion over the UX for the bulk actions on the discounts index. When using the bulk actions on the index view, you aren’t seeing which channels the selected discounts are currently published to. Instead, you’re seeing the full set of channels for which you can choose to publish or unpublish your discounts.

You can see which channels a discount is currently available to if using a built-in discount type or an app discount that uses the UI extension approach to discount configuration, by going to the discount details page and looking in the right sidebar.

You are correct that, at this time, these data aren’t available publicly via the API and so an app discount using the appbridge/Remix approach is not currently able to display the channel publishing status and the merchant has no way to see what setting exists on those discounts.

The other note I’d raise is that on the “deny sales channel access” bulk action’s modal, if you select all channels except POS then you are denying access for all channels except POS. If you want to deny access only for POS then you should be selecting only the POS channel before clicking the “Unpublish” button.