Skip to content
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

[Document Intelligence] Update changelog to include service changes #27874

Merged
merged 16 commits into from
Dec 13, 2023

Conversation

HarshaNalluru
Copy link
Member

@HarshaNalluru HarshaNalluru commented Nov 23, 2023

As requested by La Januari, updating the changelog for 1.0.0-beta.1 version to also convey the service updates and breaking changes as we move from

  • "2023-07-31" service API version(and older versions) to "2023-10-31-preview" service API version
  • And from @azure/ai-form-recognizer to @azure-rest/ai-document-intelligence
  • And the rebranding
  • migration guide
  • sample snippets

@azure-sdk
Copy link
Collaborator

azure-sdk commented Nov 23, 2023

API change check

APIView has identified API level changes in this PR and created following API reviews.

@azure-rest/ai-document-intelligence

@laujan
Copy link

laujan commented Nov 27, 2023

#assign-reviewer:laujan

…OG.md

Co-authored-by: Paul Hsu <bojunehsu@gmail.com>
@HarshaNalluru HarshaNalluru enabled auto-merge (squash) November 30, 2023 00:33
await client.path("/documentModels/{modelId}:analyze", "prebuilt-layout").post({
contentType: "application/json",
body: { urlSource: "..." },
queryParameters: { queryFields: ["NumberOfGuests", "StoreNumber"] }, // <-- new query parameter
Copy link
Member

Choose a reason for hiding this comment

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

I believe we are missing features: ["queryFields"] (or equivalent syntax) as an additional query parameter, unless the SDK automatically adds it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, Paul.
I had a list of tests to add after the release, those would have caught this.. could you point me to the documents as well to test these features?

- `@azure-rest/ai-document-intelligence` is the new package, replacing `@azure/ai-form-recognizer` package. The new package supports a Rest Level Client, which is part of the new generation of Azure SDKs to simplify the development experience. The new package is not compatible with the previous `@azure/ai-form-recognizer` package without necessary changes to your code.
- **Breaking Changes (with the `@azure/ai-form-recognizer` SDK)** - API shapes have been designed from scratch to support the new Rest Level Client for the Document Intelligence service. Please refer to the [Readme](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/documentintelligence/ai-document-intelligence-rest/README.md) and [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/documentintelligence/ai-document-intelligence-rest/samples) for more understanding.

### `"2023-10-31-preview"` Service API version
Copy link
Member

Choose a reason for hiding this comment

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

@laujan Does it make sense to have each SDK list the set of new features/breaking changes at the service level, not SDK level? Perhaps it would be better to have each SDK link to a service level breaking change page in learn.microsoft.com.

Copy link
Member

Choose a reason for hiding this comment

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

From @laujan:

It's customary to list features/breaking changes at the SDK level and then provide a link to each programming language within the service level documentation.

If so, let's describe the changes from the perspective of the SDK, not the service. For example, we should not use features=keyValuePairs since it is not JS syntax.

@laujan
Copy link

laujan commented Nov 30, 2023 via email

@HarshaNalluru HarshaNalluru enabled auto-merge (squash) December 13, 2023 01:08
@@ -464,7 +464,7 @@ describe("DocumentIntelligenceClient", () => {
return _model;
}

it("with selection marks", async () => {
it.skip("with selection marks", async () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Unskip failed unit test in followup PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

@HarshaNalluru HarshaNalluru merged commit f7d5a0b into Azure:main Dec 13, 2023
13 checks passed
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.

6 participants