Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
324 stars 56 forks source link

Cannot revert the traffic of the production environment with Traffic Splitting in Static Web Apps #1234

Open azure-learn-796 opened 1 year ago

azure-learn-796 commented 1 year ago

Hi,

I'm currently evaluating the Traffic Splitting feature of Static Web Apps, and I've encountered the following issue:

Steps to Reproduce the Issue

  1. Deploy two environments, Production, and Preview, to Static Web Apps.
  2. In the Traffic Splitting settings window, set Production to 0% and Preview to 100%.
  3. Attempt to revert Production back to 100% in the Traffic Splitting settings window, but find that Production is grayed out and cannot be selected. image
  4. When I delete the Preview environment, the traffic for Production returns to 100%.

Is this behavior expected? Once I set the traffic for the Production environment to 0% once, is there any way to revert it back to 100% without deleting the Preview environment?

Thank you.

thomasgauvin commented 1 year ago

Hi @azure-learn-796, thanks for reporting this. I'm actually getting a slightly different behavior, but we're looking into this

thomasgauvin commented 1 year ago

Update, we've found the fix and will be rolling out the fix in our next deployment

azure-learn-796 commented 1 year ago

Thank you for your message, @thomasgauvin . I will wait for the next deployment.

cfarmer-fearless commented 1 year ago

Hello, when will the next deployment be? I'm experiencing this issue too.

market-U commented 10 months ago

Has there been any news about this issue? Now I'm having the same problem too.

thomasgauvin commented 10 months ago

Fix being worked on in the next Portal sprint. Note that you can manually circumvent this Portal bug by calling APIs directly, as a temporary workaround.

market-U commented 10 months ago

Allocating 100% of the traffic to one preview environment and removing that environment allowed traffic to flow to the production environment. Thank you.