You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v-xinda
changed the title
One setting created firstly disappears after refreshing the "Application Settings" node
One setting created firstly disappears after refreshing the "Application Settings" node if add two settings at the same time previously
Mar 31, 2023
This is probably happening it because when we're updating the app settings, we're sending the whole JSON payload.
So when request 1 starts updating, request 2 is GETing the old app settings (which don't include setting 1 yet) and then sends a new JSON payload only consisting of setting 2 which immediately overwrite it.
There's a couple of ways that we can handle this:
Just block updating when there are other app setting updates occurring
Cache the new settings JSON while it's updating. If there are any new requests that come in while that's occurring, just the cached JSON rather than getting it from the remote Azure resource.
OS: Win 10
Azure Resources extension: v0.6.3-alpha.0
Static Web Apps Extension Version: 20230330.4
Regression: Not a regression
Repro Steps:
Expect:
Two settings don't disappear.
Actual:
![actual](https://user-images.githubusercontent.com/57662131/229045156-0b02a715-fcfe-46a7-9b70-5d98f438beaa.gif)
One setting created firstly disappears.
The text was updated successfully, but these errors were encountered: