-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Search fix debug info #40187
base: main
Are you sure you want to change the base?
Search fix debug info #40187
Conversation
API change check API changes are not detected in this pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes the deserialization issue for document_debug_info in search results and updates the code generation metadata to use AutoRest version 6.30.0.
- Fixed the deserialization bug by changing document_debug_info from a list to a single object.
- Updated the AutoRest generator version across multiple generated files.
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
sdk/search/azure-search-documents/CHANGELOG.md | Added changelog entry for the document_debug_info deserialization bug fix |
sdk/search/azure-search-documents/azure/search/documents/_generated/_search_index_client.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/models/_search_index_client_enums.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/_configuration.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models_py3.py | Changed document_debug_info type and its initialization to reflect a single debug info object |
sdk/search/azure-search-documents/azure/search/documents/_generated/aio/_configuration.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/aio/_search_index_client.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/models/init.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/aio/init.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/operations/init.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/operations/_documents_operations.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/aio/operations/_documents_operations.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/init.py | Updated AutoRest generator version |
sdk/search/azure-search-documents/azure/search/documents/_generated/aio/operations/init.py | Updated AutoRest generator version |
Comments suppressed due to low confidence (1)
sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models_py3.py:1842
- The updated initialization for document_debug_info now supports a single debug info object instead of a list. Verify that any client consuming this model is adjusted to handle a single object.
self.document_debug_info: Optional["_models.DocumentDebugInfo"] = None
@@ -1807,7 +1807,7 @@ class SearchResult(_serialization.Model): | |||
:vartype captions: list[~azure.search.documents.models.QueryCaptionResult] | |||
:ivar document_debug_info: Contains debugging information that can be used to further explore | |||
your search results. | |||
:vartype document_debug_info: list[~azure.search.documents.models.DocumentDebugInfo] | |||
:vartype document_debug_info: ~azure.search.documents.models.DocumentDebugInfo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the document_debug_info type from a list to a single object might break expectations if multiple debug info entries are expected. Please confirm that the API response is updated accordingly and update any dependent code.
:vartype document_debug_info: ~azure.search.documents.models.DocumentDebugInfo | |
:vartype document_debug_info: list[~azure.search.documents.models.DocumentDebugInfo] |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
No description provided.