Azure / Azure/azure-functions-python-library

Queue messages get their id from body of message.

Offen
#49 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
179
Forks
79
Ø Merge
2 T. 8 Std.
Gemergte PRs (30 T.)
2

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne damit, QueueMessageInConverter und das im Bericht erwähnte Argument trigger_metadata nachzuverfolgen, und vergleiche anschließend den Id des Nachrichteninhalts mit QueueMessage.id. Ermittle, ob dieses Verhalten beabsichtigt ist und woher der Wert stammt. Als erledigt gilt die Aufgabe, wenn das Verhalten geklärt und, falls es fehlerhaft ist, durch einen fokussierten Regressionstest abgedeckt wurde.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
backend, cloud
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.