Repository navigation
[Service Bus] Add batch delete and purge APIs #48845
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
Open
Eldert Grootenboer (EldertGrootenboer)
wants to merge
28
commits into
main
Choose a base branch
from
fix/servicebus-batch-delete
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,554
−181
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b43b59a
[Service Bus] Add batch delete and purge APIs
EldertGrootenboer 2576934
fix: address batch delete review feedback
EldertGrootenboer 9590c7a
fix: address batch delete review feedback
EldertGrootenboer 42a8416
fix: enforce batch delete setup deadline
EldertGrootenboer ce37d9f
fix: recover failed management link setup
EldertGrootenboer a1c6bfd
fix: enforce batch delete operation deadline
EldertGrootenboer b3836d5
fix: defer async setup coroutine creation
EldertGrootenboer d3967bf
fix: map management setup timeouts
EldertGrootenboer 085072f
Merge branch 'main' into fix/servicebus-batch-delete
EldertGrootenboer eb05692
Merge main into fix/servicebus-batch-delete
EldertGrootenboer 26df6fb
Merge remote-tracking branch 'origin/main' into fix/servicebus-batch-…
Copilot 097bd5e
fix: Align Service Bus batch-delete preview version
EldertGrootenboer 6e74d34
fix: Match Service Bus preview metadata and stabilize timeout tests
EldertGrootenboer ec48e65
fix: Preserve batch-delete setup failures during link cleanup
EldertGrootenboer 018052c
fix: Bound asynchronous batch-delete management setup
EldertGrootenboer 1a9fea8
fix: Preserve cached links and require explicit purge samples
EldertGrootenboer 4e73e08
fix: Forward timeout budgets through default open adapters
EldertGrootenboer a66ebab
test: Cover batch deletion across supported AMQP transports
EldertGrootenboer 4a9360c
fix: Bound failed management-link cleanup without a deadline
EldertGrootenboer 5c08dd7
Merge branch 'main' into fix/servicebus-batch-delete
EldertGrootenboer 1420b7c
Merge main and resolve Service Bus preview version conflicts
EldertGrootenboer bf18167
fix: Preserve one-shot deletion error handling and attempt budgets
EldertGrootenboer 2439571
fix: Align management setup contracts and result documentation
EldertGrootenboer c2d6262
fix: Reject invalid batch-delete cutoff values before dispatch
EldertGrootenboer fb565e5
fix: Allow bounded management-link cleanup after setup expiry
EldertGrootenboer cdf04e5
fix: Use compatible CI typing extensions on Python 3.15
EldertGrootenboer 1e3ad22
fix: Preserve upstream pip pin beside CI compatibility repair
EldertGrootenboer 418a981
infra: Merge current main for Python 3.15 CI repair
EldertGrootenboer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| apiMdSha256: a5f9da8d7980799f054d782f99eabf9b190925718f2bc4bdd86f01752a5c1bf8 | ||
| packageVersion: 7.15.0 | ||
| apiMdSha256: 46c52fca7868fd19d0ec06b18161ba148cd8496df1ea6bdf1600296afa83a7c7 | ||
| packageVersion: 7.16.0b1 | ||
| parserVersion: 0.3.31 | ||
| pythonVersion: 3.14.0 | ||
| pythonVersion: 3.11.14 |
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
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
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
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
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
24 changes: 24 additions & 0 deletions
24
sdk/servicebus/azure-servicebus/azure/servicebus/_models.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # ------------------------------------------------------------------------ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for | ||
| # license information. | ||
| # ------------------------------------------------------------------------- | ||
|
|
||
|
|
||
| class DeleteMessagesResult: | ||
| """The result of a batch delete operation.""" | ||
|
|
||
| def __init__(self, deleted_message_count: int) -> None: | ||
| self._deleted_message_count = deleted_message_count | ||
|
|
||
| @property | ||
| def deleted_message_count(self) -> int: | ||
| """The number of messages deleted by the service. | ||
|
|
||
| :rtype: int | ||
| """ | ||
| return self._deleted_message_count | ||
|
|
||
|
|
||
| class PurgeMessagesResult(DeleteMessagesResult): | ||
| """The result of a purge operation, reporting the total number of messages deleted.""" |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.