[TA] Expose ActionName and enable multiple actions from same type#24619
Conversation
sdk/textanalytics/Azure.AI.TextAnalytics/tests/TextAnalyticsModelFactoryTests.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs
Show resolved
Hide resolved
This happens very frequently in the Model Factory as we add new properties to models, as you can see here: In these situations we create a new overload as you suggested, and add the |
kristapratico
left a comment
There was a problem hiding this comment.
Maybe update the changelog with the new feature
deyaaeldeen
left a comment
There was a problem hiding this comment.
Implementation looks good!
Thanks! |
bc150ef to
2472f5f
Compare
|
I rebased the branch and there are no conflicts now. |
jsquire
left a comment
There was a problem hiding this comment.
LGTM; failures seem to indicate that the recordings need to be redone to accommodate the API version change.
sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsModelFactory.cs
Outdated
Show resolved
Hide resolved
Should we make a separate PR to run the tests? I noticed that only 4 of them needs to be redone. |
| CannotRemoveAttribute : Attribute 'System.Runtime.CompilerServices.IsReadOnlyAttribute' exists on 'Azure.AI.TextAnalytics.TextAnalyticsError.Target.get()' in the contract but not the implementation. | ||
| CannotRemoveAttribute : Attribute 'System.Runtime.CompilerServices.IsReadOnlyAttribute' exists on 'Azure.AI.TextAnalytics.TextAnalyticsWarning.Message.get()' in the contract but not the implementation. | ||
| CannotRemoveAttribute : Attribute 'System.Runtime.CompilerServices.IsReadOnlyAttribute' exists on 'Azure.AI.TextAnalytics.TextAnalyticsWarning.WarningCode.get()' in the contract but not the implementation. | ||
| Compat issues with assembly Azure.AI.TextAnalytics: |
There was a problem hiding this comment.
This file shouldn't be needed anymore now that you added the overloads to the TextAnalyticsModelFactory class, right?
sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsModelFactory.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/tests/AnalyzeOperationMockTests.cs
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/tests/AnalyzeSentimentTests.cs
Outdated
Show resolved
Hide resolved
Should we make a separate PR to run the tests? I noticed that only 4 of them need to be redone. I think the general idea is:
|
|
I added a new test |
We'll want to make sure that the tests pass as part of this work; we don't want to introduce changes into the repository that break test runs. |
* [TextAnalytics] Generated client from 3.2-preview.2 swagger (#23536) * [TA] Added SingleCategoryClassify functionality (#24235) * [TA] Added MultiCategoryClassify Functionality (#24237) * [TA] Added RecognizeCustomEntities Functionality (#24245) * [TA] Expose ActionName and enable multiple actions from same type (#24619) * Rerecorded all tests excluding AAD ones (#24913) * re-record AAD tests (#24919) * [TA] Enable CI for live tests for custom features (#24916) * add comments Co-authored-by: Caio Saldanha <camaiaor@microsoft.com> Co-authored-by: Ahmed Leithy <v-aleithy@microsoft.com> Co-authored-by: Salah Mostafa <zulamostafa@gmail.com> Co-authored-by: Salah Mostafa <v-samostafa@microsoft.com>
This PR is for exposing ActionName again as it was disabled in the issue #22311. It also includes enabling multi actions from the same type as the service supports that right now. Resolves both #24441 and #24430.
I have some concerns regarding this issue:
/p:BaselineAllAPICompatError=true. I am suggesting that we make overloaded functions for them, with validating that all actions from the same type have unique names.