Skip to content

Wanl/fix fist preview version bump#8671

Merged
wanlwanl merged 5 commits intoAzure:mainfrom
wanlwanl:wanl/fix-fist-preview-version-bump
Jul 22, 2024
Merged

Wanl/fix fist preview version bump#8671
wanlwanl merged 5 commits intoAzure:mainfrom
wanlwanl:wanl/fix-fist-preview-version-bump

Conversation

@wanlwanl
Copy link
Copy Markdown
Contributor

Issue

#8522

Problem

The bug is introduced by new codegen pr. The way to define default api version is changed.
extracting the api version should also consider version of codegen.

e.g. new api-version at client level is defined here
while old one is:

Solution

  1. try to detect in new client, return api-version if found
  2. fallback to detect old client, return whatever found

@wanlwanl wanlwanl enabled auto-merge (squash) July 22, 2024 05:49
Copy link
Copy Markdown
Member

@qiaozha qiaozha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some minor comments

@wanlwanl wanlwanl merged commit 8db91de into Azure:main Jul 22, 2024
WhitShake pushed a commit to WhitShake/azure-sdk-tools that referenced this pull request Jul 24, 2024
# Issue
Azure#8522 

# Problem
The bug is introduced by new codegen [pr](Azure/autorest.typescript@b0853b2). The way to define default api version is changed.
extracting the api version should also consider version of codegen.

e.g. new api-version at client level is defined [here](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/mongocluster/arm-mongocluster/src/rest/documentDBClient.ts#L23)
while old one is:
- [here](https://github.com/Azure/azure-sdk-for-js/blob/06716722818f5838cc10a9e5644b7ba9f32089d5/sdk/face/ai-vision-face-rest/src/faceClient.ts#L26)
- [another](https://github.com/Azure/azure-sdk-for-js/blob/06716722818f5838cc10a9e5644b7ba9f32089d5/sdk/openai/openai-rest/src/openAIClient.ts#L22)

# Solution
1. try to detect in new client, return api-version if found
2. fallback to detect old client, return whatever found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants