[Backport release-1.18] Add support for dead-letter topics in streaming subscriptions#1747
Closed
dapr-bot wants to merge 1 commit into
Closed
[Backport release-1.18] Add support for dead-letter topics in streaming subscriptions#1747dapr-bot wants to merge 1 commit into
dapr-bot wants to merge 1 commit into
Conversation
#1746) Adds optional deadLetterTopic parameter to the streaming subscribe APIs on DaprPreviewClient / DaprClientImpl, wiring it through to the SubscribeTopicEventsRequestInitialAlpha1.dead_letter_topic proto field. New overloads: - subscribeToEvents(pubsubName, topic, deadLetterTopic, listener, type) - subscribeToTopic(pubsubName, topic, deadLetterTopic, type) - subscribeToTopic(pubsubName, topic, deadLetterTopic, type, metadata) Existing methods delegate to the new ones with a null deadLetterTopic, and the field is only set on the request when a non-empty value is provided. Adds unit tests covering both presence and absence of the field on the gRPC initial frame. Fixes: #1608 Signed-off-by: Siri Varma Vegiraju <s_vegiraju@apple.com> Co-authored-by: Siri Varma Vegiraju <s_vegiraju@apple.com> (cherry picked from commit 93c5acc)
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-1.18 #1747 +/- ##
==================================================
+ Coverage 76.77% 76.79% +0.01%
- Complexity 2259 2265 +6
==================================================
Files 241 241
Lines 7066 7072 +6
Branches 740 742 +2
==================================================
+ Hits 5425 5431 +6
+ Misses 1277 1276 -1
- Partials 364 365 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4 tasks
Contributor
|
Closing in favor of #1748, which fixes the DCO check by rewriting the commit author to match the existing |
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.
Backport 93c5acc from #1746.