Azure / Azure/azure-functions-python-library
Queue messages get their id from body of message.
- 主要言語
- Python
- スター
- 179
- フォーク
- 79
- 平均マージ
- 2日 8時間
- マージ済み PR(30日)
- 2
説明
I am not sure if this is intentional but if a message contains an "Id" field it seems to be used as the `id` property in `QueueMessage`. I assume that this has something to do with how the contents of `trigger_metadata` are set (I am unable to identify the origin of the argument). I assume this because of how it is being extacted in `QueueMessageInConverter` and the fact that my messages arrive with the same `body['Id']` and `msg.id`.
Maybe I am completly wrong but I am curious if this is intentional or aviodable somehow, if not I would like to open a discussion about it.
I personally did not expect this behaviour and it required a ugly workaround.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、レポートで言及されている QueueMessageInConverter と trigger_metadata 引数を追跡し、次にメッセージ本文の Id と QueueMessage.id を比較します。この動作が意図したものかどうか、また値がどこから来ているのかを判断します。動作が明らかになり、誤っている場合は焦点を絞った回帰テストでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend, cloud
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100