Queue messages get their id from body of message.

Open
#49 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend, cloud

Research direction

Start by tracing QueueMessageInConverter and the trigger_metadata argument mentioned in the report, then compare the message body’s Id with QueueMessage.id. Determine whether this behavior is intentional and where the value originates. Done means the behavior is clarified and, if incorrect, covered by a focused regression test.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
179
Forks
79
Avg merge
2d 8h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/azure-functions-python-library

All issues in Azure/azure-functions-python-library

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.