Skip to content

Commit 52c99e1

Browse files
authored
[ServiceBus] prep release (Azure#40442)
* [ServiceBus] prep release * fix changelogs * add docstring to EH * update from_bytes docstring * more changes * update bug fix
1 parent 191eb21 commit 52c99e1

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

sdk/eventhub/azure-eventhub/CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
### Features Added
66

77
- Added support for geo-replication and disaster recovery-enabled Event Hubs. To learn more about geo-replication, refer to this [doc](https://learn.microsoft.com/azure/event-hubs/geo-replication). To enable geo-replication on your Dedicated Event Hubs namespace, refer to [this guide](https://learn.microsoft.com/azure/event-hubs/use-geo-replication).
8-
- Added a class method `from bytes` to `EventData` to create from a message payload of bytes. ([#39711](https://github.com/Azure/azure-sdk-for-python/issues/39711))
9-
10-
### Other Changes
11-
- Deprecating `uamqp_transport` in favor of pyAMQP transport. The `uamqp_transport` will be removed in the next minor release.
12-
- Dropped support for Python 3.8
8+
- Added a class method `from_bytes` to `EventData` to create from a message payload of bytes. ([#39711](https://github.com/Azure/azure-sdk-for-python/issues/39711))
139

1410
### Bugs Fixed
1511

1612
- Fixed a bug where service errors were incorrectly required and expected to have info/description fields.
13+
- Fixed a bug so that the BufferedProducer ThreadPoolExecutor uses one worker is used per partition. ([#38961](https://github.com/Azure/azure-sdk-for-python/issues/38961))
1714

1815
### Other Changes
1916

17+
- Added support for handling a C# DateTime.MinValue timestamp, which is returned by the service as a sentinel for time which is not set.
18+
- Deprecating `uamqp_transport` in favor of pyAMQP transport. The `uamqp_transport` will be removed in the next minor release.
19+
- Dropped support for Python 3.8
2020
- The following change has been temporarily pulled out and will be added to a future release:
2121
- Implemented a new websockets library so that using `AmqpOverWebsocket` no longer requires separate optional dependency installations.
2222

sdk/eventhub/azure-eventhub/azure/eventhub/_common.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,16 @@ def from_message_content( # pylint: disable=unused-argument
226226

227227
@classmethod
228228
def from_bytes(cls, message: bytes) -> "EventData":
229+
"""
230+
Constructs an EventData object from the raw bytes of a message payload.
231+
The message payload should adhere to the Message Format specification
232+
outlined in the AMQP v1.0 standard:
233+
http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#section-message-format
229234
235+
:param bytes message: The raw bytes representing the message payload.
236+
:return: An EventData object created from the provided message payload.
237+
:rtype: ~azure.eventhub.EventData
238+
"""
230239
amqp_message = decode_payload(memoryview(message))
231240
event_data = cls(body="")
232241
event_data._message = amqp_message

sdk/servicebus/azure-servicebus/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
## 7.14.2 (2025-04-09)
44

5+
### Bugs Fixed
6+
7+
- Fixed a bug where max number of messages was not being requested when receiving from the service due to an incorrect link credit calculation. ([#40156](https://github.com/Azure/azure-sdk-for-python/issues/40156))
8+
-
59
### Other Changes
10+
11+
- Added support for handling a C# DateTime.MinValue timestamp, which is returned by the service as a sentinel for time which is not set.
612
- Deprecating `uamqp_transport` in favor of pyAMQP transport. The `uamqp_transport` will be removed in the next minor release.
713
- Dropped support for Python 3.8
814

@@ -12,7 +18,6 @@
1218

1319
- Fixed a bug where service errors were incorrectly expected to have info/description fields set in all cases.
1420
- Fixed a bug where the type in azure.servicebus.management.AuthorizationRule was not being correctly passed to the request.
15-
- Fixed a bug where max number of messages was not being requested when receiving from the service due to an incorrect link credit calculation. ([#40156](https://github.com/Azure/azure-sdk-for-python/issues/40156))
1621

1722
## 7.14.0 (2025-02-13)
1823

0 commit comments

Comments
 (0)