feat: Cosmos DB Change Feed Mode Support#346
Open
swapnil-nagar wants to merge 4 commits into
Open
Conversation
- Added CosmosDBChangeFeedMode type supporting LatestVersion and AllVersionsAndDeletes modes - Updated CosmosDBConverter and CosmosDBTriggerConverter documentation - Exported CosmosDBChangeFeedMode from public API - Added 3 unit tests for change feed mode support - Updated version to 1.26.0
Author
|
/azp run |
|
Commenter does not have sufficient privileges for PR 346 in repo Azure/azure-functions-python-library |
Contributor
|
I am not familiar with E2E-test situation for this repo, but want to make sure the feature is validated either manually or by tests. A specific scenario to validate for is the incoming payload type when using |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updated Python Azure Functions library to support Cosmos DB change feed modes (
LatestVersionandAllVersionsAndDeletes), aligning with Azure WebJobs Extensions upstream implementation.Changes
CosmosDBChangeFeedModetype hint in_cosmosdb.pysupporting 'LatestVersion' | 'AllVersionsAndDeletes'CosmosDBConverterandCosmosDBTriggerConverterclass docstrings to document change feed mode behaviorCosmosDBChangeFeedModetype from main__init__.pyfor public consumptiontest_cosmosdb_change_feed_mode_latest_version_support: Validates LatestVersion modetest_cosmosdb_change_feed_mode_all_versions_and_deletes_support: Validates AllVersionsAndDeletes modetest_cosmosdb_change_feed_mode_type_available: Verifies type availability in public APIFiles Modified
azure/functions/_cosmosdb.py: AddedCosmosDBChangeFeedModetypeazure/functions/cosmosdb.py: Updated documentation, exported typeazure/functions/__init__.py: Exported and documentedCosmosDBChangeFeedModetests/test_cosmosdb.py: Added change feed mode testsAlignment
This change mirrors the Node.js library v4.16.1 Cosmos DB updates, ensuring consistent change feed support across both runtimes.