-
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] Support multiple service versions #8303
Comments
|
Related disucssion Azure/azure-sdk#1043 and Azure/azure-sdk#1198 |
My consideration here is SDK functions are closely binding to specific Min service version. So customer could face case that bunch of APIs are not working, and they even have no idea what's the set should work. So exposing service version customization might be risky. As another option, user can choose to use right version of storage SDK with specific service version, where all APIs are by design work. At same time, for advanced user they can choose to customize service version with pipeline option. |
Techinically it's easy to add Option 1: Customer customize and override serviceVersion via customized pipeline policy. Under their own risk |
.NET currently supports V2019_02_02, V2019_07_07, and V2019_12_12. |
@tg-msft will .NET guarantee each version from V2019_02_02, V2019_07_07, and V2019_12_12 will work properly for each API and parameters? |
Yes, we run our tests across multiple versions of the API to ensure everything continues working. Newer APIs will obviously only work with later service versions, but an error is thrown if that happens. Our guidance to customers is "application developers should always float on the latest service version (which happens by default if you don't explicitly specify a version) and library developers should lock to a specific service version they tested against." |
|
Some APIs or some parameters of APIs are only avaiable on latest version. I'm thinking how to handle these cases when customers use these latest version only APIs or parameters. Sometimes, existing APIs will have breaking change in latest version. In this case, we need to matain multi versions of same API implementation. But swagger is linked to latest swagger. |
Right, unless we use multiple generated clients for multiple versions of swagger. However that would have great impact on the bundle size for browsers. |
Does the service return an error in this case?
@tg-msft How did .NET solve this problem without multiple backends? |
Just chiming in to say that I suppose an |
For testing:
|
Hi @jeremymeng, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support. |
Current storage libraries only support one version. .NET allows passing service version via client pipeline options. We should consider support similar?
/cc @bterlson
The text was updated successfully, but these errors were encountered: