-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Storage] MatchCondition instead of various access condition #5466
Comments
This is only for etag |
Reach out to @richardpark-msft |
I think the difference between how we're doing in appconfig and how the rest of the world is doing it is that since our model object (ConfigurationSetting) is always passed as an argument we can take the etag value directly from it rather than requiring the user to pass it separately. You can see that here they can just pass in the setting: azure-sdk-for-js/sdk/appconfiguration/app-configuration/samples/optimisticConcurrencyViaEtag.ts Line 80 in f67580a
Then to "activate" it they just specify a boolean parameter: await client.setConfigurationSetting(actualSetting, { In the etag discussion yesterday I believe that Ted mentioned that storage couldn't necessarily do that because the object that gets passed in doesn't have an etag field. So I'm not sure if what I did would apply to what you're doing in storage. For completeness here's the section in the design guide that talks about conditional requests: |
I believe the intention of the guidelines is that the One thing I'm not sure about: do we still call the opting |
Azure/azure-sdk-for-net#8138 to cross reference what we're doing in .NET |
@jeremymeng, Looks like storage JS doesn't require any changes. If so, can we close this issue? |
We are pretty close to .NET has currently except names. At this point I'd want to keep the old names. |
Chatted with @annelo-msft - AppConfig in .net is NOT exposing MatchConditions (or it's cousin RequestConditions) for AppConfig. It's all done via the |
I think no change is required here, so closing. |
I am possibly wrong. Discussing more tomorrow. |
Related discussion at Azure/azure-sdk#638
Looks we are going to have some flags
ifChanged
/ifUnchanged
The text was updated successfully, but these errors were encountered: