Azure / azure-functions-python-library

Azure Functions Python SDK
MIT License
151 stars 63 forks source link

Restore IoTHub metadata in EventHub #42

Closed Hazhzeng closed 4 years ago

Hazhzeng commented 4 years ago

Resolves https://github.com/Azure/azure-functions-python-worker/issues/418

  1. Fix a parsing issue where the iothub metadata is not handled properly. The iothub_metadata does not exist in trigger_metadata, instead, it is placed in SystemProperties (cardinality = one) and SystemPropertiesArray (cardinality = many)
  2. Fix an issue where the IoTHub event messages are treated as single message. Since the message format is json, thus, it is handled with decode_single_event. This PR will make sure the cardinality is handled correctly.
Hazhzeng commented 4 years ago

Resolves: https://github.com/Azure/azure-sdk-for-python/issues/8533